/* ==========================================================================
   Guide.css - นครนิรันดร์ (The Empire of Eternity) Master Dark Fantasy Glassmorphism Wiki
   ========================================================================== */

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

*, *:before, *:after {
    box-sizing: border-box;
}

body {
    background: #070b14;
    background-image: 
        radial-gradient(ellipse 90% 60% at 50% -15%, rgba(30, 58, 138, 0.42), transparent 75%),
        radial-gradient(ellipse 70% 50% at 85% 55%, rgba(180, 83, 9, 0.16), transparent 65%),
        radial-gradient(ellipse 60% 40% at 15% 85%, rgba(16, 185, 129, 0.12), transparent 65%);
    background-attachment: fixed;
    font-family: 'Kanit', 'Prompt', 'Sarabun', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #e2e8f0;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.guide-container {
    max-width: 1200px;
    width: 95%;
    margin: 25px auto 50px auto;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 16px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.guide-header {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.8) 0%, rgba(15, 23, 42, 0.95) 100%);
    border-bottom: 2px solid #f59e0b;
    color: #ffffff;
    padding: 35px 35px 30px 35px;
    position: relative;
}

.guide-header h1 {
    font-size: 28px;
    margin: 0 0 10px 0;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #fef08a 45%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(245, 158, 11, 0.4);
}

.guide-header p {
    font-size: 15px;
    margin: 0;
    color: #cbd5e1;
    line-height: 1.6;
    max-width: 850px;
}

/* Touch-Friendly Horizontal Scrollable Navigation Tabs */
.guide-nav-bar {
    background: rgba(7, 11, 20, 0.95);
    padding: 10px 20px;
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.guide-nav-bar::-webkit-scrollbar {
    height: 4px;
}

.guide-nav-bar::-webkit-scrollbar-thumb {
    background: #3b82f6;
    border-radius: 4px;
}

.guide-nav-bar a {
    flex-shrink: 0;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    padding: 9px 16px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.guide-nav-bar a:hover, .guide-nav-bar a.active {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.3) 0%, rgba(217, 119, 6, 0.5) 100%);
    border-color: #f59e0b;
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.4);
    transform: translateY(-1px);
}

.guide-body {
    padding: 35px 35px;
}

/* AEO / AI Overview Direct Answer Box */
.aeo-direct-answer {
    background: rgba(6, 78, 59, 0.35);
    border: 1px solid rgba(16, 185, 129, 0.45);
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 30px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.aeo-direct-answer h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #34d399;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.aeo-direct-answer p {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: #d1fae5;
}

/* Section Cards & Layout */
.guide-section {
    margin-bottom: 40px;
}

.guide-section-title {
    font-size: 22px;
    font-weight: 700;
    color: #f8fafc;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding-bottom: 12px;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.guide-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 18px;
}

.guide-card {
    background: rgba(30, 41, 59, 0.65);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 22px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.guide-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.2);
    border-color: rgba(245, 158, 11, 0.4);
}

.guide-card h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 700;
    color: #fbbf24;
}

.guide-card p {
    font-size: 13px;
    line-height: 1.6;
    color: #cbd5e1;
    margin-bottom: 12px;
}

/* Responsive Table Cards for Mobile & Desktop */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 18px 0 30px 0;
    background: rgba(15, 23, 42, 0.9);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.guide-table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
    margin: 0;
    font-size: 13px;
}

.guide-table th {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.85) 0%, rgba(15, 23, 42, 0.95) 100%);
    border-bottom: 1px solid rgba(59, 130, 246, 0.35);
    color: #ffffff;
    padding: 14px 16px;
    text-align: left;
    font-weight: 700;
}

.guide-table td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
    line-height: 1.5;
}

.guide-table tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.02);
}

.guide-table tr:hover td {
    background: rgba(56, 189, 248, 0.08);
    color: #ffffff;
}

/* Badges */
.badge-gold { 
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.35)); 
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fbbf24; 
    padding: 3px 10px; 
    border-radius: 20px; 
    font-weight: 700; 
    font-size: 11px; 
}
.badge-blue { 
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(37, 99, 235, 0.35)); 
    border: 1px solid rgba(59, 130, 246, 0.4);
    color: #60a5fa; 
    padding: 3px 10px; 
    border-radius: 20px; 
    font-weight: 700; 
    font-size: 11px; 
}
.badge-green { 
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.35)); 
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #34d399; 
    padding: 3px 10px; 
    border-radius: 20px; 
    font-weight: 700; 
    font-size: 11px; 
}
.badge-purple { 
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(126, 34, 206, 0.35)); 
    border: 1px solid rgba(168, 85, 247, 0.4);
    color: #c084fc; 
    padding: 3px 10px; 
    border-radius: 20px; 
    font-weight: 700; 
    font-size: 11px; 
}
.badge-red { 
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(185, 28, 28, 0.35)); 
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #f87171; 
    padding: 3px 10px; 
    border-radius: 20px; 
    font-weight: 700; 
    font-size: 11px; 
}

/* Callout Box */
.guide-callout {
    background: rgba(120, 53, 15, 0.25);
    border-left: 4px solid #f59e0b;
    padding: 16px 20px;
    border-radius: 8px;
    margin: 22px 0;
    font-size: 14px;
    color: #fde68a;
    line-height: 1.7;
}

/* Breadcrumb */
.guide-breadcrumb {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 20px;
}

.guide-breadcrumb a {
    color: #38bdf8;
    text-decoration: none;
}

.guide-breadcrumb a:hover {
    color: #fbbf24;
    text-decoration: underline;
}

/* Class Showcase Box */
.class-box {
    display: flex;
    flex-wrap: wrap;
    background: rgba(30, 41, 59, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 28px;
    gap: 25px;
    align-items: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}
.class-box-left {
    flex: 0 0 160px;
    text-align: center;
}
.class-box-left img {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 3px solid #f59e0b;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.5);
    background: #0f172a;
    object-fit: cover;
}
.class-box-right {
    flex: 1 1 350px;
}
.class-box-right h2 {
    font-size: 22px;
    font-weight: 700;
    color: #f8fafc;
    margin: 0 0 8px 0;
}
.class-box-right p {
    font-size: 14px;
    color: #cbd5e1;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .guide-header {
        padding: 25px 20px;
    }
    .guide-header h1 {
        font-size: 22px;
    }
    .guide-body {
        padding: 20px 16px;
    }
    .class-box {
        flex-direction: column;
        text-align: center;
    }
}
