/*
 * Copyright (c) 2026 Kyle Blizzard. All Rights Reserved.
 * This code is publicly visible for portfolio purposes only.
 * Unauthorized copying, forking, or distribution of this file,
 * via any medium, is strictly prohibited.
 */

/*
 * streaming.css — GoWrestle Theme Main Stylesheet
 *
 * This file contains ALL visual styling for the theme. It's organized by
 * component, top to bottom, matching the order elements appear on the page:
 *
 *   1. Reset & Base           — override browser defaults and GeneratePress
 *   2. Animations             — keyframe animations for fade/slide/scale effects
 *   3. Typography             — headings, body text, links
 *   4. Buttons                — all button variants (primary, ghost, play, etc.)
 *   5. Header & Navigation    — fixed nav bar, mobile menu, scroll effect
 *   6. Hero Section           — homepage banner with overlay and content
 *   7. Content Rows           — horizontal scrolling category rows
 *   8. Video Cards            — thumbnail + title + meta component
 *   9. CTA Banner             — subscription pitch section
 *  10. Single Post / Video    — video player, post info, related content
 *  11. Archive / Category     — grid layout for category pages
 *  12. Pagination             — numbered page navigation
 *  13. Footer                 — site footer with links and social
 *  14. IHC Paywall Styling    — Indeed Membership Pro locker overrides
 *  15. Responsive Breakpoints — tablet and mobile adjustments
 *
 * CSS custom properties (colors, fonts, spacing) are defined in style.css
 * and referenced here as var(--gw-*).
 */


/* ==========================================================================
   1. RESET & BASE
   ========================================================================== */

/* Override GeneratePress defaults — force our dark theme on everything.
   The !important flags are needed because GP injects its own styles at
   multiple priority levels. */
body,
.site,
.site-content {
    background-color: var(--gw-bg) !important;
    color: var(--gw-text) !important;
    font-family: var(--gw-font-body) !important;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Remove GeneratePress's default page container and sidebar layout.
   We handle all layout ourselves with our own classes. */
.site-content .content-area,
.site-content .widget-area,
#primary,
#secondary,
.inside-article,
.generate-columns-container {
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
}

/* Subtle grain texture overlay — adds a cinematic/venue-like atmosphere.
   The SVG creates a tiny noise pattern at very low opacity so it's felt
   more than seen. */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.5'/%3E%3C/svg%3E");
}

/* Hide GeneratePress's default header and footer — we use our own */
.site-header,
.site-footer,
#site-navigation,
.main-navigation {
    display: none !important;
}

/* Global box-sizing — every element includes padding and border in its
   width calculation. Without this, adding padding makes things wider
   than expected and breaks layouts. */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Remove default link underlines throughout the theme */
a {
    text-decoration: none;
    color: inherit;
}

/* Smooth scrolling when clicking anchor links */
html {
    scroll-behavior: smooth;
}


/* ==========================================================================
   2. ANIMATIONS
   ========================================================================== */

/* Fade up — element slides up 30px while fading in.
   Used for hero content, cards loading in, section headers. */
@keyframes gw-fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Simple fade — opacity only, no movement */
@keyframes gw-fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Slide in from left — used for staggered list items */
@keyframes gw-slideRight {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scale up — pops in from slightly smaller. Used for grid items. */
@keyframes gw-scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Continuous glow pulse — gold shadow throbs gently.
   Used on the video play button to draw attention. */
@keyframes gw-glowPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(201, 168, 76, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(201, 168, 76, 0.6);
    }
}


/* ==========================================================================
   3. TYPOGRAPHY
   ========================================================================== */

/* All headings use the display font — bold, uppercase, condensed.
   Looks like event posters and championship title cards. */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--gw-font-display);
    color: var(--gw-white);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.1;
    margin: 0;
}

p {
    margin: 0 0 1em;
}


/* ==========================================================================
   4. BUTTONS
   ========================================================================== */

/* Base button styles — all buttons share these properties */
.gw-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--gw-font-display);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 12px 28px;
    border: none;
    border-radius: var(--gw-radius);
    cursor: pointer;
    transition: all var(--gw-transition);
    text-decoration: none;
    white-space: nowrap;
    line-height: 1;
}

