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

:root {
    --bg: #0f0f1a;
    --bg2: #161625;
    --card: #1c1c2e;
    --card-hover: #22223a;
    --accent: #f05a28;
    --accent2: #ff7a45;
    --green: #22c55e;
    --blue: #3b82f6;
    --text: #e8e8f0;
    --muted: #8888aa;
    --border: #2a2a40;
    --radius: 16px;
    --shadow: 0 8px 32px rgba(0,0,0,0.4);
}

* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Cairo', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.8;
    min-height: 100vh;
}

/* ===== HEADER ===== */
.header {
    background: var(--bg2);
    border-bottom: 1px solid var(--border);
    padding: 0 30px;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
}
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 20px;
    padding: 0 10px;
}
.logo {
    font-size: 22px;
    font-weight: 800;
    color: var(--accent);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.logo img { height: 36px; width: 36px; border-radius: 8px; }
.logo span { color: var(--text); }
.nav { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.nav a {
    color: var(--muted);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
}
.nav a:hover, .nav a.active {
    color: var(--text);
    background: var(--card);
}
.nav a.login-link {
    background: var(--accent);
    color: #fff;
    padding: 8px 18px;
    border-radius: 8px;
}
.nav a.login-link:hover {
    background: var(--accent2);
    color: #fff;
}

/* ===== HEADER RIGHT ===== */
.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.user-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 6px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 30px;
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
}
.user-pill:hover {
    border-color: var(--accent);
    background: var(--card-hover);
}
.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}
.user-name {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.login-pill {
    padding: 8px 18px;
    background: var(--accent);
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.2s;
}
.login-pill:hover {
    background: var(--accent2);
}
.lang-switch { display: flex; gap: 4px; }
.lang-switch a {
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    color: var(--muted);
    border: 1px solid var(--border);
    transition: all 0.2s;
}
.lang-switch a:hover, .lang-switch a.active {
    color: #fff;
    background: var(--accent);
    border-color: var(--accent);
}

/* ===== HERO ===== */
.hero {
    text-align: center;
    padding: 80px 20px 60px;
    background: linear-gradient(180deg, var(--bg2) 0%, var(--bg) 100%);
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(240,90,40,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.hero h1 {
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero p {
    font-size: 18px;
    color: var(--muted);
    max-width: 500px;
    margin: 0 auto;
}

/* ===== GAME CARD ===== */
.games-section {
    padding: 40px 20px 80px;
    display: flex;
    justify-content: center;
}
.game-card {
    background: var(--card);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 50px 60px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-width: 320px;
}
.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    opacity: 0;
    transition: opacity 0.3s;
}
.game-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(240,90,40,0.15);
}
.game-card:hover::before { opacity: 1; }
.game-card img {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    margin-bottom: 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.game-card h3 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--text);
}
.game-card .badge {
    display: inline-block;
    background: rgba(34,197,94,0.15);
    color: var(--green);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
}

/* ===== LAYOUT ===== */
.page-layout {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 30px;
    min-height: calc(100vh - 64px);
}

/* ===== SIDEBAR ===== */
.sidebar {
    width: 280px;
    flex-shrink: 0;
    position: sticky;
    top: 84px;
    height: fit-content;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    padding: 20px 0;
}
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.sidebar-section {
    margin-bottom: 24px;
}
.sidebar-title {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    padding: 0 16px;
    margin-bottom: 8px;
}
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: var(--muted);
    text-decoration: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    margin: 2px 8px;
}
.sidebar-link:hover {
    color: var(--text);
    background: var(--card);
}
.sidebar-link.active {
    color: var(--accent);
    background: rgba(240,90,40,0.1);
}
.sidebar-link svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* ===== CONTENT ===== */
.content {
    flex: 1;
    min-width: 0;
    padding: 30px 0 60px;
}
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 30px;
}
.breadcrumb a {
    color: var(--accent);
    text-decoration: none;
}
.breadcrumb a:hover { text-decoration: underline; }

.guide-title {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 8px;
    color: var(--text);
}
.guide-subtitle {
    font-size: 16px;
    color: var(--muted);
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

/* ===== GUIDE STEPS ===== */
.step {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    margin-bottom: 20px;
    position: relative;
    transition: border-color 0.2s;
}
.step:hover { border-color: rgba(240,90,40,0.3); }
.step-number {
    position: absolute;
    top: -14px;
    left: 24px;
    background: var(--accent);
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(240,90,40,0.3);
}
.step h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
}
.step p {
    color: var(--muted);
    line-height: 1.9;
    margin-bottom: 12px;
}
.step p:last-child { margin-bottom: 0; }

/* ===== IMAGES ===== */
.guide-img {
    width: 100%;
    border-radius: 12px;
    margin: 20px 0;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}
.guide-img-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin: 20px 0;
}
.guide-img-row img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--border);
}

