:root {
    --primary: #5b4bc4;       /* Ciemniejszy, głęboki fiolet */
    --primary-hover: #7d6fd0; 
    --primary-glow: rgba(91, 75, 196, 0.5);
    
    --accent: #00cec9;        /* Turkus */
    --dark: #050505;          /* Prawie czarne tło */
    --text: #dfe6e9;          /* Jasny tekst */
    --glass: rgba(255, 255, 255, 0.05); /* Efekt szkła */
    --danger: #d63031;        /* Czerwony dla pomocy */
    --danger-glow: rgba(214, 48, 49, 0.6);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--dark);
    color: var(--text);
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    
    /* TŁO - Mroczna winieta */
    background: radial-gradient(circle at center top, #1b1035 0%, #000000 80%);
    background-attachment: fixed;
}

/* Rozciąganie treści */
header, section {
    flex: 1;
}

.section-padding {
    padding-top: 120px;
    padding-bottom: 60px;
}

/* --- NAWIGACJA --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%; 
    
    background: rgba(5, 5, 5, 0.6); /* Półprzezroczysta czerń */
    backdrop-filter: blur(15px);     /* Rozmycie tła */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 2px;
}
.highlight {
    color: var(--primary);
    text-shadow: 0 0 15px var(--primary);
}

.logo-link { display: flex; align-items: center; text-decoration: none; color: inherit; }

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    transition: 0.3s;
    position: relative;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-links a:hover, .nav-links a.active {
    color: white;
    text-shadow: 0 0 10px var(--primary);
}

/* Przycisk Sklepu */
.btn-store {
    background: var(--primary);
    padding: 8px 20px;
    border-radius: 5px;
    color: white !important;
    box-shadow: 0 0 15px var(--primary-glow);
    border: 1px solid transparent;
}

.btn-store:hover {
    background: transparent;
    border-color: var(--primary);
    box-shadow: 0 0 25px var(--primary);
    transform: translateY(-2px);
}

/* Przycisk Pomoc */
.btn-support {
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.9) !important;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}
.btn-support:hover {
    border-color: #ff7675;
    color: #ff7675 !important;
}

.burger { display: none; cursor: pointer; }
.burger div { width: 25px; height: 3px; background-color: var(--text); margin: 5px; transition: 0.3s; }

/* --- HERO SECTION --- */
.hero-section {
    min-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.hero-content h1 {
    font-size: 5rem;
    line-height: 1;
    margin-bottom: 20px;
    font-weight: 900;
    animation: float 4s ease-in-out infinite;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Pisanie na żywo */
.typing-wrapper {
    width: 100%;
    height: 40px;
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    position: relative;
    z-index: 5;
}

.typing-container {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid var(--primary);
    width: 0; 
    max-width: fit-content;
    font-size: 1.2rem;
    color: #ccc;
    animation: typing 4s steps(40, end) forwards, blink-caret .75s step-end infinite;
}

/* Przycisk IP */
.server-ip-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--primary);
    padding: 15px 35px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    font-size: 1.3rem;
    cursor: pointer;
    margin: 0 0 50px 0;
    transition: 0.3s;
    position: relative;
    z-index: 6;
    box-shadow: 0 0 20px rgba(91, 75, 196, 0.2);
}

.server-ip-box:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 0 40px var(--primary);
}

.tooltip {
    position: absolute; top: -45px; left: 50%; transform: translateX(-50%);
    background: white; color: black; padding: 5px 12px; border-radius: 4px;
    font-size: 0.8rem; font-weight: bold; opacity: 0; transition: 0.3s; pointer-events: none;
}
.server-ip-box:hover .tooltip { opacity: 1; top: -55px; }

/* Kafelki Statystyk */
.stats-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 15px 30px;
    border-radius: 12px;
    text-align: center;
    min-width: 140px;
    transition: 0.3s;
}

.stat-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.stat-card:hover .sc-val {
    color: var(--primary);
    text-shadow: 0 0 15px var(--primary);
}

.sc-val {
    display: block; font-size: 1.5rem; font-weight: 800; color: white; transition: 0.3s;
}
.sc-label {
    font-size: 0.75rem; color: #888; text-transform: uppercase; letter-spacing: 1.5px; font-weight: 700; margin-top: 5px;
}