/* Hover lift effect — all buttons float up slightly on hover */
.gw-btn:hover {
    transform: translateY(-2px);
}

/* Primary button — bold red, used for main CTAs (Subscribe, Start Watching) */
.gw-btn--primary {
    background-color: var(--gw-red);
    color: var(--gw-white);
    box-shadow: 0 4px 16px var(--gw-red-glow);
}

.gw-btn--primary:hover {
    background-color: #d42240;
    box-shadow: 0 6px 24px rgba(196, 30, 58, 0.5);
}

/* Secondary button — frosted glass effect with blur backdrop */
.gw-btn--secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--gw-white);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.gw-btn--secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
}

/* Ghost button — transparent with gold border, used for "Sign In" */
.gw-btn--ghost {
    background: transparent;
    color: var(--gw-white);
    border: 1px solid var(--gw-border-strong);
}

.gw-btn--ghost:hover {
    border-color: var(--gw-gold);
    color: var(--gw-gold);
}

/* Play button — gold background, black text. The "Watch Now" hero button. */
.gw-btn--play {
    background-color: var(--gw-gold);
    color: var(--gw-black);
    padding: 16px 36px;
    font-size: 16px;
    box-shadow: 0 0 20px rgba(201, 168, 76, 0.3);
}

.gw-btn--play:hover {
    background-color: var(--gw-gold-bright);
    box-shadow: 0 0 30px rgba(201, 168, 76, 0.5);
}

/* Large button variant — bigger padding and text */
.gw-btn--lg {
    font-size: 16px;
    padding: 16px 40px;
}

/* Small button variant — for header buttons that shouldn't be huge */
.gw-btn--sm {
    font-size: 12px;
    padding: 8px 20px;
    letter-spacing: 1.5px;
}


/* ==========================================================================
   5. HEADER & NAVIGATION
   ========================================================================== */

/* Fixed header — always visible at top of viewport */
.gw-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--gw-header-height);
    transition: background var(--gw-transition), box-shadow var(--gw-transition);
}

/* When the user scrolls down 50px, JavaScript adds .scrolled which triggers
   this frosted glass background effect. Before scrolling, the header is
   transparent so the hero image shows through. */
.gw-header.scrolled {
    background: rgba(13, 13, 13, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 var(--gw-border);
}

/* Header inner container — flex layout: logo | nav | buttons */
.gw-header__inner {
    max-width: 1800px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4%;
}

/* Logo styling */
.gw-logo {
    display: flex;
    align-items: center;
    font-family: var(--gw-font-display);
    font-size: 34px;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: 1px;
    flex-shrink: 0;
}

/* "GO" in gold with a subtle glow */
.gw-logo__go {
    color: var(--gw-gold);
    text-shadow: 0 0 20px rgba(201, 168, 76, 0.3);
}

/* "WRESTLE" in white */
.gw-logo__wrestle {
    color: var(--gw-white);
}

/* Navigation menu — centered between logo and buttons */
.gw-nav {
    display: flex;
    align-items: center;
}

/* The <ul> generated by wp_nav_menu() */
.gw-nav-list {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Individual nav items */
.gw-nav-list li {
    position: relative;
}

/* Nav links — uppercase display font, subtle color until hovered */
.gw-nav-list li a {
    font-family: var(--gw-font-display);
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gw-text-muted);
    text-decoration: none;
    padding: 8px 0;
    transition: color var(--gw-transition-fast);
    position: relative;
}

/* Gold underline animation on hover — bar grows from center */
.gw-nav-list li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gw-gold);
    transition: width var(--gw-transition);
}

.gw-nav-list li a:hover,
.gw-nav-list li.current-menu-item a {
    color: var(--gw-white);
}

.gw-nav-list li a:hover::after,
.gw-nav-list li.current-menu-item a::after {
    width: 100%;
}

/* Dropdown submenus */
.gw-nav-list li ul.sub-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(21, 21, 21, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--gw-border);
    border-radius: var(--gw-radius-lg);
    padding: 12px 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--gw-transition-fast), visibility var(--gw-transition-fast);
    list-style: none;
    margin: 8px 0 0;
}

.gw-nav-list li:hover > ul.sub-menu {
    opacity: 1;
    visibility: visible;
}

