/* ===== ARCHITEKTURA NOWOCZESNYCH ZMIENNYCH ===== */
:root {
    --bg-overlay-opacity: 0.50; 
    
    --primary-green: #189e7b;
    --primary-green-glow: rgba(24, 158, 123, 0.2); /* Subtelniejsza poświata w zmiennej */
    --bg-dark: #0f172a;
    --text-muted: #94a3b8;
    --border-light: rgba(255, 255, 255, 0.06);
}

/* ===== RESET I BAZA STRONY ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: white;
    background: linear-gradient(
        135deg, 
        rgba(15, 23, 42, var(--bg-overlay-opacity)), 
        rgba(0, 0, 0, calc(var(--bg-overlay-opacity) + 0.15))
    ), url('img/background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-color: var(--bg-dark);
    min-height: 100vh;
    min-height: 100dvh; 
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* ===== NAWIGACJA (NAVBAR) ===== */
.navbar {
    background-color: rgba(10, 10, 10, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 1.1em 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-light);
}

.logo img {
    max-height: 70px; /* Zmień tę wartość (np. na 50px lub 70px), by dostosować wielkość */
    width: auto;      /* Zapewnia zachowanie odpowiednich proporcji */
    display: block;   /* Usuwa domyślny, niewidoczny margines pod obrazkami */
}

.green {
    color: var(--primary-green);
    text-shadow: 0 0 8px rgba(24, 158, 123, 0.25); /* Udelikatnione świecenie logo */
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* ===== ROZWIJANA LISTA JĘZYKÓW ===== */
.lang-dropdown {
    position: relative;
    display: inline-block;
    width: 105px;
}

.lang-dropdown-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-light);
    color: white;
    padding: 0.5rem 0rem;
    width: 100%;
    font-size: 0.9rem;
    font-weight: 700;
    font-family: inherit;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background 0.2s, border-color 0.2s;
}