/* --- OGÓLNE KLASY PODSTRON --- */
.section-title {
    text-align: center; font-size: 2.5rem; margin-bottom: 60px; text-transform: uppercase;
}
.section-title-long {
    text-align: center; font-size: 1.8rem; font-weight: 800; margin-bottom: 50px;
    text-transform: uppercase; line-height: 1.4; max-width: 1000px; margin-left: auto; margin-right: auto;
}

/* CHANGELOG (POPRAWIONY UKŁAD) */
.changelog-wrapper { display: flex; gap: 40px; max-width: 1100px; margin: 0 auto; align-items: flex-start; }
.timeline { flex: 2; position: relative; border-left: 4px solid var(--primary); margin: 0; padding: 20px 0; }
.sidebar { flex: 1; position: sticky; top: 100px; }

.timeline-item {
    position: relative; margin-left: 40px; margin-bottom: 30px;
    background: var(--glass); padding: 25px; border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.05); 
    transition: transform 0.3s ease, border 0.3s ease, box-shadow 0.3s ease;
    transform: translateZ(0); /* Zapobiega klatkowaniu */
    backface-visibility: hidden;
}
.timeline-item:hover { 
    transform: translateX(10px); 
    border-left: 5px solid var(--primary); 
    background: rgba(255, 255, 255, 0.08); 
}
.timeline-item::before {
    content: ''; position: absolute; left: -48px; top: 30px; width: 16px; height: 16px;
    background: var(--dark); border: 3px solid var(--primary); border-radius: 50%; transition: 0.3s;
}
.timeline-item:hover::before { background: var(--primary); box-shadow: 0 0 15px var(--primary); }

/* --- HEADER CHANGELOGA (TO PRZYWRACA TAGI) --- */
.content-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: flex-start; 
    margin-bottom: 20px; 
    gap: 20px; 
}
.header-left { display: flex; flex-direction: column; }
.header-right { margin-left: auto; } /* Dopycha tag do prawej */