/* ===== INFO BOXES ===== */
.info-box {
    padding: 18px 22px;
    border-radius: 12px;
    margin: 20px 0;
    font-size: 14px;
    line-height: 1.8;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.info-box svg { width: 22px; height: 22px; flex-shrink: 0; margin-top: 2px; }
.info-box.tip {
    background: rgba(59,130,246,0.1);
    border: 1px solid rgba(59,130,246,0.2);
    color: #93c5fd;
}
.info-box.warning {
    background: rgba(234,179,8,0.1);
    border: 1px solid rgba(234,179,8,0.2);
    color: #fde047;
}
.info-box.danger {
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.2);
    color: #fca5a5;
}
.info-box.success {
    background: rgba(34,197,94,0.1);
    border: 1px solid rgba(34,197,94,0.2);
    color: #86efac;
}

/* ===== TABLES ===== */
.guide-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
}
.guide-table th {
    background: var(--bg2);
    padding: 12px 16px;
    text-align: left;
    font-weight: 700;
    color: var(--accent);
    border-bottom: 2px solid var(--border);
}
.guide-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--muted);
}
.guide-table tr:hover td {
    background: rgba(240,90,40,0.03);
}

/* ===== LISTS ===== */
.guide-list {
    padding-left: 24px;
    margin: 16px 0;
}
.guide-list li {
    margin-bottom: 8px;
    color: var(--muted);
    line-height: 1.8;
}
.guide-list li strong { color: var(--text); }

/* ===== SECTION HEADINGS ===== */
.guide-section-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    margin: 36px 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
}

/* ===== VIDEO ===== */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    margin: 20px 0;
    border: 1px solid var(--border);
}
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ===== FAQ ===== */
.faq-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
}
.faq-q {
    padding: 18px 22px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}
.faq-q:hover { background: var(--card-hover); }
.faq-q::after {
    content: '+';
    font-size: 20px;
    color: var(--accent);
    transition: transform 0.3s;
}
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a {
    padding: 0 22px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s;
    color: var(--muted);
    line-height: 1.8;
}
.faq-item.open .faq-a {
    padding: 0 22px 18px;
    max-height: 500px;
}

/* ===== FEEDBACK ===== */
.feedback {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    text-align: center;
    margin-top: 40px;
}
.feedback h3 {
    font-size: 18px;
    margin-bottom: 16px;
    color: var(--text);
}
.feedback-btns {
    display: flex;
    gap: 12px;
    justify-content: center;
}
.feedback-btn {
    padding: 10px 24px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg2);
    color: var(--text);
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
}
.feedback-btn:hover {
    border-color: var(--accent);
    background: rgba(240,90,40,0.1);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg2);
    border-top: 1px solid var(--border);
    padding: 50px 20px 30px;
    text-align: center;
    margin-top: 60px;
}
.discord-banner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #7289DA;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s;
    margin-bottom: 12px;
}
.discord-banner:hover {
    color: #5865F2;
    opacity: 0.8;
}
.footer p {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 16px;
}
.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}
.footer-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
    padding: 4px 8px;
    border-radius: 6px;
}
.footer-links a:hover {
    color: var(--accent);
    background: rgba(255,255,255,0.05);
}

/* ===== BACK TO TOP ===== */
.back-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(240,90,40,0.4);
    z-index: 99;
    transition: all 0.2s;
}
.back-top:hover { transform: translateY(-3px); }
.back-top.show { display: flex; }

/* ===== HAMBURGER ===== */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
}
.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s;
}
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 98;
}

/* Global image fix */
img { max-width: 100%; height: auto; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .hamburger { display: flex; }
    .nav { display: none; }
    .sidebar {
        position: fixed;
        top: 0;
        left: -300px;
        width: 280px;
        height: 100vh;
        background: var(--bg2);
        z-index: 101;
        padding: 80px 0 20px;
        transition: left 0.3s;
        border-right: 1px solid var(--border);
    }
    .sidebar.open { left: 0; }
    .sidebar-overlay.open { display: block; }
    .page-layout { 
        padding: 0 12px; 
        flex-direction: column;
        gap: 20px;
    }
    .hero h1 { font-size: 28px; }
    .hero p { font-size: 15px; }
    .game-card { min-width: 260px; padding: 40px 30px; width: 100%; }
    .guide-title { font-size: 24px; }
    .step { 
        padding: 20px; 
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    .step-number {
        left: 15px;
    }
    .guide-img-row { 
        grid-template-columns: 1fr; 
        gap: 12px;
    }
    .guide-img { 
        width: 100%; 
        height: auto;
        display: block;
    }
}
@media (max-width: 600px) {
    .header-inner { padding: 0 10px; }
    .hero { padding: 60px 15px 40px; }
    .hero h1 { font-size: 24px; }
    .guide-title { font-size: 20px; }
}
