/* Pokemania - nowa strona glowna (tylko home.html) */
.home-main > .alert { max-width: 1296px; margin: 1rem auto; }

/* ---------- Hero ---------- */
.home-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(32px, 5vw, 64px) 0 clamp(90px, 11vw, 140px);
    background:
        radial-gradient(ellipse at 20% 30%, rgba(227, 53, 13, 0.35), transparent 55%),
        radial-gradient(ellipse at 85% 70%, rgba(59, 76, 202, 0.45), transparent 55%),
        linear-gradient(180deg, rgba(12, 12, 22, 0.55), rgba(12, 12, 22, 0.92)),
        var(--hero-img) center / cover no-repeat;
    border-bottom: 4px solid var(--pokemon-yellow);
}

.hero-ball {
    position: absolute;
    opacity: 0.08;
    pointer-events: none;
    animation: spin 40s linear infinite;
}
.hero-ball-1 { width: 420px; height: 420px; right: -120px; top: -140px; }
.hero-ball-2 { width: 220px; height: 220px; left: -80px; bottom: -60px; animation-direction: reverse; }

/* Logo wysrodkowane nad tekstem i panelem logowania */
.hero-logo {
    position: relative;
    z-index: 2;
    display: block;
    width: min(92%, 600px);
    height: auto;
    margin: 0 auto clamp(28px, 4vw, 48px);
    filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.65)) drop-shadow(0 0 34px rgba(59, 76, 202, 0.4));
    animation: logo-float 5s ease-in-out infinite;
}
@keyframes logo-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
.home-hero .row { position: relative; z-index: 1; }
/* panel logowania troche nizej niz poczatek tekstu */
@media (min-width: 992px) { .home-hero .glass-card { margin-top: 36px; } }

