/* ===================================================================
   BrainGain Magazine — Video-First Layout (CNN-Style)
   Shared CSS for country pages: USA, UK, Germany
   =================================================================== */

/* ===== DARK BREADCRUMB (overrides inline page styles) ===== */
.breadcrumb-bar-dark {
    padding-top: 68px;
    background: var(--navy);
}

.breadcrumb-bar-dark .breadcrumb {
    color: rgba(255,255,255,0.5);
}

.breadcrumb-bar-dark .breadcrumb a {
    color: var(--teal-light);
}

.breadcrumb-bar-dark .breadcrumb a:hover {
    color: var(--teal);
}

.breadcrumb-bar-dark .breadcrumb-sep {
    color: rgba(255,255,255,0.25);
}

.breadcrumb-bar-dark .breadcrumb-current {
    color: rgba(255,255,255,0.65);
}

/* ===== VIDEO HERO ===== */
.video-hero {
    background: var(--navy);
    padding: 0 0 40px;
    position: relative;
}

.video-hero-featured {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.video-hero-player {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    background: #000;
}

.video-hero-player img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.video-hero-player:hover img {
    transform: scale(1.03);
}

.video-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px 36px 32px;
    background: linear-gradient(transparent 0%, rgba(15, 23, 42, 0.85) 60%, rgba(15, 23, 42, 0.98) 100%);
    pointer-events: none;
}

.video-hero-category {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--teal-light);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 10px;
}

.video-hero-category::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--teal);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.video-hero-title {
    font-family: 'Lora', Georgia, serif;
    font-size: clamp(1.5rem, 3.5vw, 2.5rem);
    color: white;
    font-weight: 700;
    line-height: 1.2;
    max-width: 700px;
    margin-bottom: 6px;
}

.video-hero-title em {
    font-style: italic;
    color: var(--teal-light);
}

.video-hero-subtitle {
    font-size: 0.92rem;
    color: rgba(255,255,255,0.6);
    max-width: 500px;
}

.video-hero-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(13, 148, 136, 0.88);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 24px rgba(0,0,0,0.35);
    z-index: 2;
}

.video-hero-player:hover .video-hero-play {
    background: var(--teal);
    transform: translate(-50%, -50%) scale(1.12);
    box-shadow: 0 8px 32px rgba(13, 148, 136, 0.4);
}

.video-hero-play svg {
    width: 30px;
    height: 30px;
    fill: white;
    margin-left: 4px;
}

.video-hero-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 100px;
    letter-spacing: 0.03em;
    z-index: 2;
}

/* Stats strip */
.video-hero-stats {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 28px auto 0;
    padding: 0 24px;
}

.video-hero-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.video-hero-stat-num {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

.video-hero-stat-label {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.45);
    font-weight: 500;
}

.video-hero-stat-divider {
    width: 1px;
    height: 32px;
    background: rgba(255,255,255,0.12);
}

/* ===== MEDIA GRID ===== */
.media-grid-section {
    background: var(--navy);
    padding: 32px 0 72px;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.media-card {
    background: var(--navy-light);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255,255,255,0.06);
}

.media-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 36px rgba(0,0,0,0.35);
    border-color: rgba(255,255,255,0.1);
}

/* Video cards */
.media-card-video .media-card-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    cursor: pointer;
    overflow: hidden;
    background: #000;
}

.media-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.media-card:hover .media-card-thumb img {
    transform: scale(1.06);
}

.media-card-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: rgba(13, 148, 136, 0.85);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.media-card:hover .media-card-play {
    background: var(--teal);
    transform: translate(-50%, -50%) scale(1.12);
}

.media-card-play svg {
    width: 18px;
    height: 18px;
    fill: white;
    margin-left: 2px;
}

.media-card-yt-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: rgba(255,255,255,0.85);
    font-size: 0.62rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
}

.media-card-body {
    padding: 14px 16px 18px;
}

