/* --- OGÓLNE USTAWIENIA I CZCIONKI --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: 'Burbank';
    src: url('czcionki/Burbank Big Condensed Bold.woff') format('woff');
}
@font-face {
    font-family: 'Sans';
    src: url('czcionki/JosefinSans-VariableFont_wght.ttf') format('truetype');
}

body {
    color: white;
    background-color: #1f1e1e;
    font-family: 'Sans', Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
}

/* --- TŁO I NAWIGACJA --- */
.animated-bg {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: linear-gradient(-45deg, #1a1a1a, #2c3e50, #1a1a1a, #34495e);
    background-size: 400% 400%;
    animation: gradientBG 20s ease infinite; z-index: -2;
}
@keyframes gradientBG {
    0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; }
}
.particles { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

.nav-bar {
    position: fixed; top: 0; left: 0; width: 100%; height: 60px;
    background-color: rgba(20, 20, 20, 0.7); display: flex;
    justify-content: center; align-items: center;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
    z-index: 1000; backdrop-filter: blur(10px);
}
.nav-links { list-style: none; display: flex; margin: 0; padding: 0; }
.nav-links li { margin: 0 15px; }
.nav-link {
    text-decoration: none; color: white; font-size: 18px; font-weight: bold;
    position: relative; padding: 5px 0; transition: color 0.3s ease;
}
.nav-link::after {
    content: ''; position: absolute; width: 0; height: 2px;
    bottom: -5px; left: 50%; transform: translateX(-50%);
    background-color: #00bfff; transition: width 0.3s ease;
}
.nav-link:hover { color: #00bfff; }
.nav-link:hover::after { width: 100%; }
.menu-toggle { display: none; }

/* --- GŁÓWNY KONTENER I KARTA STATUSU --- */
main {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.status-card {
    max-width: 600px;
    width: 100%;
    background-color: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    text-align: center;
    /* ZMIANA: Dodajemy domyślne obramowanie i płynne przejście */
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: border-color 0.5s ease;
    opacity: 0;
    transform: scale(0.95);
    animation: fadeIn 1s ease-out forwards;
}

@keyframes fadeIn {
    to { opacity: 1; transform: scale(1); }
}

h1 {
    font-family: 'Burbank', sans-serif;
    font-size: 2.5rem;
    color: #00bfff;
    margin-bottom: 30px;
}

.status-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

#status-indicator {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #555; /* Kolor domyślny (ładowanie) */
    transition: background-color 0.5s ease;
}

/* --- ZMIANA: NOWE STYLE DLA KARTY I KROPKI --- */

/* Styl dla karty, gdy jest ONLINE */
.status-card.status-online {
    border-color: #2ecc71; /* Zielone obramowanie */
}
/* Styl dla kropki, gdy jest ONLINE */
.status-card.status-online #status-indicator {
    background-color: #2ecc71; /* Zielona kropka */
    animation: pulse-green 2s infinite;
}

/* Styl dla karty, gdy jest OFFLINE */
.status-card.status-offline {
    border-color: #6c757d; /* Szare obramowanie */
}
/* Styl dla kropki, gdy jest OFFLINE */
.status-card.status-offline #status-indicator {
    background-color: #6c757d; /* Szara kropka */
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(46, 204, 113, 0); }
    100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}

#status-text {
    font-family: 'Burbank', sans-serif;
    font-size: 4rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

#status-description {
    font-size: 1.1rem;
    color: #b0b0b0;
    line-height: 1.6;
}

/* --- RESPONSYWNOŚĆ I MENU MOBILNE --- */
@media screen and (max-width: 768px) {
    .nav-bar ul {
        position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
        background-color: rgba(20, 20, 20, 0.95); display: none;
        flex-direction: column; justify-content: center; align-items: center;
    }
    .nav-bar ul.show { display: flex; }
    .menu-toggle {
        display: flex; flex-direction: column; cursor: pointer;
        position: absolute; right: 20px; z-index: 1001;
        width: 30px; height: 21px; justify-content: space-between;
    }
    .menu-toggle .bar { width: 30px; height: 3px; background-color: white; border-radius: 5px; transition: all 0.3s ease-in-out; }
    .menu-toggle.active .bar:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
    .menu-toggle.active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.active .bar:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }
    h1 { font-size: 2rem; }
    #status-text { font-size: 3rem; }
}
