/* ==============================================
   GUIDES CSS - Guide Page Enhancements
   Particles, formula boxes, tip boxes, zone diagrams, CTAs
   ============================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

/* ============================================
   GUIDE HERO PARTICLE OVERLAY
   ============================================ */

.guide-hero-wrapper {
    position: relative;
}

.guide-particles-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 2;
    border-radius: 16px;
}

.gp {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.22) 0%, transparent 70%);
    animation: gp-float 9s ease-in-out infinite;
}

.gp:nth-child(1)  { width: 80px;  height: 80px;  top: 12%; left: 7%;   animation-delay: 0s;    animation-duration: 7s;  }
.gp:nth-child(2)  { width: 50px;  height: 50px;  top: 68%; left: 14%;  animation-delay: 1.5s;  animation-duration: 9s;  }
.gp:nth-child(3)  { width: 110px; height: 110px; top: 25%; left: 84%;  animation-delay: 0.7s;  animation-duration: 11s; }
.gp:nth-child(4)  { width: 38px;  height: 38px;  top: 80%; left: 76%;  animation-delay: 3s;    animation-duration: 8s;  }
.gp:nth-child(5)  { width: 60px;  height: 60px;  top: 48%; left: 50%;  animation-delay: 2s;    animation-duration: 10s; }
.gp:nth-child(6)  { width: 32px;  height: 32px;  top: 18%; left: 60%;  animation-delay: 4s;    animation-duration: 7s;  }
.gp:nth-child(7)  { width: 85px;  height: 85px;  top: 62%; left: 90%;  animation-delay: 0.5s;  animation-duration: 12s; }
.gp:nth-child(8)  { width: 44px;  height: 44px;  top: 8%;  left: 38%;  animation-delay: 2.5s;  animation-duration: 9s;  }

@keyframes gp-float {
    0%, 100% { transform: translateY(0) scale(1);     opacity: 0.18; }
    50%       { transform: translateY(-18px) scale(1.08); opacity: 0.45; }
}

/* ============================================
   ENHANCED FORMULA BOX
   ============================================ */

.formula-box {
    background: linear-gradient(135deg, rgba(12, 18, 32, 0.98) 0%, rgba(18, 10, 3, 0.98) 100%);
    border: 1px solid rgba(255, 215, 0, 0.28);
    border-left: 4px solid #ffd700;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin: 1rem 0 1.5rem 0;
    position: relative;
    overflow: hidden;
}

.formula-box::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100%;
    background: linear-gradient(to left, rgba(255, 215, 0, 0.03), transparent);
    pointer-events: none;
}

.formula-box code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.05rem;
    color: #ffd700;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* ============================================
   ENHANCED TIP BOX
   ============================================ */

.tip-box {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.07) 0%, rgba(37, 99, 235, 0.04) 100%);
    border: 1px solid rgba(59, 130, 246, 0.22);
    border-left: 4px solid #3b82f6;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #94a3b8;
    line-height: 1.65;
}

.tip-box .mud-icon-root { color: #60a5fa; flex-shrink: 0; margin-top: 2px; }
.tip-box strong { color: #93c5fd; }
.tip-box ul { margin: 0.5rem 0 0 0; padding-left: 1.25rem; }

.geo-answer {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.06) 0%, rgba(245, 158, 11, 0.03) 100%);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-left: 4px solid rgba(251, 191, 36, 0.7);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin: 0 0 1.5rem 0;
    font-size: 0.95rem;
    color: #cbd5e1;
    line-height: 1.7;
}

.geo-answer p { margin: 0; color: #cbd5e1; }
.geo-answer strong { color: #fde68a; }

/* ============================================
   SECTION DIVIDERS
   ============================================ */

.class-section + .class-section {
    padding-top: 2.5rem;
}

.class-section + .class-section::before {
    content: '';
    display: block;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 215, 0, 0.12), transparent);
    margin-bottom: 2.5rem;
}

