/* ── Base: Reset, Variables, Typography, Loading ─────────────────────── */

:root {
    --bg: #0a0c12;
    --bg2: #11141e;
    --bg3: #1a1f2e;
    --bg4: #242a3d;
    --text: #e8eaed;
    --text2: #8b95a5;
    --accent: #facc15;
    --accent2: #ef4444;
    --blue: #3b82f6;
    --blue2: #1d4ed8;
    --green: #22c55e;
    --purple: #a855f7;
    --border: #1e2435;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 4px 24px rgba(0,0,0,.5);
    --font-display: 'Press Start 2P', cursive;
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

::selection { background: var(--accent); color: #000; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ── Cookie Banner ──────────────────────────────────────────────────── */
.cookie-bar {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(calc(100% + 32px));
    z-index: 9999;
    width: min(780px, calc(100vw - 32px));
    background: rgba(17, 20, 30, 0.92);
    border: 1px solid rgba(250, 204, 21, 0.18);
    border-radius: 16px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow:
        0 8px 40px rgba(0,0,0,.6),
        0 0 0 1px rgba(255,255,255,.04) inset,
        0 0 32px rgba(250,204,21,.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: transform .5s cubic-bezier(.22,1,.36,1), opacity .5s;
    opacity: 0;
}
.cookie-bar.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Pokébola decorativa */
.cookie-bar::before {
    content: '🍪';
    font-size: 1.6rem;
    flex-shrink: 0;
    filter: drop-shadow(0 0 8px rgba(250,204,21,.4));
}

.cookie-text { flex: 1; min-width: 0; }
.cookie-text strong {
    display: block;
    font-size: .9rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
    letter-spacing: .2px;
}
.cookie-text p {
    font-size: .8rem;
    color: var(--text2);
    line-height: 1.5;
    margin: 0;
}
.cookie-text a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}
.cookie-btn {
    padding: 10px 22px;
    border-radius: 10px;
    font-weight: 700;
    font-size: .82rem;
    border: none;
    cursor: pointer;
    transition: all .25s cubic-bezier(.34,1.56,.64,1);
    white-space: nowrap;
}
.cookie-btn.accept {
    background: linear-gradient(135deg, var(--accent), #eab308);
    color: #000;
    box-shadow: 0 4px 16px rgba(250,204,21,.25);
}
.cookie-btn.accept:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 6px 24px rgba(250,204,21,.4);
}
.cookie-btn.reject {
    background: rgba(255,255,255,.04);
    color: var(--text2);
    border: 1px solid rgba(255,255,255,.08);
}
.cookie-btn.reject:hover {
    color: var(--text);
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.15);
    transform: translateY(-1px);
}

@media (max-width: 640px) {
    .cookie-bar {
        bottom: 12px;
        flex-direction: column;
        padding: 16px;
        text-align: center;
        gap: 12px;
    }
    .cookie-bar::before { font-size: 1.3rem; }
    .cookie-actions { width: 100%; }
    .cookie-btn { flex: 1; }
}

.skeleton-block {
    background: linear-gradient(90deg, var(--bg3) 25%, var(--border) 50%, var(--bg3) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
    min-height: 60px;
    margin-bottom: 12px;
}

/* ── Loading Overlay ─────────────────────────────────────────────────── */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity .5s;
}
.loading-overlay.hidden { opacity: 0; pointer-events: none; }
.loading-content { text-align: center; }
.loading-pokeball {
    width: 60px; height: 60px;
    border-radius: 50%;
    background: linear-gradient(to bottom, var(--accent2) 50%, #fff 50%);
    border: 4px solid #333;
    margin: 0 auto 16px;
    animation: spin 1s infinite linear;
    position: relative;
}
.loading-pokeball::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 16px; height: 16px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #333;
}