.gw-nav-list li ul.sub-menu li a {
    display: block;
    padding: 10px 20px;
    font-size: 13px;
    letter-spacing: 1.5px;
}

.gw-nav-list li ul.sub-menu li a::after {
    display: none;
}

/* Header right side — login/subscribe buttons + mobile toggle */
.gw-header__right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* Account icon for logged-in users */
.gw-header__account {
    color: var(--gw-text-muted);
    transition: color var(--gw-transition-fast);
    display: flex;
    align-items: center;
}

.gw-header__account:hover {
    color: var(--gw-gold);
}

/* Mobile menu hamburger toggle — hidden on desktop */
.gw-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

/* Three horizontal lines that make up the hamburger icon */
.gw-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gw-white);
    transition: all var(--gw-transition);
    transform-origin: center;
}

/* Animate hamburger → X when menu is open */
.gw-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.gw-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.gw-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}


/* ==========================================================================
   6. HERO SECTION
   ========================================================================== */

/* Full-width hero with background image */
.gw-hero {
    position: relative;
    width: 100%;
    min-height: 90vh;
    max-height: 1000px;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-color: var(--gw-bg);
    overflow: hidden;
}

/* Dark gradient overlay — heavier at the bottom where text sits.
   The diagonal angle (160deg) adds visual interest compared to a
   straight top-to-bottom gradient. */
.gw-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    background: linear-gradient(
        160deg,
        rgba(13, 13, 13, 0.3) 0%,
        rgba(13, 13, 13, 0.1) 30%,
        rgba(13, 13, 13, 0.5) 60%,
        rgba(13, 13, 13, 0.95) 85%,
        #0d0d0d 100%
    );
}

/* Thin red/gold gradient accent bar at the hero's bottom edge */
.gw-hero__accent {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 2;
    background: linear-gradient(90deg, var(--gw-red), var(--gw-gold), var(--gw-red));
}

/* Hero content — positioned above the overlay (z-index 3) */
.gw-hero__content {
    position: relative;
    z-index: 3;
    max-width: 700px;
    padding: 0 4% 90px;
}

/* Category tag pills above the hero title */
.gw-hero__tags {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    animation: gw-fadeUp 0.6s ease both 0.2s;
}

.gw-hero__tag {
    font-family: var(--gw-font-display);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gw-gold);
    background: rgba(201, 168, 76, 0.12);
    border: 1px solid rgba(201, 168, 76, 0.25);
    padding: 6px 14px;
    border-radius: var(--gw-radius);
}

/* Hero title — large, responsive font size using clamp() */
.gw-hero__title {
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -1px;
    margin-bottom: 16px;
    animation: gw-fadeUp 0.6s ease both 0.3s;
}

/* Hero excerpt/description */
.gw-hero__excerpt {
    font-size: 17px;
    line-height: 1.6;
    color: var(--gw-text);
    max-width: 500px;
    margin-bottom: 24px;
    animation: gw-fadeUp 0.6s ease both 0.4s;
}

/* Hero action buttons */
.gw-hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    animation: gw-fadeUp 0.6s ease both 0.5s;
}


/* ==========================================================================
   7. CONTENT ROWS — Horizontal Scrolling Category Rows
   ========================================================================== */

/* Container for all category rows */
.gw-content-section {
    padding: 40px 0 60px;
}

/* Individual category row */
.gw-row {
    max-width: 1800px;
    margin: 0 auto;
    padding: 16px 4%;
}

/* Gold gradient divider between rows (skip the first one) */
.gw-row + .gw-row {
    border-top: 1px solid var(--gw-border);
}

/* Row header: category name (left) + "View All" link (right) */
.gw-row__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

/* Category row title with gold left bar accent */
.gw-row__title {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 2px;
    position: relative;
    padding-left: 16px;
}

/* Gold bar to the left of the row title */
.gw-row__title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 70%;
    background: var(--gw-gold);
    border-radius: 2px;
}

/* "View All" link — gold, uppercase, widens letter-spacing on hover */
.gw-row__more {
    font-family: var(--gw-font-display);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gw-gold);
    transition: all var(--gw-transition);
}

.gw-row__more:hover {
    color: var(--gw-gold-bright);
    letter-spacing: 3px;
}

/* Scroll wrapper — positions the arrows over the card container */
.gw-row__scroll-wrapper {
    position: relative;
}

