/* ═══════════════════════════════════════
   THEME TOKENS
═══════════════════════════════════════ */
[data-theme="dark"] {
    --accent:      #0af;
    --accent-dim:  rgba(0,170,255,.12);
    --accent-glow: rgba(0,170,255,.3);
    --bg:          #0a0a0f;
    --surface:     #13131a;
    --surface2:    #1c1c28;
    --border:      rgba(255,255,255,.07);
    --border-h:    rgba(0,170,255,.3);
    --text:        #e8e8f0;
    --text-dim:    #62627a;
    --grid:        rgba(0,170,255,.03);
    --radial:      rgba(0,170,255,.07);
    --toast-bg:    rgba(18,18,28,.96);
}

[data-theme="light"] {
    --accent:      #0077cc;
    --accent-dim:  rgba(0,119,204,.1);
    --accent-glow: rgba(0,119,204,.2);
    --bg:          #eef2f7;
    --surface:     #ffffff;
    --surface2:    #e2e8f2;
    --border:      rgba(0,0,0,.08);
    --border-h:    rgba(0,119,204,.3);
    --text:        #151525;
    --text-dim:    #657080;
    --grid:        rgba(0,119,204,.04);
    --radial:      rgba(0,119,204,.06);
    --toast-bg:    rgba(255,255,255,.97);
}

:root {
    --radius:  14px;
    --success: #00c853;
    --danger:  #f44336;
}

/* ═══════════════════════════════════════
   BASE
═══════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body::before {
    content: '';
    position: fixed; inset: 0;
    background-image:
        linear-gradient(var(--grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none; z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    top: -20%; left: 50%; transform: translateX(-50%);
    width: 800px; height: 500px;
    background: radial-gradient(ellipse, var(--radial) 0%, transparent 70%);
    pointer-events: none; z-index: 0;
}

/* ═══════════════════════════════════════
   HEADER (base)
═══════════════════════════════════════ */
header {
    position: relative; z-index: 10;
    text-align: center;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, var(--accent-dim) 0%, transparent 100%);
}

/* ═══════════════════════════════════════
   ICON BUTTON (theme toggle, nav links)
═══════════════════════════════════════ */
.icon-btn {
    display: flex; align-items: center; gap: 6px;
    padding: 6px 14px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 50px;
    color: var(--text-dim);
    font-family: 'Rajdhani', sans-serif;
    font-size: .8rem; font-weight: 600; letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none; cursor: pointer;
    transition: border-color .2s, color .2s, box-shadow .2s;
}

.icon-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 12px var(--accent-glow);
}

/* ═══════════════════════════════════════
   BACK LINK (← Powrót) – wspólny dla podstron
═══════════════════════════════════════ */
.back-link {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--accent); font-size: .8rem; letter-spacing: 2px; text-transform: uppercase;
    text-decoration: none; margin-bottom: 8px; opacity: .7; transition: opacity .2s;
}
.back-link:hover { opacity: 1; }

/* ═══════════════════════════════════════
   KEYFRAMES
═══════════════════════════════════════ */
@keyframes reveal  { to { opacity: 1; transform: translateY(0); } }
@keyframes blink   { 0%,100%{opacity:1} 50%{opacity:.35} }
@keyframes rainbow {
    0%   { background-position: 0 0; }
    50%  { background-position: 400% 0; }
    100% { background-position: 0 0; }
}
