/**
 * Væntanlegt (Upcoming) Page V2 Styles
 *
 * Modern styling consistent with moviepage-v4 design language
 *
 * @package Kvikmyndir
 * @since 1.0.0
 */

/* ============================================
   CSS Variables - Use existing from moviepage-v4
   ============================================ */
:root {
    --vnt-primary: #62b0ba;
    --vnt-primary-dark: #60aeb8;
    --vnt-accent: #f1633b;
    --vnt-dark: #383d40;
    --vnt-text: #424444;
    --vnt-text-light: #a3a3a3;
    --vnt-grey: #f2f2f2;
    --vnt-grey-light: #e9e9e9;
    --vnt-border: #e0e0e0;
    --vnt-card-bg: #ffffff;
    --vnt-shadow: 0 2px 8px rgba(0,0,0,0.08);
    --vnt-shadow-hover: 0 4px 16px rgba(0,0,0,0.12);
}

/* ============================================
   Page Container
   ============================================ */
.vnt-page {
    background: var(--vnt-grey);
    min-height: 100vh;
}

/* Remove underlines from all links */
.vnt-page a,
.vnt-page a:hover,
.vnt-page a:focus,
.vnt-page a:visited {
    text-decoration: none;
}

/* ============================================
   Screen Reader Only
   ============================================ */
.vnt-header__sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================
   Header Section (A2: Clean fp-style)
   ============================================ */
.vnt-header-section {
    padding-top: 2rem;
    padding-bottom: 0.5rem;
}

.vnt-header-section .fp-section__subtitle {
    margin-top: 0.25rem;
}

/* ============================================
   Movie Grid (hero card layout, 2 columns)
   ============================================ */
.vnt-movie-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-top: 0.75rem;
}

/* ============================================
   This Week Hero Section (C9)
   ============================================ */
.vnt-this-week {
    background: linear-gradient(135deg, rgba(98, 176, 186, 0.08) 0%, rgba(98, 176, 186, 0.02) 100%);
    border-bottom: 1px solid var(--vnt-border);
}

.vnt-this-week .fp-section__subtitle {
    margin: 0 0 1.25rem;
}

.vnt-hero-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.vnt-hero-card {
    display: flex;
    position: relative;
    background: var(--vnt-card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--vnt-shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
    min-height: 220px;
}

.vnt-icelandic-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: linear-gradient(135deg, #003897, #00338a);
    color: #fff;
    padding: 0.3rem 0.65rem;
    border-radius: 5px;
    font-size: 0.72rem;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.vnt-hero-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--vnt-shadow-hover);
}

.vnt-hero-card__poster {
    flex-shrink: 0;
    width: 150px;
    position: relative;
    overflow: hidden;
}

.vnt-hero-card__poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.vnt-hero-card__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    opacity: 0;
    transition: opacity 0.2s;
}

.vnt-hero-card__play svg {
    width: 18px;
    height: 18px;
    margin-left: 2px;
}

.vnt-hero-card:hover .vnt-hero-card__play {
    opacity: 1;
}

.vnt-hero-card__info {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.vnt-hero-card__title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--vnt-dark);
    margin: 0;
    line-height: 1.3;
}

.vnt-hero-card__date {
    font-size: 0.8rem;
    color: var(--vnt-accent);
    font-weight: 600;
}

.vnt-hero-card__genres {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.vnt-hero-card__genre {
    font-size: 0.7rem;
    padding: 0.15rem 0.4rem;
    background: var(--vnt-grey);
    color: var(--vnt-text-light);
    border-radius: 3px;
}

.vnt-hero-card__plot {
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--vnt-text-light);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================
   Watchlist Button (B6-B8)
   ============================================ */
.vnt-watchlist-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    background: var(--vnt-primary);
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: auto;
    width: fit-content;
}

.vnt-watchlist-btn:hover {
    background: var(--vnt-primary-dark);
    transform: scale(1.02);
}

.vnt-watchlist-btn svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.vnt-watchlist-btn[data-wannasee="1"] {
    background: var(--vnt-accent);
}

.vnt-watchlist-btn[data-wannasee="1"] svg {
    fill: currentColor;
}

/* ============================================
   Month Sections
   ============================================ */

/* ============================================
   Ads Integration
   ============================================ */
.vnt-ad-slot {
    margin: 1.5rem auto;
    text-align: center;
}

.vnt-ad-slot--top {
    margin-top: 0;
}

/* ============================================
   Mobile Responsiveness
   ============================================ */
@media (max-width: 900px) {
    .vnt-movie-grid,
    .vnt-hero-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .vnt-header-section {
        padding-top: 1.25rem;
    }

    .vnt-hero-card {
        min-height: 180px;
    }

    .vnt-hero-card__poster {
        width: 120px;
    }

    .vnt-hero-card__title {
        font-size: 0.9rem;
    }

    .vnt-hero-card__info {
        padding: 0.75rem;
    }

    .vnt-hero-card__plot {
        -webkit-line-clamp: 2;
    }

    .vnt-watchlist-btn {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }

    .vnt-icelandic-badge {
        font-size: 0.65rem;
        padding: 0.25rem 0.5rem;
        top: 0.4rem;
        right: 0.4rem;
    }
}

@media (max-width: 480px) {
    .vnt-hero-card {
        min-height: auto;
    }

    .vnt-hero-card__poster {
        width: 90px;
    }

    .vnt-hero-card__genres {
        display: none;
    }

    .vnt-hero-card__plot {
        -webkit-line-clamp: 2;
        font-size: 0.75rem;
    }

    .vnt-filter-bar {
        gap: 0.4rem;
    }

    .vnt-filter-pill {
        font-size: 0.78rem;
        padding: 0.35rem 0.7rem;
    }
}

/* ============================================
   Genre Filter Bar
   ============================================ */
.vnt-filter-section {
    padding-top: 0;
    padding-bottom: 0;
}

.vnt-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.5rem 0;
}

.vnt-filter-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 1rem;
    border: 1.5px solid var(--vnt-border);
    border-radius: 20px;
    background: var(--vnt-card-bg);
    color: var(--vnt-text);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.vnt-filter-pill:hover {
    border-color: var(--vnt-primary);
    color: var(--vnt-primary);
    background: rgba(98, 176, 186, 0.06);
}

.vnt-filter-pill--active {
    background: var(--vnt-primary);
    color: #fff;
    border-color: var(--vnt-primary);
}

.vnt-filter-pill--active:hover {
    background: var(--vnt-primary-dark);
    color: #fff;
    border-color: var(--vnt-primary-dark);
}
