/* ══════════════════════════════════════
   MODULES PAGE
   Inherits all CSS variables from theme-dark.css / theme-light.css
   ══════════════════════════════════════ */

/* ── Hero ── */
.mods-hero {
    padding: 150px 0 80px;
    position: relative;
    overflow: hidden;
}

.mods-hero::before {
    content: '';
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.mods-hero .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--bdr);
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 0.82rem;
    color: var(--t3);
    margin-bottom: 28px;
}

.mods-hero .hero-badge span {
    color: var(--blue);
    font-weight: 600;
}

.mods-hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    max-width: 750px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--t1) 30%, var(--blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mods-hero-sub {
    font-size: 1.12rem;
    color: var(--t3);
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ── Sections ── */
.mods-section {
    padding: 80px 0;
    position: relative;
    z-index: 1;
}

.mods-alt {
    background: rgba(255, 255, 255, 0.015);
}

.mods-section .section-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--blue);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.mods-section .section-title {
    font-size: 2.1rem;
    font-weight: 800;
    margin-bottom: 14px;
    line-height: 1.2;
    color: var(--t1);
}

.mods-section .section-desc {
    font-size: 1.02rem;
    color: var(--t3);
    max-width: 560px;
    margin-bottom: 48px;
    line-height: 1.7;
}

/* ── Filter Pills ── */
.mods-filter {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 40px;
    justify-content: center;
    flex-wrap: wrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.mods-filter::-webkit-scrollbar {
    display: none;
}

.mods-pill {
    flex-shrink: 0;
    padding: 10px 22px;
    border-radius: 100px;
    font-size: 0.88rem;
    font-weight: 600;
    background: var(--bg-card);
    border: 1px solid var(--bdr);
    color: var(--t3);
    cursor: pointer;
    transition: all 0.25s;
    white-space: nowrap;
}

.mods-pill:hover {
    border-color: var(--bdr-h);
    color: var(--t1);
}

.mods-pill.active {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--blue);
    color: var(--blue);
}

/* ── Module Cards Grid ── */
.mods-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.mods-card {
    background: var(--bg-card);
    border: 1px solid var(--bdr);
    border-radius: var(--card-r);
    padding: 28px;
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.mods-card:hover {
    border-color: var(--bdr-h);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

.mods-card-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.mods-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--t1);
    margin-bottom: 8px;
}

.mods-card p {
    font-size: 0.88rem;
    color: var(--t3);
    line-height: 1.65;
    flex: 1;
    margin-bottom: 14px;
}

/* ── Plan Tag Badges ── */
.mods-plan-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}


/* ── CTA ── */
.mods-cta {
    text-align: center;
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

.mods-cta h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--t1);
    margin-bottom: 16px;
}

.mods-cta-sub {
    font-size: 1.05rem;
    color: var(--t3);
    max-width: 500px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.mods-cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.mods-cta-buttons .btn-outline {
    background: transparent;
    color: var(--t1);
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    border: 1px solid var(--bdr);
    transition: all 0.25s;
}

.mods-cta-buttons .btn-outline:hover {
    border-color: var(--bdr-h);
    background: var(--bg-card);
    text-decoration: none;
    color: var(--t1);
}

/* ══════════════════════════════════════
   RESPONSIVE — Tablet
   ══════════════════════════════════════ */
@media (max-width: 1024px) {
    .mods-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ══════════════════════════════════════
   RESPONSIVE — Mobile
   ══════════════════════════════════════ */
@media (max-width: 768px) {
    .mods-hero {
        padding: 130px 0 60px;
    }

    .mods-hero h1 {
        font-size: 2.2rem;
    }

    .mods-section {
        padding: 60px 0;
    }

    .mods-section .section-title {
        font-size: 1.7rem;
    }

    .mods-grid {
        grid-template-columns: 1fr;
    }

    .mods-cta h2 {
        font-size: 1.8rem;
    }

    .mods-cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .mods-cta-buttons a {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
}

/* ══════════════════════════════════════
   RESPONSIVE — Small phone
   ══════════════════════════════════════ */
@media (max-width: 480px) {
    .mods-hero h1 {
        font-size: 1.9rem;
    }

    .mods-hero-sub {
        font-size: 1rem;
    }

    .mods-card {
        padding: 22px;
    }

    .mods-cta {
        padding: 70px 0;
    }
}

/* ══════════════════════════════════════
   LIGHT THEME OVERRIDES
   ══════════════════════════════════════ */
body.light .mods-hero::before {
    background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
}

body.light .mods-hero h1 {
    background: linear-gradient(135deg, #0f172a 30%, var(--blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.light .mods-alt {
    background: rgba(241, 245, 249, 0.5);
}

body.light .mods-card {
    background: rgba(255, 255, 255, 0.85);
    border-color: #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

body.light .mods-card:hover {
    background: #fff;
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

body.light .mods-pill {
    background: rgba(255, 255, 255, 0.85);
    border-color: #e2e8f0;
}

body.light .mods-pill:hover {
    border-color: rgba(59, 130, 246, 0.3);
}

body.light .mods-pill.active {
    background: rgba(59, 130, 246, 0.06);
    border-color: var(--blue);
}