/* The actual scrollable row of cards */
.gw-row__cards {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 8px 0;

    /* Hide the scrollbar — we use arrow buttons instead */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.gw-row__cards::-webkit-scrollbar {
    display: none;
}

/* Scroll arrow buttons — circular, positioned at edges of the row */
.gw-row__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(13, 13, 13, 0.8);
    border: 1px solid var(--gw-border-strong);
    color: var(--gw-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 0;
    transition: all var(--gw-transition);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Show arrows when hovering over the row */
.gw-row__scroll-wrapper:hover .gw-row__arrow {
    opacity: 1;
}

.gw-row__arrow:hover {
    background: rgba(201, 168, 76, 0.15);
    border-color: var(--gw-gold);
    box-shadow: var(--gw-shadow-gold);
}

/* Position left and right arrows just outside the card area */
.gw-row__arrow--left {
    left: -12px;
}

.gw-row__arrow--right {
    right: -12px;
}

/* Hide arrows that have nothing to scroll to (managed by JS) */
.gw-row__arrow[disabled] {
    opacity: 0 !important;
    pointer-events: none;
}


/* ==========================================================================
   8. VIDEO CARDS
   ========================================================================== */

/* Card container — fixed width in rows, full width in grids */
.gw-card {
    flex: 0 0 auto;
    width: 300px;
    border-radius: var(--gw-radius);
    background: var(--gw-bg-card);
    overflow: hidden;
    transition: all var(--gw-transition);
}

/* Hover: float up, scale slightly, add gold-tinted shadow */
.gw-card:hover {
    transform: scale(1.06) translateY(-4px);
    z-index: 5;
    box-shadow: var(--gw-shadow-lg), 0 0 0 1px rgba(201, 168, 76, 0.15);
}

/* Card link — wraps the entire card so the whole thing is clickable */
.gw-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Thumbnail container — maintains 16:9 aspect ratio */
.gw-card__thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--gw-bg-elevated);
}

/* Thumbnail image — slight desaturation that lifts on hover */
.gw-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.85) saturate(0.9);
    transition: all var(--gw-transition);
}

/* On card hover, brighten and saturate the thumbnail */
.gw-card:hover .gw-card__img {
    filter: brightness(1) saturate(1.1);
    transform: scale(1.1);
}

/* Placeholder for posts without a featured image */
.gw-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gw-bg-elevated), var(--gw-bg-card));
}

/* Play button overlay — appears centered over the thumbnail on hover */
.gw-card__play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

/* The circular gold play button */
.gw-card__play-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gw-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.7);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 0 30px rgba(201, 168, 76, 0.4);
    padding-left: 4px; /* Optically center the play triangle */
}

/* Show play button on card hover with spring-like animation */
.gw-card:hover .gw-card__play-btn {
    opacity: 1;
    transform: scale(1);
}

/* Card info section below the thumbnail */
.gw-card__info {
    padding: 14px 12px 10px;
}

/* Post title — max 2 lines, truncated with ellipsis */
.gw-card__title {
    font-family: var(--gw-font-display);
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gw-text);
    line-height: 1.3;
    margin: 0 0 8px;

    /* Truncate to 2 lines using the line-clamp CSS technique */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--gw-transition-fast);
}

.gw-card:hover .gw-card__title {
    color: var(--gw-white);
}

/* Meta line below title: category + date */
.gw-card__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
}

/* Category label — gold, uppercase, small */
.gw-card__category {
    color: var(--gw-gold);
    font-family: var(--gw-font-display);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Date — muted gray */
.gw-card__date {
    color: var(--gw-text-dim);
    font-size: 12px;
}


/* ==========================================================================
   9. CTA BANNER — Subscription Pitch
   ========================================================================== */

/* CTA section with dramatic diagonal background */
.gw-cta {
    border-top: 1px solid var(--gw-border);
    border-bottom: 1px solid var(--gw-border);
    background: linear-gradient(135deg, var(--gw-red-dark) 0%, #1a0810 50%, var(--gw-bg-elevated) 100%);
    position: relative;
    overflow: hidden;
}

/* Skewed gold accent stripe behind the CTA content */
.gw-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -10%;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.05), transparent);
    transform: skewX(-20deg);
}