.date { display: block; font-size: 0.85rem; color: #aaa; margin-bottom: 5px; font-weight: 600; }
.content-header h3 { margin: 0; font-size: 1.5rem; color: var(--primary-hover); line-height: 1.2; }

/* Lista zmian (Strzałki naprawione) */
.change-list { list-style: none; background: rgba(0, 0, 0, 0.2); padding: 20px; border-radius: 6px; }
.change-list li { margin-bottom: 8px; position: relative; padding-left: 25px; color: #ddd; font-size: 0.95rem; }
.change-list li::before { 
    content: '\f054'; /* FontAwesome Chevron */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute; left: 0; top: 2px; 
    color: var(--primary); font-size: 0.8rem;
}

/* WIP Widget */
.wip-card { background: var(--glass); border: 1px solid rgba(255,255,255,0.05); border-radius: 10px; padding: 25px; }
.wip-header { font-size: 1.2rem; color: var(--primary); margin-bottom: 20px; font-weight: 800; border-bottom: 2px solid rgba(255,255,255,0.05); padding-bottom: 15px; }
.wip-list { list-style: none; }
.progress-bar { width: 100%; height: 6px; background: rgba(255,255,255,0.1); border-radius: 3px; margin-top: 8px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--primary); width: var(--w); border-radius: 3px; animation: fillProgress 1.5s ease-out; }

/* FAQ Styles */
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { background: var(--glass); margin-bottom: 15px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.05); transition: 0.3s; overflow: hidden; }
.faq-item:hover { border-color: var(--primary); }
.faq-question { padding: 20px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-weight: 600; background: rgba(255,255,255,0.03); }
.faq-question:hover { background: rgba(255,255,255,0.08); color: var(--primary); }
.faq-answer { max-height: 0; overflow: hidden; padding: 0 20px; color: #ccc; transition: 0.4s ease; line-height: 1.6; }
.faq-item.active .faq-answer { max-height: 300px; padding: 20px; border-top: 1px solid rgba(255,255,255,0.05); }
.faq-item.active .faq-question { color: var(--primary); }
.faq-item.active i { transform: rotate(180deg); }

/* REGULAMIN (NAPRAWIONY - ZWĘŻONY) */
/* Dodajemy style dla kafelków w regulaminie, aby się nie rozlewały */
.rule-item { 
    background: var(--glass); 
    padding: 30px; 
    margin-bottom: 20px; 
    border-radius: 10px; 
    border-left: 4px solid var(--primary); 
    border: 1px solid rgba(255,255,255,0.05);
    /* KLUCZOWE POPRAWKI SZEROKOŚCI */
    max-width: 900px; 
    margin-left: auto; 
    margin-right: auto;
}
.rule-item h3 { margin-bottom: 15px; color: var(--primary-hover); }
.rule-item h3 i { margin-right: 15px; width: 30px; text-align: center; }

/* Kropki w regulaminie - usunięcie domyślnych */
.rule-content ol, .rule-content ul { list-style: none !important; padding: 0; }
.rule-content > ol { display: flex; flex-direction: column; gap: 25px; counter-reset: rule-counter; }
.rule-content > ol > li { display: grid; grid-template-columns: 40px 1fr; align-items: baseline; }
.rule-content > ol > li::before { counter-increment: rule-counter; content: counter(rule-counter) "."; color: var(--primary); font-weight: 800; font-size: 1.1rem; }
.rule-content ul.sub-list { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.rule-content ul.sub-list li { display: block; position: relative; padding-left: 20px; color: #b2bec3; font-size: 0.9rem; }
.rule-content ul.sub-list li::before { content: ''; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; background: var(--primary); border-radius: 50%; }

.update-badge { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); padding: 8px 20px; border-radius: 50px; font-size: 0.85rem; color: #aaa; display: inline-flex; align-items: center; gap: 10px; }

/* Tagi */
.tag { display: inline-block; padding: 6px 14px; border-radius: 4px; font-weight: 800; font-size: 0.85rem; color: white; transition: transform 0.2s; position: relative; cursor: help; }
.tag:hover { transform: translateY(-2px); }
.tag.major { background: #6c5ce7; }
.tag.new { background: #00b894; }
.tag.event { background: #e17055; }
.tag:hover::after { content: attr(data-tooltip); position: absolute; bottom: 125%; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,0.95); padding: 8px 12px; border-radius: 6px; font-size: 0.8rem; white-space: nowrap; z-index: 1000; border: 1px solid var(--primary); animation: fadeInTooltip 0.3s forwards; }

/* STOPKA */
footer {
    background: #050505; padding: 40px 0 20px 0; position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05); margin-top: auto;
}
footer::before {
    content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 70%; height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    box-shadow: 0 0 80px 15px var(--primary); opacity: 0.6;
}
.footer-container { width: 95%; max-width: 1600px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 40px; padding-bottom: 30px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.footer-brand { font-size: 1.8rem; font-weight: 800; color: white; letter-spacing: -1px; }
/* POPRAWIONY TEKST W STOPCE (żeby nie uciekał) */
.footer-desc { color: #666; font-size: 0.85rem; max-width: 500px; margin-top: 5px; } 

.footer-nav { display: flex; gap: 25px; }
.footer-nav a { color: #aaa; text-decoration: none; font-size: 0.9rem; font-weight: 600; text-transform: uppercase; transition: 0.3s; }
.footer-nav a:hover { color: var(--primary); }

/* Discord Card (Stary, duży styl) */
.discord-card { background: #151515; border: 1px solid rgba(255,255,255,0.05); padding: 12px 25px; border-radius: 12px; display: flex; align-items: center; gap: 15px; text-decoration: none; transition: 0.4s; position: relative; overflow: hidden; min-width: 290px; height: 70px; }
.discord-icon-box { width: 45px; height: 45px; background: #5865F2; border-radius: 50%; display: flex; justify-content: center; align-items: center; color: white; font-size: 1.5rem; transition: 0.4s; z-index: 2; flex-shrink: 0; }
.discord-texts { display: flex; flex-direction: column; justify-content: center; z-index: 2; flex: 1; }
.dc-title { color: white; font-weight: 800; font-size: 1.1rem; line-height: 1.2; transition: 0.3s; margin-bottom: 2px; }
.dc-sub { color: #888; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; position: relative; height: 20px; line-height: 20px; overflow: hidden; display: block; }
.dc-sub::before { content: attr(data-original); position: absolute; top: 0; left: 0; transition: transform 0.3s cubic-bezier(0.175,0.885,0.32,1.275); width: 100%; white-space: nowrap; }
.dc-sub::after { content: 'KLIKNIJ BY DOŁĄCZYĆ'; position: absolute; top: 100%; left: 0; color: white; font-weight: 800; letter-spacing: 0.5px; transition: transform 0.3s cubic-bezier(0.175,0.885,0.32,1.275); width: 100%; }
.discord-card:hover { background: #5865F2; border-color: #5865F2; transform: translateY(-3px); box-shadow: 0 10px 30px rgba(88,101,242,0.4); }
.discord-card:hover .discord-icon-box { background: white; color: #5865F2; transform: scale(1.1) rotate(-10deg); }
.discord-card:hover .dc-sub::before { transform: translateY(-100%); }
.discord-card:hover .dc-sub::after { transform: translateY(-100%); }
.discord-card:hover .dc-title { color: rgba(255,255,255,0.9); }
.discord-card:hover .dc-sub { color: rgba(255,255,255,0.8); }

.footer-bottom { width: 95%; max-width: 1600px; margin: 20px auto 0 auto; display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; color: #666; font-weight: 500; }
.footer-bottom strong { color: #fff; }

/* Modal Wsparcia i Mapy */
.modal-overlay { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.8); backdrop-filter: blur(5px); justify-content: center; align-items: center; animation: fadeInModal 0.3s ease; }
.modal-content { background: rgba(20, 20, 20, 0.95); border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 0 30px rgba(108, 92, 231, 0.3); border-radius: 15px; padding: 40px; width: 90%; max-width: 500px; text-align: center; position: relative; transform: scale(0.9); animation: popIn 0.3s forwards; }
.modal-title { font-size: 1.8rem; font-weight: 800; margin-bottom: 10px; color: white; }
.support-option { display: flex; align-items: center; gap: 15px; background: rgba(255, 255, 255, 0.05); padding: 15px; border-radius: 10px; text-decoration: none; color: white; transition: 0.3s; border: 1px solid transparent; }
.support-option:hover { background: rgba(108, 92, 231, 0.1); border-color: var(--primary); transform: translateX(5px); }
.close-modal { position: absolute; top: 15px; right: 20px; color: #aaa; font-size: 2rem; font-weight: bold; cursor: pointer; transition: 0.3s; }
.close-modal:hover { color: #ff7675; }
.btn-modal-action { background: var(--primary); color: white; border: 1px solid var(--primary); padding: 12px 35px; border-radius: 50px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; transition: 0.3s; box-shadow: 0 0 20px var(--primary-glow); margin: 30px auto 0 auto; display: block; width: fit-content; }
.btn-modal-action:hover { background: transparent; box-shadow: 0 0 30px var(--primary); transform: translateY(-2px); }

/* Animacje */
@keyframes typing { from { width: 0 } to { width: 100% } }
@keyframes blink-caret { from, to { border-color: transparent } 50% { border-color: var(--primary); } }
@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-10px); } 100% { transform: translateY(0px); } }
@keyframes fadeInModal { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { to { transform: scale(1); } }
@keyframes fillProgress { to { width: var(--w); } }
@keyframes fadeInTooltip { to { opacity: 1; } }
.fade-in, .slide-in { opacity: 0; transform: translateY(20px); transition: 1s all ease; }
.visible { opacity: 1; transform: translateY(0); }

/* Mobile */
@media (max-width: 900px) {
    .nav-links { display: none; } .burger { display: block; }
    .hero-content h1 { font-size: 2.5rem; }
    .changelog-wrapper { flex-direction: column; }
    .timeline { width: 100%; border-left: 4px solid var(--primary); padding-left: 0; }
    .sidebar { width: 100%; position: static; }
    .footer-container { flex-direction: column; text-align: center; gap: 30px; }
    .footer-nav { flex-direction: column; gap: 15px; }
    .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}