/* Pokemania - odswiezony motyw (na bazie style4.css) */
:root {
    --pokemon-red: #e3350d;
    --pokemon-red-dark: #b3200a;
    --pokemon-blue: #3b4cca;
    --pokemon-yellow: #ffde00;
    --pokemon-dark: #1c1c24;
    --panel-bg: rgba(14, 14, 24, 0.78);
    --panel-border: rgba(255, 222, 0, 0.85);
    --text: #f5f5f5;
    --text-muted: #c9c9d6;
    --radius: 14px;
}

html, body { height: 100%; }
/* animacje wjazdu kart (animate.css) chwilowo wychodza poza ekran - bez poziomego przewijania */
html, body { overflow-x: clip; }

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    color: var(--text);
    font-family: 'Pixelify Sans', system-ui, sans-serif;
    font-size: 1.05rem;
    background: #0a0a14;
}

/* ---------- Tlo: ciemna "nocna" scena z poswiata i wzorem pokeballi ---------- */
/* Warstwa 1: kolorowe poswiaty + delikatny wzor pokeballi */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        radial-gradient(ellipse 60% 50% at 10% 0%, rgba(227, 53, 13, 0.22), transparent 70%),
        radial-gradient(ellipse 55% 45% at 95% 30%, rgba(59, 76, 202, 0.28), transparent 70%),
        radial-gradient(ellipse 70% 50% at 50% 110%, rgba(124, 58, 237, 0.22), transparent 70%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.04' stroke-width='2'%3E%3Ccircle cx='40' cy='40' r='22'/%3E%3Cpath d='M18 40h14M48 40h14'/%3E%3Ccircle cx='40' cy='40' r='7'/%3E%3Ccircle cx='120' cy='120' r='22'/%3E%3Cpath d='M98 120h14M128 120h14'/%3E%3Ccircle cx='120' cy='120' r='7'/%3E%3C/g%3E%3C/svg%3E"),
        linear-gradient(180deg, #0d0d1c 0%, #0a0a14 55%, #07070e 100%);
    background-size: auto, auto, auto, 160px 160px, auto;
}

/* Warstwa 2: migoczace gwiazdy */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        radial-gradient(1px 1px at 12% 18%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1px 1px at 27% 72%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1.5px 1.5px at 41% 33%, rgba(255, 222, 0, 0.7), transparent),
        radial-gradient(1px 1px at 58% 84%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 66% 12%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1.5px 1.5px at 79% 58%, rgba(147, 197, 253, 0.8), transparent),
        radial-gradient(1px 1px at 88% 26%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1px 1px at 93% 88%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 5% 92%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1.5px 1.5px at 35% 52%, rgba(255, 255, 255, 0.4), transparent);
    background-size: 600px 600px;
    animation: twinkle 6s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: 0.45; } to { opacity: 1; } }