/* CTA inner layout — text on left, button on right */
.gw-cta__inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 48px 4%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.gw-cta__title {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.gw-cta__desc {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
}

/* Highlight important words in gold */
.gw-cta__desc strong {
    color: var(--gw-gold);
    font-weight: 600;
}


/* ==========================================================================
   10. SINGLE POST / VIDEO PAGE
   ========================================================================== */

/* Video player section — full-width black background */
.gw-player {
    background: #000;
    padding-top: var(--gw-header-height);
}

/* Center the video with max width */
.gw-player__container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Responsive video wrapper — forces 16:9 aspect ratio on any embed */
.gw-video-wrapper {
    position: relative;
    aspect-ratio: 16 / 9;
    width: 100%;
    background: #000;
}

/* Force all embeds (iframes, videos, etc.) to fill the wrapper */
.gw-video-wrapper iframe,
.gw-video-wrapper video,
.gw-video-wrapper embed,
.gw-video-wrapper object {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
}

/* Poster image (when no video is set) */
.gw-poster {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.gw-poster__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Semi-transparent overlay on poster */
.gw-poster__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Large gold play button on poster — with continuous glow animation */
.gw-poster__play {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: var(--gw-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 6px;
    animation: gw-glowPulse 2s ease-in-out infinite;
}

/* Post info section below the video */
.gw-single-info {
    background: var(--gw-bg);
    padding: 48px 4%;
}

.gw-single-info__inner {
    max-width: 900px;
    margin: 0 auto;
}

/* Meta bar above title: category tags + date */
.gw-single-info__meta-top {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

/* Category tag links */
.gw-single-info__tag {
    font-family: var(--gw-font-display);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gw-gold);
    transition: color var(--gw-transition-fast);
}

.gw-single-info__tag:hover {
    color: var(--gw-gold-bright);
}

.gw-single-info__date {
    font-size: 13px;
    color: var(--gw-text-muted);
}

/* Post title */
.gw-single-info__title {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 900;
    letter-spacing: 1px;
    line-height: 1.05;
    margin-bottom: 24px;
}

/* Post content area — the_content() output */
.gw-single-info__content {
    font-size: 17px;
    line-height: 1.7;
    color: var(--gw-text);
}

.gw-single-info__content a {
    color: var(--gw-gold);
    border-bottom: 1px solid transparent;
    transition: all var(--gw-transition-fast);
}

.gw-single-info__content a:hover {
    color: var(--gw-gold-bright);
    border-bottom-color: var(--gw-gold-bright);
}

/* Related content section below the post */
.gw-related {
    margin-top: 20px;
    padding-top: 40px;
    border-top: 1px solid var(--gw-border);
}


/* ==========================================================================
   11. ARCHIVE / CATEGORY PAGES
   ========================================================================== */

/* Archive page header */
.gw-archive-header {
    padding: calc(var(--gw-header-height) + 48px) 4% 40px;
    background: var(--gw-bg);
}

.gw-archive-header__inner {
    max-width: 1800px;
    margin: 0 auto;
}

/* Archive title — large and bold */
.gw-archive-header__title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

/* Category/archive description */
.gw-archive-header__desc {
    font-size: 16px;
    color: var(--gw-text-muted);
    max-width: 600px;
    margin-bottom: 8px;
}

/* Post count badge */
.gw-archive-header__count {
    font-family: var(--gw-font-display);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gw-gold);
}

/* Archive grid container */
.gw-archive {
    padding: 0 4% 60px;
    background: var(--gw-bg);
}

.gw-archive__inner {
    max-width: 1800px;
    margin: 0 auto;
}

/* Responsive grid — auto-fills columns, each at least 280px wide.
   On a 1440px screen this gives ~4 columns; on mobile, 1 column. */
.gw-archive__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

/* Cards in the grid should fill their column width instead of fixed 300px */
.gw-archive__grid .gw-card {
    width: 100%;
}

/* Staggered fade-in animation for grid items.
   Each card gets a slightly longer delay, creating a "cascade" effect. */
.gw-archive__grid .gw-card:nth-child(1) { animation: gw-scaleIn 0.4s ease both 0.05s; }
.gw-archive__grid .gw-card:nth-child(2) { animation: gw-scaleIn 0.4s ease both 0.1s; }
.gw-archive__grid .gw-card:nth-child(3) { animation: gw-scaleIn 0.4s ease both 0.15s; }
.gw-archive__grid .gw-card:nth-child(4) { animation: gw-scaleIn 0.4s ease both 0.2s; }
.gw-archive__grid .gw-card:nth-child(5) { animation: gw-scaleIn 0.4s ease both 0.25s; }
.gw-archive__grid .gw-card:nth-child(6) { animation: gw-scaleIn 0.4s ease both 0.3s; }
.gw-archive__grid .gw-card:nth-child(7) { animation: gw-scaleIn 0.4s ease both 0.35s; }
.gw-archive__grid .gw-card:nth-child(8) { animation: gw-scaleIn 0.4s ease both 0.4s; }
.gw-archive__grid .gw-card:nth-child(n+9) { animation: gw-scaleIn 0.4s ease both 0.4s; }

/* Empty state when no posts found */
.gw-archive__empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 100px 20px;
    color: var(--gw-text-muted);
    font-size: 16px;
}


/* ==========================================================================
   12. PAGINATION
   ========================================================================== */

.gw-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 48px;
    padding: 20px 0;
}

