/* No transition utility */
.dashboard-tile.no-transition {
    transition: none !important;
}

/* Hero Expansion Animation */
.dashboard-tile {
    /* Existing styles remain... */
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 10;
}

.dashboard-tile.hero-active {
    position: fixed;
    top: 80px; /* Below header */
    left: 0;
    width: 100vw;
    height: calc(100vh - 80px);
    z-index: 1000;
    border-radius: 0;
    border: none;
    padding: 0; /* Remove default padding to control layout manually */
    cursor: default;
    box-shadow: none;
    background: transparent; /* Let tile-bg show the color */
}

/* Remove old conflicting rule */
/* .dashboard-tile.hero-active .tile-bg handled in nhl-dashboard.css now */

/* New Layout for Expanded State */
.dashboard-tile.hero-active .tile-content {
    max-width: 100%;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    
    /* Top-Left Alignment */
    justify-content: flex-start;
    align-items: flex-start;
    
    padding: 40px;
    transform: translateY(0);
}

.dashboard-tile.hero-active .tile-title {
    font-size: 42px; /* Smaller, header-like title */
    margin-bottom: 5px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
    transition: all 0.5s ease;
}

.dashboard-tile.hero-active .tile-subtitle {
    font-size: 16px;
    margin-bottom: 20px;
    opacity: 0.8;
}

.dashboard-tile.hero-active .tile-description {
    display: none; /* Hide description in expanded view to save space */
}

/* Close Button */
.hero-close-btn {
    position: absolute;
    top: 30px;
    right: 40px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1002;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
}

.hero-close-btn:hover {
    background: var(--danger);
    border-color: var(--danger);
    transform: rotate(90deg);
}

/* Content Container inside the hero (Where the actual app content will fade in) */
.hero-content-container {
    opacity: 0;
    transition: opacity 0.5s ease 0.3s; /* Delayed fade in */
    width: 100%;
    height: 100%;
    flex: 1; /* Take remaining space */
    position: relative;
    margin-top: 20px;
    overflow-y: auto; /* Enable internal scrolling */
    
    /* Custom scrollbar for the content */
    scrollbar-width: thin;
    scrollbar-color: var(--accent) rgba(0,0,0,0.3);
}

.hero-content-container::-webkit-scrollbar {
    width: 6px;
}
.hero-content-container::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.3);
}
.hero-content-container::-webkit-scrollbar-thumb {
    background-color: var(--accent);
    border-radius: 3px;
}

.hero-active .hero-content-container {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

/* Hide other elements during expansion */
body.hero-expanding {
    overflow: hidden;
}

body.hero-expanding .dashboard-tile:not(.hero-active) {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.9);
}

/* =========================
   MOBILE ADJUSTMENTS
   ========================= */
@media (max-width: 768px) {
    .dashboard-tile.hero-active {
        top: 0; 
        bottom: 60px; /* Attach to bottom nav instead of using height calc */
        height: auto; /* Let top/bottom dictate height */
        border-bottom: 1px solid var(--glass-border);
    }
    
    .dashboard-tile.hero-active .tile-content {
        padding: 20px; /* Reduce padding on mobile */
        padding-top: 60px; /* Add space for close button/title area */
    }

    .dashboard-tile.hero-active .tile-title {
        font-size: 32px; /* Smaller title on mobile */
    }

    .hero-close-btn {
        top: 15px;
        right: 15px;
    }
}