/* =================================================================
   VEKTRONUS - WIKI & FAQ STYLE
   ================================================================= */

/* ================= 1. PROMĚNNÉ A RESET ================= */
:root {
    --bg: #000000;
    --primary: #04AFEC;
    --primary-glow: rgba(4, 175, 236, 0.35);
    --card-bg: rgba(10, 15, 30, 0.75);
    --border: rgba(4, 175, 236, 0.2);
    --text-muted: #8a9bb0;
    --online: #35ff72;
    --warn: #ff4757;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Plus Jakarta Sans', sans-serif; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
    background-color: var(--bg);
    background-image: radial-gradient(circle at 50% 0%, rgba(4, 175, 236, 0.15) 0%, transparent 50%), linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 100% 100%, 50px 50px, 50px 50px;
    color: #ffffff; min-height: 100vh; overflow-x: hidden;
}
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ================= 2. ANIMACE ================= */
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUpNav { from { opacity: 0; transform: translateX(-50%) translateY(-20px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }

/* ================= 3. NAVIGACE ================= */
nav {
    position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
    width: min(1150px, 92%); padding: 14px 30px; display: flex; justify-content: space-between; align-items: center;
    background: rgba(3, 9, 20, 0.85); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border); border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(4, 175, 236, 0.08);
    z-index: 1000; animation: fadeInUpNav 0.5s ease-out forwards;
}
.nav-logo { font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 20px; letter-spacing: 3px; color: #fff; text-transform: uppercase; text-decoration: none; transition: opacity 0.3s; }
.nav-logo:hover { opacity: 0.8; }
.nav-logo span { color: var(--primary); text-shadow: 0 0 10px var(--primary-glow); }
.nav-links { display: flex; gap: 8px; list-style: none; background: rgba(255, 255, 255, 0.02); padding: 6px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.05); }
.nav-btn { background: transparent; border: none; color: var(--text-muted); font-size: 13px; font-weight: 700; padding: 10px 18px; border-radius: 10px; cursor: pointer; transition: all 0.25s ease; display: flex; align-items: center; gap: 8px; text-decoration: none; }
.nav-btn:hover { color: #ffffff; background: rgba(4, 175, 236, 0.15); }
.nav-btn.active { background: var(--primary); color: #000; font-weight: 800; }
.mobile-menu-btn { display: none; background: transparent; border: 1px solid var(--border); color: #fff; font-size: 20px; padding: 8px 12px; border-radius: 10px; cursor: pointer; }

/* ================= 4. STRÁNKY A SCÉNY ================= */
.page { display: none; width: 100%; animation: fadeIn 0.4s ease forwards; }
.page.active { display: block; }
.scene { min-height: 100vh; width: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 120px 24px 60px; position: relative; border-bottom: 1px solid rgba(4, 175, 236, 0.1); }
.scene-hero { background: radial-gradient(circle at 50% 30%, rgba(4, 175, 236, 0.18) 0%, rgba(0, 0, 0, 0.95) 70%); }
.scene-container { max-width: 1050px; width: 100%; margin: 0 auto; animation: fadeInUp 0.6s ease-out 0.1s forwards; opacity: 0; }
.page-title { font-family: 'Montserrat', sans-serif; font-size: clamp(28px, 5vw, 34px); font-weight: 900; text-align: center; margin-bottom: 12px; letter-spacing: 2px; text-transform: uppercase; }
.page-title span { color: var(--primary); }
.page-subtitle { text-align: center; color: var(--text-muted); font-size: 15px; margin-bottom: 40px; }

/* ================= 5. WIKI & FAQ PŘEPÍNAČ (NOVÉ) ================= */
.wiki-faq-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    background: var(--card-bg);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 14px 28px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tab-btn:hover {
    color: #ffffff;
    background: rgba(4, 175, 236, 0.1);
    border-color: rgba(4, 175, 236, 0.5);
}

.tab-btn.active {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
    box-shadow: 0 0 20px var(--primary-glow);
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.tab-content.active {
    display: block;
}

/* ================= 6. FAQ STYLY ================= */
.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    margin-bottom: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.3s, transform 0.3s;
}
.faq-item:hover { border-color: rgba(4, 175, 236, 0.5); transform: translateX(5px); }
.faq-question {
    padding: 20px 25px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-question i.fa-circle-question { color: var(--primary); margin-right: 12px; }
.faq-question i.fa-chevron-down { transition: transform 0.3s ease; color: var(--text-muted); }
.faq-item.active .faq-question i.fa-chevron-down { transform: rotate(180deg); color: var(--primary); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.65;
    border-top: 1px solid transparent;
}
.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 25px 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 15px;
}
.faq-answer strong { color: var(--primary); }

/* ================= 7. WIKI KARTY (NOVÉ) ================= */
.wiki-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.wiki-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.wiki-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(4, 175, 236, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wiki-card:hover {
    transform: translateY(-5px);
    border-color: rgba(4, 175, 236, 0.5);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.wiki-card:hover::before { opacity: 1; }

.wiki-icon {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.wiki-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.wiki-card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.wiki-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: gap 0.3s ease;
    position: relative;
    z-index: 1;
}

.wiki-link:hover { gap: 12px; text-decoration: underline; }

/* ================= 8. FOOTER ================= */
footer { text-align: center; padding: 40px 20px; color: rgba(255, 255, 255, 0.25); font-size: 13px; background: rgba(0, 0, 0, 0.95); border-top: 1px solid rgba(255, 255, 255, 0.05); }

/* ================= 9. RESPONZIVITA ================= */
@media (max-width: 900px) {
    .nav-links { display: none; position: absolute; top: 80px; left: 0; width: 100%; flex-direction: column; background: rgba(3, 9, 20, 0.95); backdrop-filter: blur(20px); padding: 20px; border: 1px solid var(--border); border-radius: 16px; gap: 10px; }
    .nav-links.mobile-open { display: flex; }
    .mobile-menu-btn { display: block; }
    .scene { min-height: auto; padding: 120px 20px 60px; }
    .wiki-grid { grid-template-columns: 1fr; }
}