/* Pagination links and current page indicator */
.gw-pagination a,
.gw-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0 12px;
    font-family: var(--gw-font-display);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: var(--gw-radius);
    background: var(--gw-bg-card);
    border: 1px solid var(--gw-border);
    color: var(--gw-text-muted);
    transition: all var(--gw-transition);
}

.gw-pagination a:hover {
    background: var(--gw-bg-card-hover);
    color: var(--gw-white);
    border-color: var(--gw-border-strong);
}

/* Current page — gold highlight */
.gw-pagination span.current {
    background: var(--gw-gold);
    color: var(--gw-black);
    border-color: var(--gw-gold);
}

/* Previous/next arrow buttons */
.gw-pagination a.prev,
.gw-pagination a.next {
    padding: 0 8px;
}


/* ==========================================================================
   13. FOOTER
   ========================================================================== */

.gw-footer {
    background: #000;
    position: relative;
}

/* Gold gradient accent bar at top of footer */
.gw-footer__accent {
    height: 3px;
    background: linear-gradient(90deg, var(--gw-red), var(--gw-gold), var(--gw-red));
}

.gw-footer__inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 64px 4% 32px;
}

/* Top section: brand (left) + link columns (right) */
.gw-footer__top {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    margin-bottom: 48px;
}

/* Footer logo — slightly smaller than header */
.gw-logo--footer {
    font-size: 28px;
    margin-bottom: 12px;
}

.gw-footer__tagline {
    font-family: var(--gw-font-display);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gw-text-muted);
    margin: 0;
}

/* Three-column link layout */
.gw-footer__links {
    display: flex;
    gap: 60px;
}

/* Column heading */
.gw-footer__heading {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--gw-gold);
    margin-bottom: 16px;
}

/* Link list */
.gw-footer__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.gw-footer__list li {
    margin-bottom: 10px;
}

.gw-footer__list a {
    font-size: 14px;
    color: var(--gw-text-muted);
    transition: color var(--gw-transition-fast);
}

.gw-footer__list a:hover {
    color: var(--gw-white);
}

/* Bottom bar: copyright (left) + social icons (right) */
.gw-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.gw-footer__copyright {
    font-size: 13px;
    color: var(--gw-text-dim);
    margin: 0;
}

/* Social media icons */
.gw-footer__social {
    display: flex;
    gap: 16px;
}

.gw-footer__social-link {
    color: var(--gw-text-muted);
    transition: all var(--gw-transition);
    display: flex;
    align-items: center;
}

.gw-footer__social-link:hover {
    color: var(--gw-gold);
    transform: translateY(-2px);
}


/* ==========================================================================
   14. IHC PAYWALL STYLING
   ========================================================================== */

/* Indeed Membership Pro's content locker — the "Subscribe to view" box
   that appears when restricted content is blocked for non-subscribers. */
.ihc-locker-wrap {
    background: var(--gw-bg-elevated) !important;
    border: 1px solid var(--gw-border-strong) !important;
    border-radius: var(--gw-radius-lg) !important;
    padding: 48px !important;
    text-align: center;
    margin: 24px 0;
    color: var(--gw-text) !important;
}

