:root {
    /* Barvy */
    --bg-primary: #0d0d0d;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #252525;

    --text-primary: #e0e0e0;
    --text-secondary: #a0a0a0;
    --text-muted: #6a6a6a;

    --accent-primary: #c084fc;
    --accent-secondary: #8b5cf6;
    --accent-gradient: linear-gradient(135deg, #8b5cf6 0%, #c084fc 100%);

    --border-color: #3a3a3a;
    --scrollbar-thumb: #8b5cf6;
    --scrollbar-track: #1a1a1a;

    --status-ok: #4ade80;
    --status-warn: #fbbf24;

    /* Typografie */
    --font-main: 'JetBrains Mono', 'Fira Code', monospace;
    --font-size-base: 18px;
    --line-height: 1.6;

    /* Prostor */
    --max-width: 800px;
    --container-padding: 0 20px;
    --section-gap: 2em;
}

/* ===== BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    font-size: var(--font-size-base);
    line-height: var(--line-height);
    background: var(--bg-primary) url('bg-pattern.png') repeat;
    color: var(--text-primary);
    min-height: 100vh;
    padding: 1rem 0;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 0.5em;
    line-height: 1.2;
    font-weight: 600;
}

h1 {
    font-size: clamp(2rem, 5vw, 2.5rem);
    color: var(--accent-primary);
    margin-top: 1em;
    text-shadow: 0 0 8px rgba(192, 132, 252, 0.3);
}

h2 {
    font-size: clamp(1.5rem, 4vw, 1.8rem);
    color: var(--accent-secondary);
    border-bottom: 2px solid var(--accent-secondary);
    padding-bottom: 0.3em;
    margin-top: var(--section-gap);
}

h3 {
    font-size: 1.3rem;
    color: var(--text-primary);
}

p {
    margin: 1em 0;
    text-align: justify;
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
}

a:hover {
    color: var(--accent-secondary);
    text-shadow: 0 0 4px rgba(192, 132, 252, 0.5);
}

a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: width 0.3s ease;
}

a:hover::after {
    width: 100%;
}

code, pre {
    font-family: var(--font-main);
    background: var(--bg-secondary);
    border-radius: 4px;
}

code {
    padding: 0.2em 0.4em;
    font-size: 0.9em;
}

pre {
    padding: 1em;
    overflow-x: auto;
    margin: 1em 0;
    border-left: 3px solid var(--accent-secondary);
}

blockquote {
    border-left: 4px solid var(--accent-secondary);
    padding-left: 1em;
    margin: 1em 0;
    color: var(--text-secondary);
    font-style: italic;
}

/* ===== LAYOUT ===== */
main, header {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--container-padding);
}

section {
    margin-bottom: var(--section-gap);
}

/* ===== COMPONENTS ===== */
.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 1em 0;
    justify-content: center;
}

.badges img {
    image-rendering: pixelated;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: var(--bg-secondary);
    padding: 2px;
}

.badges img:hover {
    transform: scale(1.1);
    box-shadow: 0 0 8px var(--accent-secondary);
    border-color: var(--accent-secondary);
}

hr {
    border: none;
    height: 4px;
    background: repeating-linear-gradient(
        90deg,
        var(--accent-secondary) 0 8px,
        transparent 8px 16px
    );
    margin: var(--section-gap) 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.6em 1.2em;
    background: var(--accent-gradient);
    color: white;
    border: none;
    border-radius: 6px;
    font-family: var(--font-main);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.btn:active {
    transform: translateY(0);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
}

::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border: 3px solid var(--scrollbar-track);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    :root {
        --font-size-base: 16px;
        --container-padding: 0 16px;
        --max-width: 95%;
    }

    body {
        font-size: var(--font-size-base);
    }

    .badges {
        gap: 6px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.4rem;
    }
}

.quote {
    color: var(--accent-primary);
    font-style: italic;
    text-align: center;
}

footer {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9em;
    padding: 1em 0 2em;
}

.security-footer {
    font-size: 0.85em;
    margin-top: 0.5em;
}

.security-footer a {
    color: var(--text-secondary);
}

.security-footer a:hover {
    color: var(--accent-primary);
}

.meta {
    color: var(--text-muted);
    font-size: 0.9em;
}

/* ===== NAV ===== */
.site-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4em 1em;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1em 20px 0;
    font-size: 0.9em;
}

.site-nav a {
    color: var(--text-secondary);
}

.site-nav a:hover {
    color: var(--accent-primary);
}

.site-nav a:first-child {
    color: var(--accent-primary);
    font-weight: 600;
}

/* ===== ASCII LOGO ===== */
.ascii-logo {
    color: var(--accent-primary);
    background: none;
    border: none;
    padding: 0;
    margin: 0.5em 0 0;
    font-size: clamp(0.6rem, 2vw, 1rem);
    line-height: 1.2;
    text-shadow: 0 0 8px rgba(192, 132, 252, 0.3);
    overflow-x: auto;
}

/* ===== VERIFY LIST ===== */
.verify-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5em;
    margin: 1em 0;
}

.verify-list li {
    color: var(--status-ok);
}

.verify-list a {
    color: var(--text-primary);
}

.verify-list a:hover {
    color: var(--accent-primary);
}

/* ===== BREACH COUNTER ===== */
.breach-counter {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--status-ok);
    padding: 1em;
    text-align: center;
    border-radius: 4px;
}

.breach-counter-label {
    display: block;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8em;
}

.breach-counter-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--status-ok);
    text-shadow: 0 0 10px rgba(74, 222, 128, 0.4);
    margin: 0.1em 0;
}

.breach-counter .meta {
    display: block;
}

/* ===== TERMINAL (status.html) ===== */
.terminal {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 1em;
    margin: 1em 0;
}

.terminal-line {
    margin: 0.3em 0;
    text-align: left;
    white-space: pre-wrap;
}

.terminal-line.ok {
    color: var(--status-ok);
}

.terminal-line.warn {
    color: var(--status-warn);
}

/* ===== CHANGELOG ===== */
.changelog-entry {
    margin: 1.5em 0;
    padding-bottom: 1em;
    border-bottom: 1px solid var(--border-color);
}

.changelog-entry h3 {
    color: var(--accent-primary);
}

.changelog-date {
    color: var(--text-muted);
    font-size: 0.7em;
    font-weight: 400;
}

.changelog-entry ul {
    margin: 0.5em 0 0 1.2em;
    color: var(--text-secondary);
}

/* ===== WALL OF SHAME/FAME ===== */
.wall-list {
    margin: 0.5em 0 1.5em 1.2em;
    color: var(--text-secondary);
}

.wall-list li {
    margin: 0.5em 0;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* ===== KONAMI EASTER EGG ===== */
@keyframes konamiPulse {
    0%, 100% { filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(60deg); }
}

body.konami-active {
    animation: konamiPulse 1s ease-in-out infinite;
}

.konami-toast {
    position: fixed;
    left: 50%;
    bottom: 2em;
    transform: translateX(-50%);
    background: var(--bg-secondary);
    border: 1px solid var(--accent-secondary);
    color: var(--accent-primary);
    padding: 0.8em 1.4em;
    border-radius: 6px;
    font-family: var(--font-main);
    font-size: 0.9em;
    box-shadow: 0 0 16px rgba(139, 92, 246, 0.5);
    z-index: 999;
    animation: fadeIn 0.3s ease forwards;
}