/* ======================================================================
   🍿 SALTY-POPCORN.COM MASTER HOMEPAGE GLOBAL STRUCTURE
   ====================================================================== */

/* Navbar Layout Layout */
.main-navbar {
    background-color: var(--card-bg);
    border-bottom: 1px solid #e2e8f0;
    padding: 16px 0;
}
.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.navbar-logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
}
.navbar-links {
    display: flex;
    gap: 20px;
    font-weight: 600;
}
.nav-link-active {
    color: var(--accent-color);
    text-decoration: none;
}
.nav-divider {
    color: #cbd5e1;
}
.nav-tagline {
    color: var(--text-muted);
}

/* Page Spacing Framework Elements */
.page-spacing {
    padding-bottom: 60px;
}

/* Section Headline Boundaries */
.section-headline {
    font-size: 1.8rem;
    font-weight: 800;
    margin-top: 40px;
    margin-bottom: 20px;
    border-left: 4px solid var(--accent-color);
    padding-left: 12px;
}
.inline-header-reset {
    margin-top: 0;
}

/* ======================================================================
   MODULE 1: SPOTLIGHT DISPLAY (FILM & PERSON OF THE DAY)
   ====================================================================== */
.home-hero-grid {
    display: flex;
    grid-template-columns: 1.5fr 1fr;
    gap: 24px;
    margin-bottom: 48px;
    margin-top: 24px;
}
.spotlight-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    position: relative;
}
.spotlight-badge {
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 0.75rem;
    padding: 4px 10px;
}
.spotlight-sub {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.spotlight-title {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 12px;
    border: none;
    padding: 0;
}
.spotlight-synopsis {
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
    max-width: 550px;
}
.spotlight-btn {
    align-self: flex-start;
    font-size: 0.9rem;
    padding: 10px 20px;
}

/* Person of the Day Profiles */
.person-spotlight-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    justify-content: center;
    text-align: center;
}
.person-wrapper {
    flex: 1;
}
.person-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 12px;
    border: 3px solid var(--bar-bg);
}
.person-sub {
    text-transform: uppercase;
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}
.person-name {
    font-size: 1.25rem;
    color: var(--text-main);
    display: block;
    margin-bottom: 12px;
}
.person-btn {
    font-size: 0.7rem;
    padding: 6px 12px;
}

/* ======================================================================
   MODULE 2 & 3: GRID GALLERIES (TRENDING & UPCOMING)
   ====================================================================== */
.movie-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 20px;
}
.movie-poster-card {
    text-decoration: none;
    color: var(--text-main);
    transition: transform 0.2s ease;
}
.movie-poster-card:hover {
    transform: translateY(-4px);
}
.movie-poster-card img {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(15,23,42,0.08);
    border: 1px solid #e2e8f0;
}
.movie-card-title {
    font-weight: 700;
    font-size: 0.95rem;
    margin-top: 8px;
    line-height: 1.3;
}
.trending-score {
    font-size: 0.8rem;
    color: var(--accent-color);
    font-weight: 700;
    margin-top: 2px;
}
.upcoming-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 2px;
}

/* ======================================================================
   MODULE 4: WEEKLY BOX OFFICE TOP 5 RANKINGS
   ====================================================================== */
.box-office-rank-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}
.header-border {
    border-bottom: 2px solid var(--bar-bg);
}
.rank-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
}
.rank-list-item:last-child {
    border-bottom: none;
}
.rank-meta-wrapper {
    display: flex;
    align-items: center;
    gap: 4px;
}
.rank-num {
    font-weight: 800;
    color: var(--accent-color);
    width: 24px;
    flex-shrink: 0;
}
.rank-title-link {
    color: var(--text-main);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
}
.rank-title-link:hover {
    color: var(--accent-color);
}
.rank-value {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ======================================================================
   MODULE 5: LIVE DATA FEEDS (RATINGS & RELEASE COLUMNS)
   ====================================================================== */
.feed-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.feed-card-gap {
    gap: 16px;
}
.feed-list-item {
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 12px;
}
.feed-list-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.feed-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}
.feed-movie-title {
    color: var(--text-main);
    font-weight: 700;
    text-decoration: none;
}
.feed-movie-title:hover {
    color: var(--accent-color);
}
.feed-score-badge {
    color: var(--star-color);
    font-size: 1rem;
    margin-left: auto;
}
.feed-meta-sub {
    color: var(--text-muted);
    font-weight: 500;
}

/* New Release Debuts Triple Columns */
.release-column-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.release-col {
    display: flex;
    flex-direction: column;
}
.release-col-heading {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-muted);
    display: block;
    margin-bottom: 8px;
}
.release-bullet-link {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    text-decoration: none;
    margin-bottom: 6px;
}
.release-bullet-link:hover {
    color: var(--accent-color);
}

/* ======================================================================
   MEDIA QUERIES FOR ADAPTIVE MOBILE LAYOUT OVERRIDES
   ====================================================================== */
@media (max-width: 968px) {
    .home-hero-grid, 
    .box-office-rank-grid, 
    .feed-grid, 
    .release-column-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   🖼️ BLANK GRID MOVIE POSTER PLACEHOLDER
========================================== */
.movie-poster-blank {
    width: 100%;
    aspect-ratio: 2/3; /* Enforces the exact vertical rectangular dimension profile */
    border-radius: 8px;
    background-color: #e2e8f0; /* Soft slate gray background fill */
    border: 1px solid #cbd5e1; /* Thin clean alignment border outline */
    box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem; /* Large centered visual emoji icon anchor */
    user-select: none;
    transition: background-color 0.2s ease;
}

/* Subtle mouse hover lighting interaction tracking your card selectors */
.movie-poster-card:hover .movie-poster-blank {
    background-color: #cbd5e1; /* Darkens slightly on grid tile hover states */
}

/* Component Popover Overlay Styles */
.data-card.bo-sub-card { overflow: visible !important; }
.popcorn-tooltip-wrapper { position: relative; display: inline-block; }
.popcorn-tooltip-container { display: inline-block; cursor: help; }

.popcorn-tooltip-box {
    visibility: hidden; opacity: 0; pointer-events: none;
    position: absolute; bottom: 140%; left: 50%;
    transform: translateX(-50%) translateY(4px);
    background-color: #0f172a; color: #fff; padding: 10px 14px;
    border-radius: 8px; width: max-content; z-index: 99999;
    font-size: 0.75rem; line-height: 1.4;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.popcorn-tooltip-box::after {
    content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
    border-width: 5px; border-style: solid; border-color: #0f172a transparent transparent transparent;
}
.popcorn-tooltip-wrapper:hover .popcorn-tooltip-box {
    visibility: visible; opacity: 1; transform: translateX(-50%) translateY(0);
}
.tooltip-title-header {
    font-weight: 800; text-transform: uppercase; color: #94a3b8;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15); margin-bottom: 6px; display: block;
}
.tooltip-country-item { display: flex; justify-content: space-between; gap: 20px; }
