/* ==========================================================================
   PlayboxLab Dedicated SEO Game Guide Styles (playbox-guide.css)
   playboxlab.net
   ========================================================================== */

:root {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --card-bg: rgba(30, 41, 59, 0.78);
    --card-border: rgba(255, 255, 255, 0.12);
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --accent-color: #3b82f6;
    --accent-hover: #2563eb;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --shadow-lg: 0 20px 45px rgba(0, 0, 0, 0.4);
}

[data-theme="light"] {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.92);
    --card-border: rgba(15, 23, 42, 0.1);
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans KR", sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.72;
    min-height: 100vh;
    padding-bottom: 96px;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.guide-container {
    max-width: 920px;
    margin: 0 auto;
    padding: 20px 20px 40px;
}

/* Top Header */
.guide-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0 20px;
    border-bottom: 1px solid var(--card-border);
    margin-bottom: 28px;
}

.guide-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
}

.guide-brand img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.guide-brand-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.guide-brand-title span {
    color: var(--accent-color);
}

.guide-topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 9999px;
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    color: var(--text-primary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.icon-btn:hover {
    border-color: var(--accent-color);
    transform: translateY(-1px);
}

.play-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 9999px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.94rem;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.play-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.45);
}

.play-cta-btn.emerald {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.35);
}

.play-cta-btn.emerald:hover {
    box-shadow: 0 10px 24px rgba(16, 185, 129, 0.45);
}

.play-cta-btn.amber {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.35);
}

.play-cta-btn.amber:hover {
    box-shadow: 0 10px 24px rgba(245, 158, 11, 0.45);
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.86rem;
    color: var(--text-muted);
    margin-bottom: 18px;
}

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Hero Section */
.guide-hero {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 32px 28px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 26px;
}

.guide-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 700;
    background: rgba(59, 130, 246, 0.14);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
    margin-bottom: 12px;
}

.guide-hero h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.guide-hero p {
    color: var(--text-secondary);
    font-size: 1.02rem;
    margin-bottom: 20px;
}

.guide-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.secondary-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 9999px;
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.secondary-link-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* TOC */
.guide-toc {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 18px 22px;
    margin-bottom: 26px;
}

.guide-toc h2 {
    font-size: 0.95rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 10px;
}

.guide-toc ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
}

.guide-toc a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
}

.guide-toc a:hover {
    color: var(--accent-color);
}

/* Content Sections */
.guide-article-section {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 18px;
    padding: 26px 26px;
    margin-bottom: 22px;
}

.guide-article-section h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.38rem;
    font-weight: 800;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.guide-article-section h2 i {
    color: var(--accent-color);
}

.guide-article-section h3 {
    font-size: 1.08rem;
    font-weight: 700;
    margin: 18px 0 8px;
    color: var(--text-primary);
}

.guide-article-section p {
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.guide-article-section ul,
.guide-article-section ol {
    padding-left: 22px;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.tip-box {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.28);
    border-left: 4px solid #10b981;
    border-radius: 12px;
    padding: 14px 16px;
    margin-top: 14px;
    color: var(--text-primary);
    font-size: 0.94rem;
}

.card-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 14px;
    margin-top: 12px;
}

.mini-card {
    background: rgba(148, 163, 184, 0.08);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 16px;
}

.mini-card h4 {
    font-size: 1rem;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.mini-card p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* FAQ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: rgba(148, 163, 184, 0.07);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 16px 18px;
}

.faq-q {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.faq-a {
    color: var(--text-secondary);
    font-size: 0.94rem;
}

/* Bottom CTA Banner */
.bottom-play-banner {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.16) 0%, rgba(16, 185, 129, 0.16) 100%);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    margin-top: 28px;
}

.bottom-play-banner h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.bottom-play-banner p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.bottom-play-banner .play-cta-btn {
    padding: 14px 32px;
    font-size: 1.05rem;
}

.other-guides-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--card-border);
}

/* Floating Play Button */
.floating-play-cta {
    position: fixed;
    bottom: 22px;
    right: 22px;
    z-index: 900;
    padding: 13px 22px;
    border-radius: 9999px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 28px rgba(37, 99, 235, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.floating-play-cta:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 14px 34px rgba(37, 99, 235, 0.55);
}

.floating-play-cta.emerald {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 10px 28px rgba(16, 185, 129, 0.45);
}

.floating-play-cta.amber {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 10px 28px rgba(245, 158, 11, 0.45);
}

@media (max-width: 640px) {
    .guide-hero {
        padding: 24px 18px;
    }

    .guide-hero h1 {
        font-size: 1.55rem;
    }

    .guide-article-section {
        padding: 20px 18px;
    }

    .guide-topbar .play-cta-btn span {
        display: none;
    }

    .floating-play-cta {
        bottom: 16px;
        right: 16px;
        padding: 12px 18px;
        font-size: 0.9rem;
    }
}

.guide-footer {
    text-align: center;
    padding: 24px 12px 8px;
    color: var(--text-muted);
    font-size: 0.86rem;
}

.guide-footer a {
    color: var(--accent-color);
    text-decoration: none;
}

.guide-footer a:hover {
    text-decoration: underline;
}
