* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #0e0e10;
    color: #efeff1;
    font-family: 'Press Start 2P', monospace;
    text-align: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 20px;
}

/* Wskaznik Live - LEWY GORNY ROG */
.live-status {
    position: fixed;
    top: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 6px;
    background: #18181b;
    border: 2px solid #303032;
    font-size: 10px;
    z-index: 1000;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.live-status.online {
    border-color: #00ff55;
    color: #00ff55;
}
.live-status.online .status-dot {
    background-color: #00ff55;
    box-shadow: 0 0 10px #00ff55;
    animation: pulse 1.5s infinite;
}

.live-status.offline {
    border-color: #ff4444;
    color: #adadb8;
}
.live-status.offline .status-dot {
    background-color: #ff4444;
    box-shadow: 0 0 6px #ff4444;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 85, 0.7); }
    70% { transform: scale(1.15); box-shadow: 0 0 0 8px rgba(0, 255, 85, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 85, 0); }
}

/* Panel Logowania / Profil - PRAWY GORNY ROG */
.auth-box {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.login-twitch-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 6px;
    background: #9146ff;
    color: #ffffff;
    text-decoration: none;
    font-size: 9px;
    border: 2px solid #772ce8;
    transition: 0.2s;
}

.login-twitch-btn:hover {
    background: #772ce8;
    box-shadow: 0 0 15px rgba(145, 70, 255, 0.4);
    transform: translateY(-2px);
}

.btn-twitch-icon {
    width: 14px;
    height: 14px;
}

.user-profile-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: 6px;
    background: #18181b;
    border: 2px solid #9146ff;
    color: #ffffff;
    text-decoration: none;
    font-size: 9px;
    transition: 0.2s;
}

.user-profile-btn:hover {
    background: #24242c;
    border-color: #ffcb05;
    box-shadow: 0 0 15px rgba(255, 203, 5, 0.3);
    transform: translateY(-2px);
}

.user-avatar-icon {
    width: 16px;
    height: 16px;
    color: #ffcb05;
}

.user-name {
    color: #ffcb05;
}

/* Kontener glowny */
.main-container {
    width: 100%;
    max-width: 1200px;
    margin-top: 50px;
}

.logo {
    color: #ffcb05;
    text-shadow: 4px 4px #3b4cca;
    font-size: 32px;
    margin-bottom: 25px;
}

/* Panel Live */
.stream-panel {
    display: flex;
    flex-direction: row;
    gap: 15px;
    width: 100%;
    height: 500px;
    background: #18181b;
    border: 3px solid #303032;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.7);
    margin-bottom: 35px;
}

.stream-box {
    flex: 7;
    height: 100%;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.chat-box {
    flex: 3;
    height: 100%;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.stream-box iframe,
.chat-box iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Kafelki nawigacji */
.nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    width: 100%;
}

.big-card {
    background: #18181b;
    border: 3px solid #303032;
    border-radius: 12px;
    padding: 35px 20px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    box-shadow: 0 6px 0 #121214;
    cursor: pointer;
}

.card-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 18px;
    transition: transform 0.25s ease;
}

.card-title {
    font-size: 16px;
    color: #ffffff;
}

/* Karta Twitch */
.twitch-card .card-icon { color: #a970ff; }
.twitch-card:hover {
    border-color: #9146ff;
    box-shadow: 0 8px 25px rgba(145, 70, 255, 0.35);
    transform: translateY(-5px);
}
.twitch-card:hover .card-title { color: #a970ff; }
.twitch-card:hover .card-icon { transform: scale(1.1); }

/* Karta Pokedex */
.pokedex-card .card-icon { color: #ffcb05; }
.pokedex-card:hover {
    border-color: #ffcb05;
    box-shadow: 0 8px 25px rgba(255, 203, 5, 0.35);
    transform: translateY(-5px);
}
.pokedex-card:hover .card-title { color: #ffcb05; }
.pokedex-card:hover .card-icon { transform: scale(1.1); }

/* Karta Komendy */
.commands-card .card-icon { color: #00ffff; }
.commands-card:hover {
    border-color: #00ffff;
    box-shadow: 0 8px 25px rgba(0, 255, 255, 0.35);
    transform: translateY(-5px);
}
.commands-card:hover .card-title { color: #00ffff; }
.commands-card:hover .card-icon { transform: scale(1.1); }

/* Responsywnosc */
@media (max-width: 850px) {
    .live-status, .auth-box {
        position: static;
        margin-bottom: 15px;
    }
    .stream-panel {
        flex-direction: column;
        height: auto;
    }
    .stream-box { height: 250px; }
    .chat-box { height: 380px; }
    .logo { font-size: 22px; }
}