/*
Theme Name: WWE Hybrid Theme PRO
Theme URI: https://example.com/
Author: Muhammad Imran
Author URI: https://example.com/
Description: Custom WWE episodes theme with hero + grid layout, split layout, and modern card system.
Version: 1.0
Text Domain: wwe-hybrid-theme-pro
*/

/* =====================================================
   GLOBAL RESET + BASE
===================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    background: #0A0A0A;
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.page-wrapper {
    width: 100%;
    min-height: 100%;
    background: #0A0A0A;
}

/* =====================================================
   HEADER
===================================================== */
.header {
    background: #000;
    border-bottom: 3px solid #E50914;
    padding: 1.25rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.5rem;
    color: #fff;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-menu-list {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-menu-list a {
    font-weight: 500;
    font-size: 0.95rem;
    transition: color .3s;
}

.nav-menu-list a:hover,
.nav-menu-list .current-menu-item > a {
    color: #E50914;
}

/* =====================================================
   LAYOUT 1 — HERO SECTION (Hybrid WWE Layout)
===================================================== */
.hero-section {
    width: 100%;
    background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 5rem 2rem;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    background: #E50914;
    padding: .5rem 1.25rem;
    border-radius: 6px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: .85rem;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 3.5rem;
    text-transform: uppercase;
    letter-spacing: -1px;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #ccc;
    margin-bottom: 1.5rem;
}

.hero-description {
    max-width: 800px;
    margin: 0 auto 2.5rem;
    color: #999;
    font-size: 1.1rem;
    line-height: 1.7;
}

.hero-button {
    background: linear-gradient(135deg, #E50914, #C00812);
    padding: 1rem 2.5rem;
    border-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #fff;
    box-shadow: 0 6px 20px rgba(229,9,20,.4);
    transition: .3s;
}

.hero-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(229,9,20,.6);
}

/* =====================================================
   LAYOUT 1 — EPISODE GRID
===================================================== */
.episodes-section {
    width: 100%;
    padding: 5rem 2rem;
}

.episodes-container {
    max-width: 1400px;
    margin: auto;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: .5rem;
}

.section-subtitle {
    color: #999;
    margin-bottom: 2rem;
}

.episodes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.episode-card {
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: .3s;
}

.episode-card:hover {
    transform: translateY(-8px);
    border-color: #E50914;
    box-shadow: 0 20px 40px rgba(229, 9, 20, .3);
}

.card-image-link {
    display: block;
}

.card-image {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: .4rem .9rem;
    border-radius: 6px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: .75rem;
}

