/* --- KONFIGURACJA I ZMIENNE --- */
:root {
    --bg-dark: #050505;
    --bg-card: rgba(18, 18, 18, 0.7);
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --primary: #ffffff;
    --primary-muted: #a1a1a1;
    --accent: #5865F2; 
    --text-main: #f5f5f5;
    --text-muted: #8e8e93;
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.7);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- UKŁAD I KONTENERY --- */
.container { 
    width: 90%; 
    max-width: 1100px; 
    margin: 0 auto; 
}

.container.narrow { max-width: 750px; }

.section { padding: 100px 0; width: 100%; }

/* --- NAWIGACJA --- */
header.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo img { height: 35px; width: auto; filter: brightness(0) invert(1); }

/* Menu na komputerze */
nav.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

nav.nav-links a:not(.btn) {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

nav.nav-links a:hover { color: var(--primary); }

/* --- MOBILE TOGGLE (BURGER) --- */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
}

.mobile-toggle span {
    width: 25px;
    height: 2px;
    background: #fff;
    border-radius: 5px;
    transition: var(--transition);
}

/* --- RESPONSYWNOŚĆ (TABLET/MOBILE) --- */
@media (max-width: 850px) {
    .mobile-toggle { display: flex; }

    nav.nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%; 
        max-width: 300px;
        height: 100vh;
        background: #0a0a0a;
        flex-direction: column;
        padding: 90px 20px 30px 20px;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -15px 0 35px rgba(0,0,0,0.9);
        align-items: stretch;
        overflow-y: auto;
    }

    nav.nav-links.active { right: 0; }

    /* Linki w menu mobilnym */
    nav.nav-links a:not(.login-btn) {
        font-size: 1.05rem;
        padding: 16px 15px;
        background: rgba(255,255,255,0.03);
        border-radius: 12px;
        margin-bottom: 8px;
        border: 1px solid var(--glass-border);
    }

    .login-btn {
        margin-top: 20px !important;
        width: 100% !important;
        text-align: center;
        background: var(--primary) !important;
        color: #000 !important;
        padding: 16px !important;
        border-radius: 12px !important;
        font-weight: 700;
    }

    /* Box użytkownika na mobile */
    .user-menu {
        margin-top: 15px;
        background: var(--glass);
        border-radius: 15px;
        padding: 10px;
    }
}

/* --- USER MENU & DROPDOWN --- */
.user-menu { position: relative; }

.user-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 15px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    cursor: pointer;
}

.avatar-circle {
    width: 30px; height: 30px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center; justify-content: center;
    font-weight: bold; font-size: 0.8rem;
}

.dropdown-content {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 220px;
    background: #0f0f0f;
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
}

.user-menu.active .dropdown-content {
    opacity: 1; visibility: visible; transform: translateY(0);
}

.dropdown-content a {
    padding: 10px;
    display: flex !important;
    gap: 10px;
    border-radius: 8px;
}

.dropdown-content a:hover { background: var(--glass); }

/* --- HERO SECTION --- */
.hero { padding: 160px 0 80px; text-align: center; }

h1 { 
    font-size: clamp(2.2rem, 7vw, 4rem); 
    line-height: 1.1; 
    margin-bottom: 20px; 
    font-weight: 800;
}

.gradient-text {
    background: linear-gradient(180deg, #fff 0%, #777 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.badge {
    display: inline-block;
    padding: 6px 15px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    font-size: 0.75rem;
    color: var(--primary-muted);
    margin-bottom: 20px;
    text-transform: uppercase;
}

/* --- KARTY I GRID --- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 35px;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-8px);
    border-color: rgba(255,255,255,0.2);
}

/* --- PRZYCISKI --- */
.btn {
    padding: 14px 25px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
    text-decoration: none;
    border: none;
}

.btn.primary { background: var(--primary); color: #000; }
.btn.secondary { background: var(--glass); color: #fff; border: 1px solid var(--glass-border); }

.btn:hover { transform: translateY(-2px); opacity: 0.9; }

/* --- DISCORD BUTTON --- */
.btn-discord {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--accent);
    color: #fff;
    padding: 16px 30px;
    border-radius: 15px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.btn-discord:hover { background: #4752C4; transform: scale(1.02); }

/* --- STOPKA --- */
footer {
    padding: 60px 0;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    margin-top: 100px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- ANIMACJA REVEAL --- */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: 0.8s ease-out;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- WYRÓŻNIONY PRZYCISK (WARUNKI KORZYSTANIA) --- */
.btn-highlighted {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 71, 87, 0.1); /* Półprzezroczysty czerwono-pomarańczowy akcent ostrzegawczy */
    color: #ff4757 !important; /* Wyrazisty kolor tekstu */
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 71, 87, 0.3);
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.05);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    position: relative;
}

/* Usunięcie domyślnej animacji kreski pod linkiem, jeśli przycisk jest w menu */
.btn-highlighted::after {
    display: none !important;
}

/* Efekt po najechaniu myszką (Hover) */
.btn-highlighted:hover {
    background: #ff4757 !important; /* Odwrócenie kolorów - pełne tło */
    color: #fff !important; /* Biały tekst */
    transform: translateY(-3px); /* Delikatne uniesienie */
    box-shadow: 0 8px 25px rgba(255, 71, 87, 0.35); /* Mocniejszy efekt poświaty (glow) */
    border-color: transparent;
}

/* Animacja ikony wewnątrz przycisku */
.btn-highlighted .btn-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.btn-highlighted:hover .btn-icon {
    transform: scale(1.15) rotate(10deg); /* Lekkie powiększenie i obrót ikony przy hoverze */
}

/* Responsywność dla urządzeń mobilnych */
@media (max-width: 850px) {
    .btn-highlighted {
        margin-top: 5px;
        justify-content: center;
        padding: 14px 18px !important;
        border-radius: 12px !important;
        background: rgba(255, 71, 87, 0.15) !important;
    }
    .btn-highlighted:hover {
        transform: none; /* Brak unoszenia na telefonach */
    }
}