.lang-dropdown-btn i {
    font-size: 0.75rem;
    color: var(--text-muted);
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.lang-dropdown:hover .lang-dropdown-btn i,
.lang-dropdown:focus-within .lang-dropdown-btn i {
    transform: rotate(180deg);
}

.lang-dropdown:hover .lang-dropdown-btn {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.lang-dropdown-content {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    padding-top: 6px;
    z-index: 101;
}

.lang-dropdown-inner {
    background-color: rgba(9, 11, 16, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
    overflow: hidden;
}

.lang-dropdown:hover .lang-dropdown-content,
.lang-dropdown:focus-within .lang-dropdown-content {
    display: block;
}

.lang-dropdown-content button {
    color: #cbd5e1;
    padding: 0.55rem 0rem;
    text-shadow: none;
    text-decoration: none;
    display: block;
    background: none;
    border: none;
    width: 100%;
    text-align: center;
    font-weight: 700;
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.lang-dropdown-content button:hover {
    background-color: rgba(24, 158, 123, 0.18);
    color: white;
}

/* Przycisk Discord */
.discord-btn {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, #5865F2, #4752C4);
    padding: 0.65rem 1.4rem;
    border-radius: 10px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 4px 20px rgba(88, 101, 242, 0.2);
}

.discord-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(88, 101, 242, 0.45);
    filter: brightness(1.1);
}

/* ===== TYPOGRAFIA I HERO SEKCJA ===== */
.hero-section {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 4rem 1rem;
}

.hero-content {
    max-width: 800px;
    width: 100%;
}

.main-title {
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 0.8rem;
    text-shadow: 0 15px 40px rgba(0,0,0,0.5);
    letter-spacing: -1.5px;
    animation: smoothFadeInUp 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.main-title img {
    max-width: 100%; /* Obrazek nigdy nie będzie szerszy niż ekran/rodzic */
    height: auto;    /* Zapewnia automatyczne, proporcjonalne skalowanie wysokości */
}

.subtitle {
    font-size: clamp(1.05rem, 3vw, 1.45rem);
    font-weight: 300;
    color: #cbd5e1;
    margin-bottom: 2.5rem;
    letter-spacing: 0.5px;
    animation: smoothFadeInUp 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards;
    opacity: 0;
}

/* ===== STATUS SERWERA I POPRAWIONE 15% ===== */
.server-status {
    margin: 0 auto 4rem auto;
    width: 100%;
    max-width: 580px;
    padding: 2.2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 24px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
    opacity: 0;
    animation: smoothFadeInUp 1.3s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
}

.status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem; /* Baza dla rozmiaru napisów nagłówka */
}

.animate-step-1 {
    animation: smoothFadeInUp 1s cubic-bezier(0.22, 1, 0.36, 1) 0.7s forwards;
    opacity: 0;
}

.status-text {
    font-weight: 600;
}

/* ZMIENIONO: Rozmiar czcionki taki sam jak napis obok (1em) + bardzo delikatna poświata */
.status-percentage {
    font-size: 1em; 
    font-weight: 800;
    color: var(--primary-green);
    line-height: 1;
    text-shadow: 0 0 6px rgba(24, 158, 123, 0.4); /* Subtelna poświata */
}

.progress-bar {
    width: 100%;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
    margin-top: 6px;
}

.animate-step-2 {
    animation: smoothFadeInUp 1s cubic-bezier(0.22, 1, 0.36, 1) 1.2s forwards;
    opacity: 0;
}

.progress-fill {
    height: 100%;
    width: var(--progress);
    background-color: var(--primary-green);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    animation: fillTrigger 2.4s cubic-bezier(0.22, 1, 0.36, 1) 1.3s forwards, 
               pulseGlow 3s infinite ease-in-out 1.3s;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(
        90deg, 
        transparent, 
        rgba(255, 255, 255, 0.35), 
        transparent
    );
    transform: translateX(-100%);
    animation: shimmerEffect 2.2s infinite ease-in-out;
}

.animate-step-3 {
    animation: smoothFadeInUp 1.2s cubic-bezier(0.22, 1, 0.36, 1) 2.2s forwards;
    opacity: 0;
}

/* Klucze animacji */
@keyframes smoothFadeInUp {
    from { 
        opacity: 0; 
        transform: translateY(25px); 
        filter: blur(4px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
        filter: blur(0); 
    }
}

@keyframes fillTrigger {
    from { width: 0%; }
    to { width: var(--progress); }
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 6px rgba(24, 158, 123, 0.15); filter: brightness(1); }
    50% { box-shadow: 0 0 15px rgba(24, 158, 123, 0.4); filter: brightness(1.1); }
}

@keyframes shimmerEffect {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.status-subtext {
    margin-top: 1.3rem;
    font-size: 0.9em;
    color: var(--text-muted);
    line-height: 1.6;
    font-weight: 400;
}

/* ===== STOPKA Z NOWĄ CZCIONKĄ I DELIKATNĄ POŚWIATĄ ===== */
.footer {
    background-color: rgba(9, 11, 16, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 5rem 10% 2.5rem 10%;
    border-top: 1px solid var(--border-light);
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    text-align: left;
}

.footer-title {
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1.8rem;
    color: white;
    position: relative;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 24px;
    height: 2px;
    background-color: var(--primary-green);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 1rem;
}

/* ZMIENIONO: Czcionka Segoe UI Light dla wszystkich linków w stopce */
.footer-links a {
    font-family: "Segoe UI Light", "Segoe UI", sans-serif;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 300; 
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    display: inline-flex;
    align-items: center;
}

/* ZMIENIONO: Bardzo delikatna, profesjonalna poświata po najechaniu na linki */
.footer-links a:hover {
    color: var(--primary-green);
    transform: translateX(5px);
    text-shadow: 0 0 6px rgba(24, 158, 123, 0.4); /* Subtelne świecenie napisu */
}

.footer-socials {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.social-icon i {
    color: #cbd5e1; 
    font-size: 1.25rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icon:hover {
    border-color: var(--primary-green);
    background-color: rgba(24, 158, 123, 0.06);
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(24, 158, 123, 0.15);
}

.social-icon:hover i {
    color: var(--primary-green);
    transform: scale(1.05);
}

.footer-bottom {
    margin-top: 4rem;
}

.footer-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-light), transparent);
    margin-bottom: 2.2rem;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    text-align: center;
}

.copyright {
    font-size: 0.9rem;
    font-weight: 500;
    color: #cbd5e1;
}

.disclaimer {
    font-size: 0.78em;
    color: #52525b;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 400;
}

/* ===== RESPONSYWNOŚĆ MOBILNA ===== */
@media (max-width: 768px) {
    body { 
        background-attachment: scroll; 
    }
    
    .navbar { 
        flex-direction: row; 
        padding: 0.8rem 5%; 
        justify-content: space-between;
    }
    
    .logo {
        font-size: 1.25em;
    }

    .nav-actions {
        gap: 0.75rem;
    }

    .discord-btn { 
        padding: 0.55rem 0.85rem;
        font-size: 0.85rem;
        border-radius: 9px;
    }
    .discord-btn span {
        display: none; 
    }
    .discord-btn i {
        margin: 0;
        font-size: 1.15rem;
    }

    .lang-dropdown {
        width: 90px;
    }
    
    .lang-dropdown-content button {
        font-size: 0.8rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }
    
    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-links a {
        justify-content: center;
    }
    
    .footer-links a:hover {
        transform: translateY(-2px);
    }
    
    .footer-socials {
        justify-content: center;
    }
    
    .footer {
        padding: 4rem 6% 2rem 6%;
    }
}