/* Extracted CSS from thai.html — kept as-is for template-based loading
   Generated: 2025-08-31
*/
:root {
    /* Light theme palette */
    --bg-dark: #ffffff;
    --bg-light: #f8fafc;
    --text-light: #475569; /* body text */
    --text-dark: #1e293b;  /* headings */
    --primary: #a855f7; /* Purple */
    --secondary: #ec4899; /* Pink */
    --accent: #f59e0b; /* Orange */
    --glass-bg: rgba(255, 255, 255, 0.72);
    --glass-border: 1px solid rgba(15, 23, 42, 0.08);
    --radius: 24px;
    --font-main: 'Poppins', sans-serif;
    --gradient-main: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.7;
    overflow-x: hidden; /* Prevent horizontal scroll from emojis */
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* === NEUE HERO SECTION === */
.hero {
    padding: 120px 0;
    background: #fdfcff;
    text-align: center;
    position: relative;
    overflow: hidden; /* Important for background emojis */
}
/* Background Emojis */
.hero::before, .hero::after {
    content: '';
    position: absolute;
    font-size: 15rem;
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
    user-select: none;
}
.hero::before {
    content: '🌴';
    top: -20px;
    right: -40px;
    transform: rotate(15deg);
}
.hero::after {
    content: '🌿';
    bottom: -50px;
    left: -30px;
    font-size: 12rem;
    transform: rotate(-25deg);
}
/* New Jungle Overlay - to strengthen the image */
.hero-figure::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(248, 250, 252, 0.5), transparent 50%); /* Subtle fade at the bottom */
    pointer-events: none;
    z-index: 1; /* Above image, below text */
}

