/* ═══════════════════════════════════════════════════
   KPD – Karate Pro Dospělé
   JKA Karate Theme — Refined Japanese Martial Arts
   Mobile-first | Dark crimson & ink black
   ═══════════════════════════════════════════════════ */

/* --- Keyframes --- */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes brushReveal {
    from { clip-path: inset(0 100% 0 0); }
    to { clip-path: inset(0 0 0 0); }
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(139, 26, 26, 0); }
    50% { box-shadow: 0 0 20px 4px rgba(139, 26, 26, 0.15); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* --- Design Tokens --- */
:root {
    /* Core palette */
    --crimson: #8b1a1a;
    --crimson-deep: #5c1111;
    --crimson-light: #a82828;
    --crimson-glow: rgba(139, 26, 26, 0.12);
    --ink: #0d0d0d;
    --ink-soft: #1a1a1e;
    --ink-mid: #2a2a30;
    --charcoal: #3d3d44;
    --stone: #6b6b74;
    --ash: #9a9aa4;
    --mist: #c8c8d0;
    --rice: #f5f3ef;
    --rice-warm: #faf8f4;
    --parchment: #fffefa;
    --gold: #c9a84c;
    --gold-pale: #e8d9a0;
    --gold-glow: rgba(201, 168, 76, 0.15);

    /* Semantic */
    --bg: var(--rice);
    --bg-alt: var(--rice-warm);
    --surface: var(--parchment);
    --text: var(--ink-soft);
    --text-secondary: var(--charcoal);
    --text-muted: var(--stone);
    --border: #e0ddd6;
    --border-light: #ece9e2;

    /* Status */
    --success: #2d7a4f;
    --success-bg: #edf7f0;
    --error: #b91c1c;
    --error-bg: #fef2f2;
    --info: #1e5f8a;
    --info-bg: #eff6ff;
    --training: #1d5fa8;
    --tournament: #b91c1c;
    --deadline: #b45309;
    --social: #2d7a4f;
    --seminar: #7c3aed;

    /* Elevation */
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.07), 0 1px 4px rgba(0,0,0,0.04);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.1), 0 4px 12px rgba(0,0,0,0.06);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.15), 0 8px 20px rgba(0,0,0,0.08);

    /* Shape */
    --radius-xs: 6px;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;

    /* Motion */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration-fast: 0.15s;
    --duration: 0.25s;
    --duration-slow: 0.4s;

    /* Typography */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Noto Serif', Georgia, serif;

    /* Layout */
    --bottom-nav-h: 68px;
    --navbar-h: 58px;
}

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

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    height: 100%;
    /* Vypne zoom dvojklepem (pinch-zoom zůstává) — dvojklep jinak stránku
       přizoomuje a v PWA se pak špatně vrací zpět. */
    touch-action: manipulation;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

a { color: inherit; }

img {
    max-width: 100%;
    display: block;
}