/* ============================================
   ENHANCED COMPARISON TABLE
   ============================================ */

.class-comparison-table {
    overflow-x: auto;
    margin: 1rem 0 1.5rem 0;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.class-comparison-table table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
}

.class-comparison-table th {
    background: rgba(255, 215, 0, 0.07);
    color: #ffd700;
    font-family: 'Cinzel', serif;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.85rem 1.25rem;
    text-align: left;
    letter-spacing: 0.04em;
    border-bottom: 1px solid rgba(255, 215, 0, 0.18);
}

.class-comparison-table td {
    padding: 0.7rem 1.25rem;
    color: #94a3b8;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    vertical-align: top;
}

.class-comparison-table tr:last-child td { border-bottom: none; }
.class-comparison-table tr:hover td { background: rgba(255, 215, 0, 0.025); color: #cbd5e1; }
.class-comparison-table td:first-child { color: #e2e8f0; font-weight: 600; }

/* ============================================
   RELATED GUIDES CARDS
   ============================================ */

.related-classes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
    margin-top: 1.5rem;
}

.related-class-card {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    color: inherit;
}

.related-class-card:hover {
    background: rgba(255, 215, 0, 0.045);
    border-color: rgba(255, 215, 0, 0.22);
    transform: translateY(-3px);
}

.related-class-card .mud-icon-root { color: #ffd700; margin-bottom: 0.75rem; }
.related-class-card h3 { font-family: 'Cinzel', serif; font-size: 0.95rem; color: #e2e8f0; margin: 0 0 0.5rem 0; }
.related-class-card p  { font-family: 'Inter', sans-serif; font-size: 0.82rem; color: #64748b; margin: 0; line-height: 1.4; }

@media (max-width: 680px) { .related-classes { grid-template-columns: 1fr; } }

/* ============================================
   GUIDE CTA SECTION
   ============================================ */

.class-detail-page .cta-section {
    background: linear-gradient(135deg, rgba(12, 18, 32, 0.98) 0%, rgba(18, 10, 3, 0.98) 100%);
    border: 1px solid rgba(255, 215, 0, 0.18);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    margin: 2rem 0;
}

.class-detail-page .cta-section h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.75rem;
    color: #ffd700;
    margin: 0 0 0.75rem 0;
}

.class-detail-page .cta-section p {
    font-family: 'Inter', sans-serif;
    color: #94a3b8;
    margin: 0 0 1.5rem 0;
    font-size: 1rem;
    line-height: 1.6;
}

.class-detail-page .cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.class-detail-page .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    border-radius: 8px;
    font-family: 'Cinzel', serif;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.04em;
    transition: all 0.3s ease;
}

.class-detail-page .btn-primary {
    background: linear-gradient(135deg, #ffd700, #daa520);
    color: #0a0f19;
    border: none;
}

.class-detail-page .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(255, 215, 0, 0.28);
}

.class-detail-page .btn-secondary {
    background: rgba(255, 215, 0, 0.07);
    color: #ffd700;
    border: 1px solid rgba(255, 215, 0, 0.32);
}

.class-detail-page .btn-secondary:hover {
    background: rgba(255, 215, 0, 0.13);
    transform: translateY(-2px);
}

/* ============================================
   GUIDE ZONE DIAGRAM (inside guides)
   ============================================ */

.guide-zone-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.guide-zone {
    border-radius: 10px;
    padding: 1.25rem 1rem;
    text-align: center;
    border: 1px solid;
}

.guide-zone-vanguard  { background: rgba(239, 68, 68, 0.07);  border-color: rgba(239, 68, 68, 0.28); }
.guide-zone-midfield  { background: rgba(245, 158, 11, 0.07); border-color: rgba(245, 158, 11, 0.28); }
.guide-zone-rear      { background: rgba(59, 130, 246, 0.07); border-color: rgba(59, 130, 246, 0.28); }

.guide-zone-name {
    font-family: 'Cinzel', serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    display: block;
}

.guide-zone-vanguard .guide-zone-name  { color: #ef4444; }
.guide-zone-midfield .guide-zone-name  { color: #f59e0b; }
.guide-zone-rear .guide-zone-name      { color: #60a5fa; }

.guide-zone-classes {
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    color: #94a3b8;
    margin: 0 0 0.4rem 0;
    line-height: 1.4;
}

.guide-zone-desc {
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    color: #475569;
    margin: 0;
    line-height: 1.4;
    font-style: italic;
}

@media (max-width: 600px) { .guide-zone-grid { grid-template-columns: 1fr; } }

/* ============================================
   ARCHETYPE LABEL PILLS
   ============================================ */

.archetype-pills-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.archetype-label-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    border: 1px solid;
}

.pill-brute      { background: rgba(239, 68, 68, 0.1);   border-color: rgba(239, 68, 68, 0.35);   color: #f87171; }
.pill-caster     { background: rgba(139, 92, 246, 0.1);  border-color: rgba(139, 92, 246, 0.35);  color: #a78bfa; }
.pill-skirmisher { background: rgba(245, 158, 11, 0.1);  border-color: rgba(245, 158, 11, 0.35);  color: #fbbf24; }
.pill-tank       { background: rgba(59, 130, 246, 0.1);  border-color: rgba(59, 130, 246, 0.35);  color: #60a5fa; }
.pill-support    { background: rgba(34, 197, 94, 0.1);   border-color: rgba(34, 197, 94, 0.35);   color: #4ade80; }

/* ============================================
   ARCHETYPE TABLE
   ============================================ */

.archetype-table-wrapper {
    overflow-x: auto;
    margin: 1rem 0 1.5rem 0;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.archetype-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
}

.archetype-table th {
    background: rgba(255, 215, 0, 0.07);
    color: #ffd700;
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.8rem 1.1rem;
    text-align: left;
    letter-spacing: 0.04em;
    border-bottom: 1px solid rgba(255, 215, 0, 0.18);
}

.archetype-table td {
    padding: 0.7rem 1.1rem;
    color: #94a3b8;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    vertical-align: top;
}

.archetype-table tr:last-child td { border-bottom: none; }
.archetype-table tr:hover td { background: rgba(255, 215, 0, 0.025); }
.archetype-table td:first-child { font-weight: 700; }

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .guide-hero-wrapper img {
        height: 200px;
        object-fit: cover;
    }

    .formula-box {
        padding: 0.85rem 1rem;
    }

    .formula-box code {
        font-size: 0.92rem;
    }

    .tip-box {
        padding: 0.85rem 1rem;
        font-size: 0.85rem;
    }

    .class-detail-page .cta-section {
        padding: 2rem 1.25rem;
    }

    .class-detail-page .cta-section h2 {
        font-size: 1.35rem;
    }

    .class-detail-page .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .class-detail-page .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .archetype-table th,
    .archetype-table td,
    .class-comparison-table th,
    .class-comparison-table td {
        padding: 0.55rem 0.75rem;
        font-size: 0.82rem;
    }

    .archetype-table th,
    .class-comparison-table th {
        font-size: 0.75rem;
    }

    .guide-zone-grid {
        gap: 0.6rem;
    }

    .archetype-pills-row {
        gap: 0.4rem;
    }
}

@media (max-width: 480px) {
    .guide-hero-wrapper img {
        height: 160px;
        border-radius: 10px;
    }

    .guide-particles-overlay {
        border-radius: 10px;
    }

    .related-classes {
        grid-template-columns: 1fr;
    }

    .archetype-table th:nth-child(n+4),
    .archetype-table td:nth-child(n+4) {
        display: none;
    }

    .class-comparison-table th:nth-child(n+4),
    .class-comparison-table td:nth-child(n+4) {
        display: none;
    }
}