.media-card-tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--teal-light);
    margin-bottom: 6px;
}

.media-card-title {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: white;
    line-height: 1.35;
    margin-bottom: 5px;
}

.media-card-desc {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.45);
    line-height: 1.5;
}

/* Content teaser cards */
.media-card-content {
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.media-card-content .media-card-icon {
    font-size: 1.8rem;
    margin-bottom: 10px;
    line-height: 1;
}

.media-card-content .media-card-tag {
    color: var(--amber-light);
}

.media-card-content .media-card-title {
    font-size: 1.02rem;
    margin-bottom: 8px;
}

.media-card-content .media-card-desc {
    color: rgba(255,255,255,0.5);
    margin-bottom: 12px;
}

.media-card-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--teal-light);
    font-size: 0.8rem;
    font-weight: 600;
    transition: gap 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
}

.media-card:hover .media-card-link {
    gap: 10px;
}

/* Newsletter CTA card */
.media-card-newsletter {
    background: linear-gradient(145deg, var(--teal-dark) 0%, var(--teal) 100%);
    padding: 24px 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: none;
    cursor: pointer;
}

.media-card-newsletter:hover {
    background: linear-gradient(145deg, var(--teal) 0%, var(--teal-dark) 100%);
}

.media-card-newsletter .media-card-icon {
    font-size: 1.8rem;
    margin-bottom: 8px;
    line-height: 1;
}

.media-card-newsletter .media-card-title {
    font-size: 1.02rem;
    color: white;
    margin-bottom: 8px;
}

.media-card-newsletter .media-card-desc {
    color: rgba(255,255,255,0.78);
    margin-bottom: 14px;
    font-size: 0.78rem;
}

.media-card-newsletter .media-card-link {
    color: white;
    font-weight: 700;
    font-size: 0.82rem;
}

/* ===== SECTION TRANSITION (dark → light) ===== */
.section-transition {
    height: 80px;
    background: linear-gradient(180deg, var(--navy) 0%, var(--cream) 100%);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .media-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .video-hero-overlay {
        padding: 40px 28px 24px;
    }
}

@media (max-width: 768px) {
    .video-hero {
        padding: 0 0 28px;
    }
    .video-hero-player {
        border-radius: 12px;
    }
    .video-hero-overlay {
        padding: 32px 20px 20px;
    }
    .video-hero-title {
        font-size: clamp(1.3rem, 4.5vw, 1.8rem);
    }
    .video-hero-subtitle {
        font-size: 0.82rem;
    }
    .video-hero-play {
        width: 64px;
        height: 64px;
    }
    .video-hero-play svg {
        width: 24px;
        height: 24px;
    }
    .video-hero-stats {
        gap: 18px;
        margin-top: 20px;
    }
    .video-hero-stat-num {
        font-size: 1.1rem;
    }
    .video-hero-stat-divider {
        height: 24px;
    }
    .media-grid-section {
        padding: 20px 0 52px;
    }
}

@media (max-width: 640px) {
    .video-hero-featured {
        padding: 0 16px;
    }
    .video-hero-player {
        border-radius: 10px;
    }
    .video-hero-play {
        width: 56px;
        height: 56px;
    }
    .video-hero-play svg {
        width: 22px;
        height: 22px;
    }
    .video-hero-badge {
        top: 10px;
        left: 10px;
        font-size: 0.65rem;
    }
    .video-hero-stats {
        padding: 0 16px;
        gap: 14px;
    }
    .video-hero-stat-num {
        font-size: 1rem;
    }
    .video-hero-stat-label {
        font-size: 0.65rem;
    }
    .media-grid {
        grid-template-columns: 1fr;
        padding: 0 16px;
        gap: 14px;
    }
    .media-grid-section {
        padding: 16px 0 40px;
    }
    .media-card-body {
        padding: 12px 14px 16px;
    }
    .media-card-content {
        padding: 18px 16px;
    }
    .section-transition {
        height: 48px;
    }
}
