/* Extracted from classes/index.html — 2026-03-05 */

/* ========================================
           CLASSES INDEX PAGE
           ======================================== */

        /* Page-level overrides */
        body {
            background: #0f1318;
            color: #c9d1d9;
        }

        .classes-page {
            padding: 0 20px 60px;
        }

        /* ---- Hero Section ---- */
        .classes-hero {
            position: relative;
            text-align: center;
            padding: 90px 20px 70px;
            margin-bottom: 50px;
            overflow: hidden;
            background: url('../images/classes/Banners/banner-classes-index.webp') center/cover no-repeat;
            border-bottom: 3px solid #764ba2;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        }

        .classes-hero::before {
            content: '';
            position: absolute;
            inset: 0;
            /* Dark arcane overlay so the title/lead read on the banner in both themes */
            background: linear-gradient(
                to bottom,
                rgba(18, 16, 38, 0.62) 0%,
                rgba(30, 24, 60, 0.45) 50%,
                rgba(18, 16, 38, 0.78) 100%
            );
            pointer-events: none;
        }

        .classes-hero h1 {
            font-family: 'Cinzel', serif;
            font-size: 2.8rem;
            font-weight: 700;
            color: #ffffff;
            text-shadow: 0 0 4px rgba(0,0,0,0.95),
                         2px 2px 8px rgba(0,0,0,0.9),
                         0 0 24px rgba(0,0,0,0.75);
            margin-bottom: .5rem;
            position: relative;
        }

        .classes-hero .lead {
            font-family: 'Nunito Sans', sans-serif;
            font-size: 1.15rem;
            color: #f0e6d2;
            text-shadow: 0 0 4px rgba(0,0,0,0.95),
                         1px 1px 6px rgba(0,0,0,0.9),
                         0 0 18px rgba(0,0,0,0.7);
            max-width: 560px;
            margin: 0 auto 2rem;
            position: relative;
        }

        /* ---- Intro Panel ---- */
        .intro-panel {
            position: relative;
            max-width: 860px;
            margin: 0 auto 50px;
            background: linear-gradient(135deg, rgba(102, 126, 234, .12), rgba(118, 75, 162, .12));
            border: 1px solid rgba(139, 92, 246, .25);
            border-radius: 12px;
            padding: 36px 40px;
            text-align: center;
        }

        .intro-panel h2 {
            font-family: 'Cinzel', serif;
            font-size: 1.6rem;
            color: #c4b5fd;
            margin-bottom: .75rem;
        }

        .intro-panel p {
            font-family: 'Nunito Sans', sans-serif;
            font-size: 1.05rem;
            line-height: 1.7;
            color: #a0aec0;
            max-width: 750px;
            margin: 0 auto;
        }

        /* ---- Section Dividers ---- */
        .divider {
            display: flex;
            align-items: center;
            gap: 20px;
            margin: 50px auto;
            max-width: 900px;
        }

        .divider::before,
        .divider::after {
            content: '';
            flex: 1;
            height: 1px;
            background: linear-gradient(90deg, transparent, rgba(139, 92, 246, .35), transparent);
        }

        .divider-icon {
            color: #7c3aed;
            font-size: 1.1rem;
            opacity: .7;
        }

        .divider-img {
            max-width: 900px;
            margin: 40px auto;
            display: block;
            width: 100%;
            height: 50px;
            object-fit: cover;
            opacity: .55;
            border-radius: 4px;
            mask-image: linear-gradient(90deg, transparent, black 15%, black 85%, transparent);
            -webkit-mask-image: linear-gradient(90deg, transparent, black 15%, black 85%, transparent);
        }

        /* ---- Category Headers ---- */
        .category-header {
            border-left: 4px solid #7c3aed;
            padding: 20px 24px;
            margin-bottom: 30px;
            background: rgba(124, 58, 237, .06);
            border-radius: 0 8px 8px 0;
        }

        .category-header.tech {
            border-left-color: #3b82f6;
            background: rgba(59, 130, 246, .06);
        }

        .category-header.warning {
            border-left-color: #f59e0b;
            background: rgba(245, 158, 11, .06);
        }

        .category-header.guide {
            border-left-color: #10b981;
            background: rgba(16, 185, 129, .06);
        }

        .category-header h2 {
            font-family: 'Cinzel', serif;
            font-size: 1.5rem;
            color: #e2e8f0;
            margin-bottom: .35rem;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .category-header h2 i {
            font-size: 1.2rem;
            color: #a78bfa;
        }

        .category-header.tech h2 i { color: #60a5fa; }
        .category-header.warning h2 i { color: #fbbf24; }
        .category-header.guide h2 i { color: #34d399; }

        .category-header p {
            margin: 0;
            color: #8b949e;
            line-height: 1.6;
            font-size: .95rem;
        }

        /* ---- Class Card Grid ---- */
        .classes-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
            gap: 28px;
            margin-bottom: 50px;
        }

        .classes-grid.compact {
            grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
            gap: 20px;
        }

        /* ---- Class Card ---- */
        .class-card {
            background: #161b22;
            border: 1px solid #30363d;
            border-radius: 10px;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
        }

        .class-card:hover {
            transform: translateY(-4px);
            border-color: rgba(139, 92, 246, .45);
            box-shadow: 0 8px 30px rgba(0, 0, 0, .4), 0 0 20px rgba(139, 92, 246, .08);
        }

        .class-card.homebrew {
            border-color: rgba(139, 92, 246, .35);
        }

        .class-card.homebrew::before {
            content: '';
            display: block;
            height: 3px;
            background: linear-gradient(90deg, #7c3aed, #a78bfa, #7c3aed);
        }

        /* Card Image */
        .class-card-img {
            width: 100%;
            height: 220px;
            object-fit: cover;
            object-position: center top;
            background: linear-gradient(135deg, #1e1e2e, #2d1b4e);
            display: block;
        }

        .class-card-img.placeholder {
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 3rem;
            color: rgba(139, 92, 246, .3);
        }

        /* Card Body */
        .class-card-body {
            padding: 22px 24px;
            flex: 1;
            display: flex;
            flex-direction: column;
        }

        .class-card-title {
            font-family: 'Cinzel', serif;
            font-size: 1.25rem;
            font-weight: 600;
            color: #e2e8f0;
            margin-bottom: 6px;
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 8px;
        }

        .class-card-stats {
            font-family: 'Nunito Sans', sans-serif;
            font-size: .85rem;
            color: #8b949e;
            margin-bottom: 12px;
        }

        .class-card-stats strong {
            color: #a0aec0;
        }

        .class-card-desc {
            font-size: .93rem;
            line-height: 1.65;
            color: #8b949e;
            flex: 1;
        }

        .class-card-subclasses {
            font-size: .82rem;
            color: #6e7681;
            margin-top: 12px;
            line-height: 1.5;
        }

        .class-card-subclasses span {
            color: #8b949e;
        }

        .class-card-note {
            font-style: italic;
            margin-top: 10px;
            font-size: .85rem;
            color: #f59e0b;
        }

        .class-card-note.resilient {
            color: #34d399;
        }

        .class-card-note.immune {
            color: #60a5fa;
        }

        /* Card Footer */
        .class-card-footer {
            padding: 0 24px 22px;
        }

        .btn-class {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: linear-gradient(135deg, #7c3aed, #6d28d9);
            color: #fff;
            padding: 9px 20px;
            border-radius: 6px;
            font-family: 'Nunito Sans', sans-serif;
            font-size: .88rem;
            font-weight: 600;
            text-decoration: none;
            border: none;
            cursor: pointer;
            transition: all .2s ease;
        }

        .btn-class:hover {
            background: linear-gradient(135deg, #8b5cf6, #7c3aed);
            transform: translateY(-1px);
            box-shadow: 0 4px 14px rgba(124, 58, 237, .35);
        }

        .btn-class.disabled {
            background: #30363d;
            color: #6e7681;
            cursor: not-allowed;
            box-shadow: none;
        }

        .btn-class.disabled:hover {
            transform: none;
        }

        /* ---- Badges ---- */
        .badge {
            display: inline-block;
            font-family: 'Nunito Sans', sans-serif;
            font-size: .7rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: .04em;
            padding: 3px 10px;
            border-radius: 20px;
            line-height: 1.4;
        }

        .badge-magic {
            background: rgba(139, 92, 246, .2);
            color: #c4b5fd;
            border: 1px solid rgba(139, 92, 246, .3);
        }

        .badge-physical {
            background: rgba(16, 185, 129, .15);
            color: #6ee7b7;
            border: 1px solid rgba(16, 185, 129, .25);
        }

        .badge-resilient {
            background: rgba(59, 130, 246, .15);
            color: #93c5fd;
            border: 1px solid rgba(59, 130, 246, .25);
        }

        .badge-affected {
            background: rgba(245, 158, 11, .15);
            color: #fcd34d;
            border: 1px solid rgba(245, 158, 11, .25);
        }

        .badge-adaptive {
            background: rgba(6, 182, 212, .15);
            color: #67e8f9;
            border: 1px solid rgba(6, 182, 212, .25);
        }

        /* ---- Legend Panel ---- */
        .legend-panel {
            background: #161b22;
            border: 1px solid #30363d;
            border-radius: 10px;
            padding: 24px 28px;
            margin-bottom: 40px;
        }

        .legend-panel h3 {
            font-family: 'Cinzel', serif;
            font-size: 1.1rem;
            color: #e2e8f0;
            margin-bottom: 14px;
        }

        .legend-items {
            display: flex;
            flex-wrap: wrap;
            gap: 16px 28px;
        }

        .legend-item {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: .88rem;
            color: #8b949e;
        }

        /* ---- Unavailable Classes ---- */
        .unavailable-panel {
            background: rgba(245, 158, 11, .06);
            border: 1px solid rgba(245, 158, 11, .2);
            border-radius: 10px;
            padding: 28px;
            margin-bottom: 40px;
        }

        .unavailable-panel h3 {
            font-family: 'Cinzel', serif;
            font-size: 1.1rem;
            color: #fbbf24;
            margin-bottom: 16px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .unavailable-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
            gap: 20px;
        }

        .unavailable-item h4 {
            font-family: 'Cinzel', serif;
            font-size: 1rem;
            color: #d4a017;
            margin-bottom: 4px;
        }

        .unavailable-item p {
            margin: 0;
            font-size: .9rem;
            color: #8b949e;
            line-height: 1.55;
        }

        /* ---- Path Guide ---- */
        .path-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
            gap: 18px;
            margin-top: 18px;
        }

        .path-card {
            background: rgba(16, 185, 129, .05);
            border: 1px solid rgba(16, 185, 129, .15);
            border-radius: 8px;
            padding: 18px 20px;
            transition: border-color .2s ease;
        }

        .path-card:hover {
            border-color: rgba(16, 185, 129, .35);
        }

        .path-card h4 {
            font-family: 'Cinzel', serif;
            font-size: .95rem;
            color: #6ee7b7;
            margin-bottom: 6px;
        }

        .path-card p {
            margin: 0;
            font-size: .88rem;
            color: #8b949e;
            line-height: 1.55;
        }

        /* ---- CTA ---- */
        .cta-section {
            text-align: center;
            padding: 50px 20px 20px;
        }

        .btn-cta {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            background: linear-gradient(135deg, #7c3aed, #a855f7);
            color: #fff;
            font-family: 'Cinzel', serif;
            font-size: 1.1rem;
            font-weight: 600;
            padding: 16px 42px;
            border-radius: 8px;
            text-decoration: none;
            border: none;
            cursor: pointer;
            transition: all .25s ease;
            box-shadow: 0 4px 20px rgba(124, 58, 237, .3);
        }

        .btn-cta:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 30px rgba(124, 58, 237, .45);
        }

        /* ---- Loading ---- */
        .loading-spinner {
            text-align: center;
            padding: 50px 20px;
            color: #8b949e;
        }

        .loading-spinner i {
            font-size: 2.4rem;
            color: #7c3aed;
            animation: spin .9s linear infinite;
        }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        /* ---- Footer Override ---- */
        .main-footer {
            background: #0b0e13;
            border-top: 1px solid #1c2128;
        }

        .footer-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 40px;
            padding-bottom: 30px;
        }

        .footer-heading {
            font-family: 'Cinzel', serif;
            font-size: 1rem;
            color: #a78bfa;
            margin-bottom: 14px;
        }

        .footer-text {
            color: #6e7681;
            font-size: .9rem;
            line-height: 1.65;
        }

        .footer-links {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .footer-links li {
            margin-bottom: 8px;
        }

        .footer-links a {
            color: #6e7681;
            text-decoration: none;
            font-size: .9rem;
            transition: color .2s;
        }

        .footer-links a:hover {
            color: #a78bfa;
        }

        .copyright {
            text-align: center;
            padding-top: 24px;
            border-top: 1px solid #1c2128;
            color: #484f58;
            font-size: .85rem;
        }

        /* ---- Responsive ---- */
        @media (max-width: 768px) {
            .classes-hero h1 { font-size: 2rem; }
            .classes-hero .lead { font-size: 1rem; }
            .intro-panel { padding: 24px 20px; }
            .intro-panel h2 { font-size: 1.3rem; }
            .classes-grid { grid-template-columns: 1fr; gap: 20px; }
            .classes-grid.compact { grid-template-columns: 1fr; }
            .legend-items { flex-direction: column; gap: 10px; }
            .unavailable-grid { grid-template-columns: 1fr; }
            .path-grid { grid-template-columns: 1fr; }
            .category-header h2 { font-size: 1.2rem; }
        }

        @media (min-width: 769px) and (max-width: 1024px) {
            .classes-grid { grid-template-columns: repeat(2, 1fr); }
            .classes-grid.compact { grid-template-columns: repeat(2, 1fr); }
        }