.hero-heading {
    font-size: clamp(1rem, 2.6vw, 1.7rem);
    color: var(--pokemon-yellow);
    text-shadow: 4px 4px 0 var(--pokemon-red-dark), 8px 8px 0 rgba(0, 0, 0, 0.45);
    margin: 22px 0 20px;
}
.hero-lead { font-size: clamp(1.1rem, 2vw, 1.4rem); color: var(--text-muted); max-width: 36ch; margin-bottom: 28px; }

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.95rem;
    text-decoration: none;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid currentColor;
    backdrop-filter: blur(4px);
}
.status-pill strong { color: #fff; }
.status-pill .sep { opacity: 0.5; }
.status-pill .dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.status-pill.online { color: #4ade80; }
.status-pill.online .dot { animation: pulse 1.6s infinite; }
.status-pill.offline { color: #f87171; }

/* panel logowania w hero */
.glass-card {
    padding: 28px;
    border-radius: 18px;
    background: rgba(14, 14, 26, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-top: 4px solid var(--pokemon-red);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}
.glass-card-title { font-size: 0.8rem; color: var(--pokemon-yellow); margin-bottom: 20px; }
.input-icon { position: relative; }
.input-icon i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }
.input-icon .form-control { padding: 0.7rem 0.9rem 0.7rem 40px; }

/* ---------- Statystyki ---------- */
.stats-strip { position: relative; margin-top: -56px; z-index: 2; }
.stat-tile {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 18px 20px;
    border-radius: 14px;
    text-decoration: none;
    color: var(--text);
    background: rgba(18, 18, 30, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
    transition: transform 0.2s, border-color 0.2s;
}
a.stat-tile:hover { transform: translateY(-4px); border-color: var(--pokemon-yellow); color: var(--text); }
.stat-icon { font-size: 1.2rem; margin-bottom: 10px; }
.stat-value { font-family: 'Press Start 2P', monospace; font-size: clamp(1rem, 2.4vw, 1.5rem); color: #fff; line-height: 1.4; }
.stat-value-text { font-size: clamp(0.75rem, 1.6vw, 1rem); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stat-label { color: var(--text-muted); font-size: 0.95rem; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-green { color: #4ade80; }
.c-blue { color: #7c8cff; }
.c-yellow { color: var(--pokemon-yellow); }
.c-red { color: #ff6b4a; }

/* ---------- Sekcje ---------- */
.home-section { padding-top: clamp(48px, 7vw, 80px); }
.home-section-title {
    font-size: clamp(0.95rem, 2.2vw, 1.3rem);
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.home-section-title::before {
    content: '';
    width: 6px;
    height: 1.6em;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--pokemon-red), var(--pokemon-yellow));
}

/* karty "typow" Pokemonow */
.type-card {
    --type: #ff6b4a;
    height: 100%;
    padding: 28px 24px;
    border-radius: 16px;
    background:
        linear-gradient(160deg, color-mix(in srgb, var(--type) 22%, transparent), transparent 60%),
        rgba(16, 16, 28, 0.88);
    border: 1px solid color-mix(in srgb, var(--type) 45%, transparent);
    transition: transform 0.25s, box-shadow 0.25s;
}
.type-card:hover { transform: translateY(-6px); box-shadow: 0 16px 36px color-mix(in srgb, var(--type) 30%, transparent); }
.type-fire { --type: #ff6b4a; }
.type-water { --type: #5b8cff; }
.type-electric { --type: #ffde00; }
.type-icon {
    width: 64px; height: 64px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 1.7rem;
    color: var(--pokemon-dark);
    background: var(--type);
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--type) 25%, transparent);
    margin-bottom: 20px;
}
.type-card h3 { font-size: 0.85rem; color: #fff; margin-bottom: 12px; }
.type-card p { color: var(--text-muted); margin: 0; }

/* ---------- Podium ---------- */
.podium {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: end;
    gap: 14px;
    max-width: 760px;
    margin: 0 auto;
}
.podium-place {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 0;
    text-decoration: none;
    color: #fff;
}
.podium-place:hover { color: var(--pokemon-yellow); }
.place-1 { order: 2; --medal: #ffd84a; --h: 150px; }
.place-2 { order: 1; --medal: #cfd6e4; --h: 110px; }
.place-3 { order: 3; --medal: #e0975a; --h: 84px; }
.podium-avatar { position: relative; display: grid; place-items: center; width: 74px; height: 74px; border-radius: 50%; background: rgba(0, 0, 0, 0.45); border: 3px solid var(--medal); transition: transform 0.25s; }
.podium-place:hover .podium-avatar { transform: rotate(-12deg) scale(1.06); }
.podium-crown { position: absolute; top: -22px; color: var(--medal); font-size: 1.3rem; filter: drop-shadow(0 0 6px var(--medal)); }
.podium-name { font-weight: 700; font-size: 1.1rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium-level { color: var(--medal); font-size: 0.95rem; }
.podium-block {
    width: 100%;
    height: var(--h);
    margin-top: 8px;
    display: grid;
    place-items: center;
    font-size: 1.6rem;
    color: var(--medal);
    border-radius: 12px 12px 0 0;
    background: linear-gradient(180deg, color-mix(in srgb, var(--medal) 30%, transparent), rgba(16, 16, 28, 0.9));
    border: 1px solid color-mix(in srgb, var(--medal) 50%, transparent);
    border-bottom: none;
}
.runner-up-list { max-width: 760px; margin: 0 auto; padding: 0; list-style: none; counter-reset: rank 3; border-top: 3px solid var(--pokemon-yellow); }
.runner-up-list li {
    counter-increment: rank;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
    background: rgba(16, 16, 28, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.runner-up-list li::before { content: '#' counter(rank); color: var(--text-muted); width: 2.5ch; }
.runner-up-list li a { color: #fff; text-decoration: none; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.runner-up-list li a:hover { color: var(--pokemon-yellow); }
.runner-up-list li span { color: var(--text-muted); }

/* ---------- Galeria bento ---------- */
.bento {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 170px;
    gap: 12px;
}
.bento-item {
    position: relative;
    padding: 0;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #000;
    cursor: zoom-in;
}
.bento-item:first-child { grid-column: span 2; grid-row: span 2; }
.bento-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s, opacity 0.3s; opacity: 0.88; }
.bento-item i { position: absolute; right: 12px; bottom: 12px; color: #fff; opacity: 0; transition: opacity 0.2s; text-shadow: 0 2px 6px #000; }
.bento-item:hover img, .bento-item:focus-visible img { transform: scale(1.06); opacity: 1; }
.bento-item:hover i, .bento-item:focus-visible i { opacity: 1; }
.bento-item:focus-visible { outline: 3px solid var(--pokemon-yellow); outline-offset: 2px; }

.gallery-modal { background: #000; border: 2px solid var(--pokemon-yellow); }
.gallery-modal .btn-close { position: absolute; top: 12px; right: 12px; z-index: 5; }

/* ---------- Spolecznosc ---------- */
.community-band {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: clamp(28px, 5vw, 44px);
    border-radius: 20px;
    background: linear-gradient(120deg, #4752c4, #2b2f77 60%, #1c1c30);
    border: 1px solid rgba(255, 255, 255, 0.15);
    margin-bottom: clamp(40px, 6vw, 70px);
}
.community-band h2 { font-size: clamp(0.9rem, 2vw, 1.2rem); margin-bottom: 12px; }
.community-band p { color: #dfe2ff; max-width: 48ch; }
.community-bg-icon { position: absolute; right: -30px; bottom: -50px; font-size: 220px; color: rgba(255, 255, 255, 0.06); pointer-events: none; }
.community-actions { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.btn-discord { background: #fff; color: #4752c4; font-weight: 700; transition: transform 0.2s, box-shadow 0.2s; }
.btn-discord:hover { background: #fff; color: #2b2f77; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35); }
.community-socials { display: flex; gap: 18px; font-size: 1.4rem; }
.community-socials a { color: #fff; transition: color 0.2s, transform 0.2s; }
.community-socials a:hover { color: var(--pokemon-yellow); transform: scale(1.2); }

/* ---------- Mobile ---------- */
@media (max-width: 767.98px) {
    .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 120px; }
    .podium { gap: 8px; }
    .podium-avatar { width: 56px; height: 56px; }
    .podium-avatar svg { width: 32px; height: 32px; }
    .podium-name { font-size: 0.95rem; }
    .place-1 { --h: 110px; } .place-2 { --h: 80px; } .place-3 { --h: 60px; }
    .community-band { flex-direction: column; align-items: flex-start; }
    .community-actions { align-items: flex-start; }
}