.ihc-locker-wrap a {
    color: var(--gw-gold) !important;
}

.ihc-locker-wrap a:hover {
    color: var(--gw-gold-bright) !important;
}

/* Style IHC's submit/action buttons to match our design */
.ihc-locker-wrap input[type="submit"],
.ihc-locker-wrap .ihc-submit-btn,
.ihc_submit_bttn {
    background: var(--gw-gold) !important;
    color: var(--gw-black) !important;
    font-family: var(--gw-font-display) !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    border: none !important;
    border-radius: var(--gw-radius) !important;
    padding: 12px 28px !important;
    cursor: pointer;
    transition: all var(--gw-transition);
}

.ihc-locker-wrap input[type="submit"]:hover,
.ihc-locker-wrap .ihc-submit-btn:hover,
.ihc_submit_bttn:hover {
    background: var(--gw-gold-bright) !important;
    box-shadow: var(--gw-shadow-gold) !important;
}


/* ==========================================================================
   15. RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* --- Tablet (1024px and below) --- */
@media (max-width: 1024px) {
    .gw-card {
        width: 260px;
    }

    .gw-row__title {
        font-size: 22px;
    }
}

/* --- Mobile (768px and below) --- */
@media (max-width: 768px) {

    /* Header shrinks on mobile */
    .gw-header {
        height: 64px;
    }

    /* Show the hamburger menu toggle */
    .gw-menu-toggle {
        display: flex;
    }

    /* Hide desktop nav — replaced by full-screen overlay menu */
    .gw-nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(13, 13, 13, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        z-index: 999;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        transition: opacity var(--gw-transition), visibility var(--gw-transition);
    }

    /* Show nav when toggle is active */
    .gw-nav.active {
        opacity: 1;
        visibility: visible;
    }

    /* Stack nav items vertically */
    .gw-nav-list {
        flex-direction: column;
        gap: 0;
        text-align: center;
    }

    .gw-nav-list li a {
        display: block;
        padding: 16px;
        font-size: 20px;
    }

    /* Submenus become static below parent */
    .gw-nav-list li ul.sub-menu {
        position: static;
        transform: none;
        background: transparent;
        border: none;
        backdrop-filter: none;
        opacity: 1;
        visibility: visible;
        padding: 0;
        min-width: 0;
        margin: 0;
    }

    .gw-nav-list li ul.sub-menu li a {
        font-size: 16px;
        padding: 12px 16px;
        color: var(--gw-text-muted);
    }

    /* Hide Sign In/Subscribe buttons on mobile (they're in the nav menu) */
    .gw-header__right .gw-btn {
        display: none;
    }

    /* Smaller cards on mobile */
    .gw-card {
        width: 220px;
    }

    /* Hide scroll arrows on mobile — use native swipe scrolling instead */
    .gw-row__arrow {
        display: none;
    }

    /* Hero section — shorter on mobile */
    .gw-hero {
        min-height: 75vh;
    }

    .gw-hero__content {
        padding-bottom: 60px;
    }

    .gw-hero__title {
        font-size: clamp(32px, 8vw, 48px);
    }

    /* CTA banner stacks vertically */
    .gw-cta__inner {
        flex-direction: column;
        text-align: center;
    }

    /* Archive grid — smaller minimum card width */
    .gw-archive__grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 16px;
    }

    /* Footer stacks vertically */
    .gw-footer__top {
        flex-direction: column;
        gap: 36px;
    }

    .gw-footer__links {
        flex-direction: column;
        gap: 24px;
    }

    .gw-footer__bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    /* Player section accounts for shorter mobile header */
    .gw-player {
        padding-top: 64px;
    }

    /* Archive header accounts for shorter mobile header */
    .gw-archive-header {
        padding-top: calc(64px + 32px);
    }

    /* IHC locker — less padding on mobile */
    .ihc-locker-wrap {
        padding: 24px !important;
    }
}

/* --- Small phones (480px and below) --- */
@media (max-width: 480px) {
    .gw-card {
        width: 180px;
    }

    .gw-hero__actions {
        flex-direction: column;
        gap: 12px;
    }

    .gw-hero__actions .gw-btn {
        width: 100%;
    }
}