.hero-content { position: relative; z-index: 2; } /* Ensure content is above emojis */
.hero-content h1 {
    font-size: clamp(3.5rem, 10vw, 7rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: var(--text-dark);
    letter-spacing: -3px;
}
.hero-content .highlight {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero-content .subtitle {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    color: var(--text-light);
    margin: 0 auto 2.5rem auto;
    max-width: 650px;
    font-weight: 600;
}
        
/* === NEUES MISSION BRIEFING === */
.mission-briefing {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    background: var(--glass-bg);
    border: var(--glass-border);
    border-radius: var(--radius);
    padding: 30px;
    backdrop-filter: blur(12px);
    box-shadow: 0 16px 32px -18px rgba(2,6,23,0.15);
    max-width: 1000px;
    margin: 0 auto;
    position: relative; /* For inner emojis */
}
/* Inner Emojis for briefing */
.mission-briefing::before {
    content: '✨';
    position: absolute;
    font-size: 4rem;
    top: 10%;
    left: 5%;
    opacity: 0.1;
    transform: rotate(-10deg);
    z-index: 0;
}
.mission-briefing::after {
    content: '🌈';
    position: absolute;
    font-size: 5rem;
    bottom: 5%;
    right: 8%;
    opacity: 0.12;
    transform: rotate(20deg);
    z-index: 0;
}

.stat-card { text-align: center; position: relative; z-index: 1; }
.stat-card .value { font-size: 2.5rem; font-weight: 800; color: var(--text-dark); line-height: 1.1;}
.stat-card .value span { font-size: 1.5rem; color: var(--primary); }
.stat-card .label { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: #64748b; }

.hero-figure { max-width: 980px; margin: 80px auto 0; position: relative; }
.hero-figure img { width: 100%; border-radius: var(--radius); box-shadow: 0 24px 48px -20px rgba(2,6,23,0.22); position: relative; z-index: 1;}
.hero-caption { color:#64748b; font-size: .9rem; margin-top: 10px; }
        
/* STICKY PROGRESS NAV */
.saga-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(15,23,42,0.06);
    padding: 1rem 0;
    box-shadow: 0 8px 24px -12px rgba(2,6,23,0.18);
}
.saga-nav-content { display: flex; justify-content: space-between; align-items: center; }
.saga-nav-links { display: flex; gap: 1.5rem; list-style: none; }
.saga-nav-links a { color: #64748b; text-decoration: none; font-weight: 700; font-size: 0.9rem; transition: color 0.25s ease; }
.saga-nav-links a.active, .saga-nav-links a:hover { color: var(--primary); }
.progress-bar-container { flex-grow: 1; height: 8px; background: rgba(2,6,23,0.06); border-radius: 8px; overflow: hidden; margin: 0 2rem; }
.progress-bar { width: 0%; height: 100%; background: var(--gradient-main); transition: width 0.2s linear; }

/* COMIC SAGA SECTION */
.comic-saga { padding: 80px 0; }
.comic-chapter { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; margin-bottom: 10rem; opacity: 0; transform: translateY(50px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; position: relative; }
.comic-chapter.is-visible { opacity: 1; transform: translateY(0); }
.comic-chapter:nth-child(even) .comic-image { order: 2; }
.comic-image img { width: 100%; border-radius: var(--radius); box-shadow: 0 24px 48px -20px rgba(2,6,23,0.22); }
.comic-text .chapter-label { display: inline-block; background: var(--gradient-main); color: #fff; padding: 0.4rem 1rem; border-radius: 99px; font-weight: 700; font-size: 0.8rem; margin-bottom: 1.5rem; box-shadow: 0 8px 20px -8px rgba(168,85,247,0.45); }
.comic-text h2 { font-size: 2.5rem; margin-bottom: 1rem; color: var(--text-dark); font-weight: 800; }
.comic-text .lektion { background: var(--bg-light); border: var(--glass-border); border-left: 4px solid var(--accent); padding: 1.5rem; border-radius: 0 var(--radius) var(--radius) 0; font-size: 1.1rem; font-weight: 600; font-style: italic; box-shadow: 0 10px 24px -12px rgba(2,6,23,0.18); }

/* Emojis for comic chapters */
#comic1::before { content: '🪂'; position: absolute; font-size: 6rem; top: 10%; left: 45%; opacity: 0.1; z-index: -1; transform: rotate(-30deg); }
#comic2::before { content: '🌀'; position: absolute; font-size: 8rem; top: 50%; left: 5%; opacity: 0.08; z-index: -1; }
#comic3::before { content: '⏳'; position: absolute; font-size: 7rem; bottom: 10%; right: 10%; opacity: 0.1; z-index: -1; transform: rotate(15deg); }
#comic4::before { content: '🥭'; position: absolute; font-size: 6rem; top: 20%; right: 40%; opacity: 0.12; z-index: -1; }
#comic5::before { content: '👻'; position: absolute; font-size: 7rem; top: 30%; left: 20%; opacity: 0.09; z-index: -1; transform: rotate(-20deg); }


/* === NEUES STYLING FÜR DOSSIER & REVIEWS === */
.dossier-reimagined { padding: 40px 0 100px; }
.dossier-header { text-align: center; margin-bottom: 3rem; }
.dossier-header .dossier-title { font-size: 2.8rem; font-weight: 800; color: var(--text-dark); margin-bottom: 0.5rem; }
.dossier-header .dossier-sub { font-size: 1.1rem; color: var(--text-light); }

.handbook-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; margin-top: 2rem; }
.handbook-card { background: var(--bg-light); border-radius: var(--radius); padding: 2rem; box-shadow: 0 16px 32px -18px rgba(2,6,23,0.1); border: 1px solid rgba(15, 23, 42, 0.05); position: relative;}
.handbook-card h3 { font-size: 1.5rem; color: var(--text-dark); margin-bottom: 1rem; font-weight: 800; }
.handbook-card ul { list-style: none; padding-left: 0; margin: 1rem 0; }
.handbook-card li { padding-left: 1.5rem; position: relative; margin-bottom: 0.5rem; }
.handbook-card li::before { content: '✓'; position: absolute; left: 0; color: var(--primary); font-weight: 700; }
.handbook-icon-bg { width: 50px; height: 50px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background-color: var(--icon-color, var(--primary)); color: #fff; font-size: 1.5rem; margin-bottom: 1rem; box-shadow: 0 8px 20px -8px var(--icon-color, var(--primary)); }

/* Branded interactions for handbook cards + partner links */
.handbook-card {
    transition: transform 0.28s cubic-bezier(.2,.9,.2,1), box-shadow 0.28s ease, border-color 0.28s ease;
}
.handbook-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 48px -20px rgba(2,6,23,0.24);
    border-color: rgba(15, 23, 42, 0.08);
}

/* Partner / Affiliate link styling — consistent, branded CTA */
.partner-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1rem;
    padding: 0.55rem 0.9rem;
    background: var(--gradient-main);
    color: #fff !important;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 800;
    box-shadow: 0 10px 24px -12px rgba(168,85,247,0.35);
    -webkit-font-smoothing: antialiased;
}
.partner-link:hover {
    filter: brightness(1.03);
    transform: translateY(-2px);
}
.partner-link .badge {
    background: rgba(255,255,255,0.12);
    color: #fff;
    font-size: 0.75rem;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.6px;
}
.affiliate-note {
    display: block;
    margin-top: 0.45rem;
    font-size: 0.86rem;
    color: var(--text-light);
}

/* Small responsive tweak to ensure cards stack nicely on narrow viewports */
@media (max-width: 640px) {
    .handbook-card { padding: 1.25rem; }
    .partner-link { width: 100%; justify-content: center; }
}
.handbook-card .terp-chips { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.terp-chip { background-color: rgba(168, 85, 247, 0.1); color: var(--primary); font-weight: 600; font-size: 0.8rem; padding: 0.3rem 0.8rem; border-radius: 99px; }

/* FAQ Styling */
.faq-list { margin-top: 1rem; }
.faq-list details {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 0.75rem;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 4px 12px -8px rgba(2,6,23,0.1);
}
.faq-list details:hover {
    box-shadow: 0 8px 20px -10px rgba(2,6,23,0.15);
    transform: translateY(-2px);
    border-color: var(--primary);
}
.faq-list summary {
    font-weight: 700;
    color: var(--text-dark);
    cursor: pointer;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
    content: '\25B6'; /* Right-pointing triangle */
    margin-left: 10px;
    transition: transform 0.2s ease-in-out;
    color: var(--primary);
}
.faq-list details[open] summary::after {
    transform: rotate(90deg); /* Down-pointing triangle when open */
}
.faq-list details p {
    padding-top: 1rem;
    margin-bottom: 0;
    border-top: 1px solid rgba(15, 23, 42, 0.05);
    margin-top: 1rem;
}
/* FAQ Emojis */
.handbook-card.faq-card::before { content: '❓'; position: absolute; font-size: 5rem; top: 10px; right: 10px; opacity: 0.08; z-index: 0; }


/* === Community Reviews === */
.reviews-lite { background: var(--bg-light); border-radius: var(--radius); padding: 2.5rem; margin-top: 2rem; box-shadow: 0 16px 32px -18px rgba(2,6,23,0.1); position: relative; }
.reviews-lite::before { content: '⭐'; position: absolute; font-size: 8rem; top: 20px; left: 20px; opacity: 0.08; z-index: 0; transform: rotate(-15deg); }
.reviews-lite::after { content: '💬'; position: absolute; font-size: 7rem; bottom: 30px; right: 30px; opacity: 0.07; z-index: 0; transform: rotate(10deg); }


.reviews-header { text-align: center; margin-bottom: 2rem; position: relative; z-index: 1; }
.reviews-header h3 { font-size: 2rem; margin: 0 0 6px 0; font-weight: 800; color: var(--text-dark); }
.reviews-header p { margin: 0; color:#64748b; font-size: 0.95rem; }
        
.reviews-content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
    position: relative; z-index: 1;
}

.overall-summary-card {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 20px -16px rgba(2,6,23,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.overall-number { font-size: 4rem; font-weight: 800; color: var(--primary); line-height:1; }
.overall-stars { color: var(--accent); margin: 8px 0; font-size: 1.8rem; }
.overall-meta { color:#64748b; font-weight:600; font-size: 0.95rem; }

.rating-breakdown-card {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    padding: 2rem;
    box-shadow: 0 10px 20px -16px rgba(2,6,23,0.1);
}
.rating-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 1rem; }
.bar-label { min-width: 80px; font-weight: 600; color: #475569; font-size: 0.9rem; text-align: right;}
.bar-bg { flex: 1; height: 10px; border-radius: 999px; background: #e2e8f0; overflow: hidden; }
.bar-fill { height: 100%; background: var(--accent); border-radius: 999px; }
.bar-perc { min-width: 40px; text-align: right; font-weight: 700; color: var(--text-dark); font-size: 0.9rem; }


/* === AI SUMMARY (RESTRUCTURED & REDESIGNED) === */
.ai-summary-card {
    font-family: var(--font-main), system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
    background: var(--bg-light);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-top: 4px solid var(--primary); /* Stronger accent top border */
    border-image: var(--gradient-main) 1;
    border-radius: var(--radius);
    padding: 2rem;
    margin-top: 2.5rem; /* More space */
    box-shadow: 0 16px 32px -18px rgba(2,6,23,0.15); /* More defined shadow */
    position: relative;
    color: var(--text-dark);
}
.ai-summary-card h4 {
    margin: 0 0 1.25rem 0;
    color: var(--text-dark); /* Darker heading for contrast */
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 800;
    line-height: 1.3;
}
.ai-summary-card h4 i {
    color: #fff;
    background: var(--gradient-main);
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.ai-summary-card p {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08); /* Separator line */
    font-size: clamp(0.95rem, 1.9vw, 1rem);
    color: var(--text-light); /* Standard body text color */
    line-height: 1.7;
    hyphens: auto;
    overflow-wrap: anywhere;
}
.ai-highlights-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem; /* Increased gap */
}
.ai-highlight-item {
    background: transparent; /* Remove old background */
    border: none; /* Remove old border */
    padding: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.ai-highlight-item strong {
    color: var(--text-dark);
    font-weight: 800;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.ai-highlights-grid .ai-highlight-item:first-child strong::before {
    content: '👍';
    font-size: 1.2rem;
}
.ai-highlights-grid .ai-highlight-item:last-child strong::before {
    content: '⚠️';
    font-size: 1.2rem;
}

/* === GLOBAL UGC GALLERY (Glass Cards) === */
.user-generated-gallery { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); 
    gap: 1.5rem; 
    margin-top: 1.75rem; 
}
.ugc-card { 
    position: relative; 
    border-radius: 20px; 
    overflow: hidden; 
    aspect-ratio: 3/4; 
    display: flex; 
    align-items: flex-end; 
    isolation: isolate; 
    background: rgba(255,255,255,0.08); 
    backdrop-filter: blur(8px); 
    -webkit-backdrop-filter: blur(8px); 
    border: 1px solid rgba(255,255,255,0.25); 
    box-shadow: 0 8px 24px -8px rgba(0,0,0,0.4); 
    transition: box-shadow .4s ease; 
}
.ugc-card::before { 
    content: ""; 
    position: absolute; 
    inset: 0; 
    background: linear-gradient(to top, rgba(0,0,0,.6), rgba(0,0,0,0) 60%); 
    z-index: 1; 
}
.ugc-card img { 
    position: absolute; 
    inset: 0; 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transform: scale(1.03); 
    transition: transform .8s ease; 
    will-change: transform; 
}
.ugc-card:hover img { transform: scale(1.12); }
.ugc-card:hover { box-shadow: 0 10px 28px -6px rgba(0,0,0,0.55); }
.ugc-meta { 
    position: relative; 
    z-index: 2; 
    width: 100%; 
    padding: .85rem 1rem 1rem; 
    display: flex; 
    flex-direction: column; 
    gap: .55rem; 
    color: #fff; 
    font-size: .8rem; 
    line-height: 1.2; 
    letter-spacing: .3px; 
}
.ugc-rows { display: flex; flex-direction: column; gap: .45rem; }
.ugc-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.badge { 
    display: inline-flex; 
    align-items: center; 
    gap: .35rem; 
    padding: .4rem .7rem; 
    border-radius: 999px; 
    font-size: .62rem; 
    font-weight: 600; 
    text-transform: uppercase; 
    letter-spacing: .7px; 
    background: rgba(255,255,255,.18); 
    backdrop-filter: blur(6px); 
    -webkit-backdrop-filter: blur(6px); 
    border: 1px solid rgba(255,255,255,.35); 
    color: #fff; 
    text-decoration: none; 
    position: relative; 
}
.badge-platform { 
    background: linear-gradient(90deg,#ef4444,#f97316,#f59e0b); 
    border: 1px solid rgba(255,255,255,.4); 
    box-shadow: 0 0 0 1px rgba(0,0,0,.15), 0 4px 12px -4px rgba(0,0,0,.5); 
}
.ugc-source-link:hover { background: rgba(255,255,255,.28); }
@media (prefers-reduced-motion: reduce) { .ugc-card img, .ugc-card { transition: none; } }
@media (max-width: 640px){ .ugc-card { aspect-ratio: 4/5; } }
body.light .ugc-card { background: rgba(255,255,255,0.6); }


        .user-reviews-section { margin-top: 4rem; position: relative; z-index: 1;}
        .user-reviews-section h4 {
            font-size: 2rem;
            font-weight: 800;
            margin: 0 0 2rem 0;
            color: var(--text-dark);
            text-align: center;
            position: relative;
        }
        .user-reviews-section h4 i { margin-right: 0.75rem; color: var(--primary); }
        .user-reviews-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
        .user-review-card {
            background: #fff;
            border: 1px solid rgba(15, 23, 42, 0.08);
            border-radius: 18px;
            padding: 1.5rem;
            box-shadow: 0 8px 20px -15px rgba(2,6,23,0.1);
            position: relative;
            display: flex;
            flex-direction: column;
        }
        .user-review-card::before { content: '🗨️'; position: absolute; font-size: 5rem; bottom: 0; right: 0; opacity: 0.05; z-index: 0; }
        .user-review-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            margin-bottom: 0.75rem;
            position: relative; z-index: 1;
        }
        .user-info strong { font-weight: 700; color: var(--text-dark); font-size: 1.1rem; }
        .user-info .meta { color: #64748b; font-size: 0.85rem; }
        .user-review-stars { color: var(--accent); font-size: 1.1rem; }
        .user-review-text { font-size: 0.95rem; color: var(--text-light); line-height: 1.6; position: relative; z-index: 1;}


        /* RESPONSIVE DESIGN */
        @media (min-width: 768px) {
            .handbook-card.faq-card::before { font-size: 8rem; top: -20px; right: -20px; }
            .reviews-content-grid { grid-template-columns: 1fr 1.5fr; }
            .ai-highlights-grid { grid-template-columns: 1fr 1fr; } 
            .user-reviews-grid { grid-template-columns: 1fr 1fr; }
        }

        @media (max-width: 900px) {
            .comic-chapter { grid-template-columns: 1fr; gap: 2rem; }
            .comic-chapter:nth-child(even) .comic-image { order: 1; }
            .saga-nav-links { display: none; }
            .user-reviews-section h4 { font-size: 1.5rem; }
        }