a { color: var(--pokemon-yellow); }
a:hover { color: #fff3a0; }

.pokemon-font {
    font-family: 'Press Start 2P', monospace;
    text-shadow: 3px 3px 0 var(--pokemon-dark);
    line-height: 1.5;
}

/* ---------- Naglowek ---------- */
.site-header {
    background: linear-gradient(135deg, rgba(59, 76, 202, 0.96), rgba(28, 28, 36, 0.96));
    border-bottom: 4px solid var(--pokemon-yellow);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(6px);
}

.navbar-brand { font-size: 1rem; }
.brand-ball { transition: transform 0.6s; }
.navbar-brand:hover .brand-ball { transform: rotate(360deg); }

.nav-link {
    color: #fff !important;
    position: relative;
    padding: 10px 14px !important;
    transition: color 0.2s, transform 0.2s;
}
.nav-link:hover, .nav-link.active { color: var(--pokemon-yellow) !important; }
.nav-link:hover { transform: translateY(-2px); }
.nav-link::after {
    content: '';
    position: absolute;
    left: 14px; right: 14px; bottom: 2px;
    height: 3px;
    background: var(--pokemon-yellow);
    transform: scaleX(0);
    transition: transform 0.25s;
}
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

.lang-switch .nav-link::after { display: none; }
.lang-switch img { border-radius: 2px; opacity: 0.55; transition: opacity 0.2s, transform 0.2s; }
.lang-switch .current img, .lang-switch a:hover img { opacity: 1; transform: scale(1.15); }

/* ---------- Panele / karty ---------- */
.panel, .card {
    background: var(--panel-bg);
    border: 2px solid var(--panel-border);
    border-radius: var(--radius);
    color: var(--text);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

.feature-card { transition: transform 0.25s, box-shadow 0.25s; }
.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 14px 30px rgba(255, 222, 0, 0.25);
}
.side-card { transition: box-shadow 0.25s; }
.side-card:hover { box-shadow: 0 10px 26px rgba(255, 222, 0, 0.18); }

.card-header { border-bottom: 2px solid var(--panel-border); font-size: 0.8rem; padding: 0.85rem 1rem; }
.small-header { font-size: 0.7rem; overflow-x: auto; }
.card-title { color: var(--pokemon-yellow); font-size: 0.95rem; }

.hero-title { font-size: clamp(1.1rem, 3.2vw, 2rem); }

/* ---------- Przyciski ---------- */
.btn-pokemon {
    position: relative;
    overflow: hidden;
    background: var(--pokemon-red);
    color: #fff;
    border: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.25s, transform 0.2s;
}
.btn-pokemon:hover, .btn-pokemon:focus { background: var(--pokemon-blue); color: #fff; transform: translateY(-2px); }
.btn-pokemon::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.5s;
}
.btn-pokemon:hover::before { left: 100%; }

.btn-outline-warning { font-weight: 700; }

/* ---------- Formularze ---------- */
.form-dark, .form-dark:focus {
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    border: 1px solid rgba(255, 222, 0, 0.5);
}
.form-dark:focus { border-color: var(--pokemon-yellow); box-shadow: 0 0 0 0.2rem rgba(255, 222, 0, 0.25); }
.form-dark::placeholder { color: var(--text-muted); }

/* ---------- Listy / ranking ---------- */
.list-group-item {
    background: rgba(0, 0, 0, 0.45);
    color: var(--text);
    border-color: rgba(255, 222, 0, 0.35);
}
.ranking-list .list-group-item:nth-child(1) { background: rgba(255, 222, 0, 0.18); }
.ranking-list .list-group-item:nth-child(2) { background: rgba(192, 192, 192, 0.16); }
.ranking-list .list-group-item:nth-child(3) { background: rgba(205, 127, 50, 0.18); }
.player-link { color: #fff; text-decoration: none; }
.player-link:hover { color: var(--pokemon-yellow); }

/* ---------- Status serwera ---------- */
.server-info-list li { padding: 4px 0; }
.server-status.online { color: #4ade80; font-weight: 700; }
.server-status.offline { color: #f87171; font-weight: 700; }
.server-status.online i { animation: pulse 1.6s infinite; }
.server-link { color: var(--text); text-decoration: none; }
.server-link:hover { color: var(--pokemon-yellow); }

@keyframes pulse { 50% { opacity: 0.35; } }

/* ---------- Social ---------- */
.social-icon {
    display: inline-block;
    font-size: 1.6rem;
    margin: 0 10px;
    color: #fff;
    transition: color 0.2s, transform 0.2s;
}
.social-icon:hover { color: var(--pokemon-yellow); transform: scale(1.2) rotate(10deg); }

/* ---------- Pokeball / dekoracje ---------- */
.pokeball-icon { flex-shrink: 0; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.5)); }
.pokeball-divider { text-align: center; margin: 30px 0; }
.pokeball-divider .pokeball-icon, .spin { animation: spin 6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.section-title-wrap { font-size: clamp(0.95rem, 2.4vw, 1.4rem); }
.section-title { position: relative; display: inline-block; padding-bottom: 12px; }
.section-title::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--pokemon-red), var(--pokemon-yellow), var(--pokemon-blue));
}

/* ---------- Galeria ---------- */
.carousel-control-prev-icon, .carousel-control-next-icon {
    background-color: var(--pokemon-red);
    border-radius: 50%;
    padding: 15px;
}
.gallery-thumb {
    width: 80px;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 222, 0, 0.5);
    transition: transform 0.2s, border-color 0.2s;
}
.gallery-thumb:hover { transform: translateY(-3px); border-color: var(--pokemon-yellow); }

/* ---------- Uklad ---------- */
.sticky-sidebar { position: sticky; top: 90px; }

.site-footer {
    margin-top: auto;
    background: linear-gradient(135deg, rgba(59, 76, 202, 0.96), rgba(28, 28, 36, 0.96));
    border-top: 3px solid var(--pokemon-yellow);
    padding: 16px 0;
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--pokemon-yellow); }

@media (max-width: 991.98px) {
    .sticky-sidebar { position: static; }
    .navbar-collapse { padding-bottom: 10px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