.badge-raw { background: #E50914; color: #fff; }
.badge-smackdown { background: #0065FF; color: #fff; }
.badge-nxt { background: #FFD700; color: #000; }
.badge-ppv { background: #7D00FF; color: #fff; }

.card-content {
    padding: 1rem;
}

.card-title {
    font-family: 'Montserrat';
    font-size: .9rem;
    font-weight: 600;
    margin-bottom: .4rem;
}

.card-date {
    font-size: .8rem;
    color: #999;
}

/* =====================================================
   LAYOUT 2 — SPLIT HERO TEMPLATE
===================================================== */
.split-hero-container {
    display: flex;
    width: 100%;
    height: 600px;
    position: relative;
}

.hero-half {
    width: 50%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,.3), rgba(0,0,0,.85));
}

.vertical-divider {
    position: absolute;
    left: 50%;
    top: 0;
    width: 4px;
    height: 100%;
    transform: translateX(-50%);
    background: linear-gradient(to bottom, transparent, #fff 20%, #fff 80%, transparent);
    box-shadow: 0 0 25px rgba(255,255,255,.6);
}

.split-hero-content {
    position: relative;
    padding: 50px 40px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    z-index: 2;
}

.badge.red { background: #e31837; }
.badge.blue { background: #0066cc; }

/* =====================================================
   LAYOUT 2 — POSTS LIST
===================================================== */
.posts-container {
    display: flex;
    width: 100%;
    background: #0a0a0a;
}

.posts-section {
    width: 50%;
    padding: 50px 40px;
}

.posts-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.post-item {
    background: #1a1a1a;
    border-radius: 6px;
    display: flex;
    border-left: 3px solid;
    transition: .3s;
}

.red-accent { border-left-color: #e31837; }
.blue-accent { border-left-color: #0066cc; }

.post-item:hover {
    transform: translateX(8px);
    border-left-width: 5px;
}

.post-content {
    padding: 20px 25px;
}

.post-meta {
    font-size: 11px;
    color: #666;
    margin-bottom: 8px;
}

.post-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.post-description {
    font-size: 13px;
    color: #999;
}

/* =====================================================
   LAYOUT 3 — MODERN NETFLIX-STYLE CARD DESIGN
===================================================== */
.modern-card {
    position: relative;
    background: #0e0e0e;
    border-radius: 14px;
    overflow: hidden;
    transition: .25s;
}

.modern-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0,0,0,.35);
}

.card-thumb-wrapper {
    position: relative;
}

.card-thumb {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: .35s transform;
}

.modern-card:hover .card-thumb {
    transform: scale(1.08);
}

.modern-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    backdrop-filter: blur(4px);
}

.card-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 14px;
    background: linear-gradient(180deg, transparent, rgba(0,0,0,.85));
}

.modern-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.modern-date {
    font-size: 13px;
    color: #ddd;
    opacity: .75;
}

/* =====================================================
   SINGLE PAGE
===================================================== */
.single-episode-main {
    max-width: 900px;
    margin: 3rem auto;
    padding: 0 1.5rem 3rem;
}

.single-episode-article {
    background: #111827;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 15px 40px rgba(0,0,0,.45);
    border: 1px solid rgba(148,163,184,.25);
}

.single-episode-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.single-episode-thumb {
    margin: 1.5rem 0;
    border-radius: 12px;
    overflow: hidden;
}

.single-episode-content {
    font-size: .95rem;
    line-height: 1.7;
    color: #e5e7eb;
}

.episode-links-section {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(148,163,184,.35);
}

.episode-link-block {
    margin-bottom: 1.5rem;
}

.episode-link-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: .5rem;
}

.episode-source-btn {
    padding: .35rem .75rem;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 600;
    border: 1px solid rgba(229,9,20,.7);
    background: rgba(229,9,20,.1);
    color: #fff;
}

.episode-source-btn:hover {
    background: rgba(229,9,20,.25);
}

/* =====================================================
   MOBILE CSS  (≤ 768px)
===================================================== */
@media (max-width: 768px) {

    /* ----------------------------
       GLOBAL
    ---------------------------- */
    body {
        font-size: 15px;
        overflow-x: hidden;
    }

    .page-wrapper {
        padding: 0;
        margin: 0;
    }

    .container,
    .site-content {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    /* ----------------------------
       HEADER
    ---------------------------- */
    .header {
        padding: 1rem 1.2rem;
        text-align: center;
    }

    .header-content {
        flex-direction: row;
        justify-content: space-between;
    }

    .nav-menu-list {
        display: none; /* hidden menu on mobile */
    }

    .mobile-menu-button {
        display: block;
        font-size: 1.6rem;
        color: #fff;
    }

    /* ----------------------------
       HYBRID HERO (Layout 1)
    ---------------------------- */
    .hero-content {
        padding: 3rem 1.5rem;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-description {
        font-size: 1rem;
        line-height: 1.6;
    }

    /* ----------------------------
       EPISODE GRID (Layout 1)
    ---------------------------- */
    .episodes-section {
        padding: 3rem 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .episodes-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
    }

    .episode-card {
        border-radius: 10px;
    }

    .card-image img,
    .card-thumb {
        height: 160px !important;
        object-fit: cover;
    }

    .modern-badge {
        font-size: 10px !important;
        padding: 4px 8px !important;
    }

    /* ----------------------------
       SPLIT HERO TEMPLATE (Layout 2)
    ---------------------------- */
    .split-hero-container {
        height: auto;
        flex-direction: column;
    }

    .hero-half {
        width: 100% !important;
        height: 350px !important;
    }

    .vertical-divider {
        width: 100% !important;
        height: 4px !important;
        position: absolute;
        top: initial;
        bottom: initial;
        left: 0 !important;
        transform: none !important;
        background: linear-gradient(to right, transparent, #fff 20%, #fff 80%, transparent) !important;
    }

    /* Posts Section Below Hero */
    .posts-container {
        flex-direction: column !important;
    }

    .posts-section {
        width: 100% !important;
        padding: 25px 20px !important;
    }

    .post-item {
        flex-direction: column;
        padding: 15px;
    }

    .post-title {
        font-size: 14px !important;
    }

    .post-description {
        font-size: 12px !important;
    }

    /* ----------------------------
       MODERN CARD LAYOUT (Layout 3)
    ---------------------------- */
    .modern-card {
        border-radius: 10px !important;
    }

    .card-thumb {
        height: 160px !important;
    }

    .modern-title {
        font-size: 14px !important;
    }

    .modern-date {
        font-size: 12px !important;
    }

    /* ----------------------------
       SINGLE EPISODE PAGE
    ---------------------------- */
    .single-episode-main {
        padding: 1rem 1rem 2rem !important;
    }

    .single-episode-article {
        padding: 1.4rem 1rem !important;
    }

    .single-episode-title {
        font-size: 1.45rem !important;
    }

    .single-episode-content {
        font-size: .92rem !important;
    }

    .episode-links-section {
        padding-top: 1.2rem !important;
    }

    .episode-source-btn {
        font-size: .75rem !important;
        padding: .3rem .6rem !important;
    }
}

/* =====================================================
   EXTRA SMALL DEVICES  (≤ 480px)
===================================================== */
@media (max-width: 480px) {

    /* ----------------------------
       GRID
    ---------------------------- */
    .episodes-grid,
    .post-grid,
    .modern-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    .card-thumb,
    .card-image img {
        height: 140px !important;
        object-fit: cover !important;
    }

    /* ----------------------------
       HEADER
    ---------------------------- */
    header,
    footer {
        padding: 10px !important;
        text-align: center !important;
    }

    .site-title {
        font-size: 1.25rem !important;
    }

    /* ----------------------------
       HERO
    ---------------------------- */
    .hero-content {
        padding: 2.2rem 1rem !important;
    }

    .hero-title {
        font-size: 1.65rem !important;
        line-height: 1.2;
    }

    .hero-description {
        font-size: .95rem !important;
    }

    /* ----------------------------
       SPLIT HERO (Layout 2)
    ---------------------------- */
    .hero-half {
        height: 250px !important;
    }

    .vertical-divider {
        height: 3px !important;
    }

    .posts-section {
        padding: 20px 15px !important;
    }

    .post-title {
        font-size: 13px !important;
    }

    .post-description {
        font-size: 11px !important;
    }

    /* ----------------------------
       MODERN CARD (Layout 3)
    ---------------------------- */
    .modern-title {
        font-size: 13px !important;
    }

    .modern-date {
        font-size: 11px !important;
    }

    .modern-badge {
        font-size: 9px !important;
        padding: 3px 6px !important;
    }

    /* ----------------------------
       SINGLE PAGE
    ---------------------------- */
    .single-episode-main {
        padding: 10px !important;
    }

    .single-episode-title {
        font-size: 1.25rem !important;
    }

    .episode-source-btn {
        font-size: .7rem !important;
        padding: .25rem .5rem !important;
    }
}

/* =====================================================
   FINAL GLOBAL FIXES & PERFORMANCE CLEANUP
===================================================== */

/* Prevent badge wrapping & shifting */
.badge,
.modern-badge,
.card-badge {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}

/* Uniform card body spacing */
.wwe-card-body {
    display: flex;
    flex-direction: column;
    padding: 15px;
    min-height: 120px;
}

/* Meta row fix on all layouts */
.wwe-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
    min-height: 28px;
}

/* Remove any leftover duplicated padding conflicts */
.card-content,
.post-content,
.single-episode-content {
    padding-bottom: 1rem;
}

/* Stable image rendering */
img {
    image-rendering: -webkit-optimize-contrast;
}

/* Prevent viewport jump issues */
@view-transition {
    navigation: auto;
}

/* End of CSS File */

