:root {
    --bg-color: #1a1622;
    --surface-color: #272236;
    --surface-hover: #322b46;
    --text-main: #f4f1f8;
    --text-muted: #a39bb3;
    --accent: #9d4edd;
    --accent-glow: rgba(157, 78, 221, 0.6);
    --glass-border: rgba(157, 78, 221, 0.3);
    --nav-height: 70px;

    --accent-warn: #ff5c6c;
    --accent-warn-glow: rgba(255, 92, 108, 0.5);
    --accent-soft: #c299f0;

    --radius-lg: 20px;  
    --radius-md: 14px; 
    --radius-sm: 10px;  
    --container: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
    background: var(--bg-color);
    color: var(--text-main);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

.wrap {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3, .display {
    font-family: 'Bebas Neue', 'Arial Narrow', sans-serif;
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 0.95;
}

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

:focus-visible {
    outline: 2px solid var(--accent-soft);
    outline-offset: 3px;
}

.bg-pattern {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.5;
    background-image:
        linear-gradient(var(--glass-border) 1px, transparent 1px),
        linear-gradient(90deg, var(--glass-border) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 10%, transparent 70%);
            mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 10%, transparent 70%);
}

.panel {
    background: var(--surface-color);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
}

nav {
    position: fixed;
    top: 0; width: 100%; height: var(--nav-height);
    padding: 0 40px;
    display: flex; justify-content: space-between; align-items: center;
    background: rgba(26, 22, 34, 0.9);
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

.logo-container { height: 40px; }
.logo-img { height: 100%; width: auto; object-fit: contain; }

.nav-links { display: flex; gap: 30px; }
.nav-links a {
    color: var(--text-main); text-decoration: none; font-weight: 800;
    font-size: 0.85rem; letter-spacing: 2px; text-transform: uppercase;
    position: relative; padding: 5px 0; transition: color 0.3s;
}
.nav-links a:hover { color: var(--accent); text-shadow: 0 0 10px var(--accent-glow); }

.nav-links a.active { color: var(--accent); text-shadow: 0 0 10px var(--accent-glow); }

#logo-text { display: none; font-family: 'Bebas Neue', sans-serif; font-size: 1.4rem; letter-spacing: 0.06em; color: var(--text-main); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--text-main); display: block; }

.hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--nav-height);
}

.hero .wrap {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
    align-items: center;
    width: 100%;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-soft);
    font-size: 0.92rem;
    font-weight: 500;
    margin-bottom: 1.1rem;
}
.hero-tag::before {
    content: '';
    width: 8px; height: 8px;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
    display: inline-block;
    border-radius: 50%;
}

.hero h1 {
    font-size: clamp(3.2rem, 8vw, 6.4rem);
    text-transform: uppercase;
}
.hero h1 .nick {
    color: var(--accent);
    display: block;
    font-size: 0.42em;
    letter-spacing: 0.08em;
    margin-bottom: 0.15em;
}

.hero-sub {
    margin-top: 1.1rem;
    color: var(--text-muted);
    font-size: 1.08rem;
    max-width: 46ch;
}

.hero-record {
    display: flex;
    gap: 1.8rem;
    margin-top: 2.2rem;
}
.hero-record div { text-align: left; }
.hero-record .num {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.6rem;
    color: var(--text-main);
}
.hero-record .num.win { color: var(--accent); }
.hero-record .num.loss { color: var(--accent-warn); }
.hero-record .lbl {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.hero-actions {
    margin-top: 2.4rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.btn {
    padding: 13px 26px;
    font-weight: 600;
    font-size: 0.94rem;
    border-radius: var(--radius-sm);
    transition: box-shadow 0.25s ease, transform 0.15s ease, background 0.2s ease;
    display: inline-block;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { box-shadow: 0 0 26px var(--accent-glow); transform: translateY(-2px); }
.btn-ghost {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-main);
}
.btn-ghost:hover { background: var(--surface-hover); border-color: var(--accent); }

.hero-photo-wrap {
    position: relative;
    aspect-ratio: 3/4;
    max-width: 420px;
    margin-left: auto;
}
.hero-photo-glow {
    position: absolute;
    inset: -10%;
    background: radial-gradient(circle at 60% 30%, var(--accent-glow), transparent 65%);
    filter: blur(10px);
    z-index: 0;
}
.hero-photo {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    background: linear-gradient(155deg, var(--surface-color), var(--bg-color));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    color: var(--text-muted);
    padding: 2rem;
    text-align: center;
}
.hero-photo-placeholder svg { width: 92px; height: 92px; opacity: 0.55; }
.hero-photo-placeholder span {
    font-size: 0.82rem;
    border: 1px dashed var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 6px 14px;
}

.tape {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    background: var(--surface-color);
}
.tape .wrap {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 1.8rem 24px;
}
.tape-item {
    text-align: center;
    border-left: 1px solid var(--glass-border);
    padding: 0 8px;
}
.tape-item:first-child { border-left: none; }
.tape-item .val {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.6rem;
    color: var(--accent-soft);
}
.tape-item .lbl {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 2px;
}

section { position: relative; z-index: 1; padding: 6.5rem 0; }

.section-head { max-width: 60ch; margin-bottom: 3rem; }
.section-head h2 {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    text-transform: uppercase;
}
.section-head p { color: var(--text-muted); margin-top: 0.7rem; font-size: 1.02rem; }

.stats-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3rem;
    align-items: center;
}

.donut-block { display: flex; flex-direction: column; align-items: center; gap: 1.6rem; }
.donut-wrap { position: relative; width: 260px; height: 260px; }
.donut-wrap svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.donut-wrap circle { fill: none; stroke-width: 26; }
.donut-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.donut-center .rate {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3rem;
    color: var(--text-main);
}
.donut-center .rate-lbl { font-size: 0.8rem; color: var(--text-muted); }

.legend { display: flex; gap: 1.6rem; flex-wrap: wrap; justify-content: center; }
.legend-item { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--text-muted); }
.legend-dot { width: 11px; height: 11px; display: inline-block; border-radius: 50%; }
.legend-item b { color: var(--text-main); font-weight: 600; }

.methods-panel { padding: 2.4rem; }
.methods-panel h3 {
    font-size: 1.4rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    margin-bottom: 1.6rem;
}
.method-row { margin-bottom: 1.35rem; }
.method-row:last-child { margin-bottom: 0; }
.method-row .m-top {
    display: flex;
    justify-content: space-between;
    font-size: 0.92rem;
    margin-bottom: 6px;
}
.method-row .m-top b { font-family: 'Bebas Neue', sans-serif; font-size: 1.1rem; letter-spacing: 0.02em; }
.m-bar-track { height: 8px; background: var(--bg-color); border-radius: 6px; overflow: hidden; }
.m-bar-fill { height: 100%; width: 0%; border-radius: 6px; transition: width 1.1s cubic-bezier(.2,.7,.2,1); }

.fight-list { display: flex; flex-direction: column; gap: 10px; }
.fight-row {
    display: grid;
    grid-template-columns: 56px 1.4fr 1.3fr 1fr auto;
    align-items: center;
    gap: 1.2rem;
    padding: 1.1rem 1.4rem;
    background: var(--surface-color);
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    transition: background 0.2s ease, border-color 0.2s ease;
}
.fight-row:hover { background: var(--surface-hover); border-color: var(--glass-border); }

.badge {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.05rem;
    color: #fff;
    border-radius: 50%;
}
.badge.win { background: var(--accent); }
.badge.loss { background: var(--accent-warn); }
.badge.draw { background: var(--text-muted); }
.badge.coming { background: var(--text-muted); }

.fight-opponent { font-weight: 600; }
.fight-opponent small { display: block; font-weight: 400; color: var(--text-muted); font-size: 0.82rem; margin-top: 2px; }
.fight-method { color: var(--text-muted); font-size: 0.92rem; }
.fight-event { color: var(--text-muted); font-size: 0.86rem; text-align: right; }
.fight-event b { display: block; color: var(--text-main); font-weight: 500; }

.about-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr;
    gap: 3.5rem;
}
.about-text p { color: var(--text-muted); margin-bottom: 1.1rem; max-width: 62ch; }
.about-quote {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.6rem;
    color: var(--accent-soft);
    border-left: 3px solid var(--accent);
    padding-left: 1.1rem;
    margin: 1.6rem 0;
    max-width: 34ch;
}
.facts { padding: 2rem; }
.facts .frow {
    display: flex;
    justify-content: space-between;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--glass-border);
    font-size: 0.94rem;
}
.facts .frow:last-child { border-bottom: none; }
.facts .frow span:first-child { color: var(--text-muted); }
.facts .frow span:last-child { font-weight: 600; }

footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 50px;
    background: #0f0d14;
    border-top: 1px solid var(--glass-border);
    color: #4b4263;
    font-size: 0.9rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-weight: 800;
}

.footer-container {
    display: flex;
    flex-direction: column;
}

.footer-contact {
    margin: 10px 0 30px 0;
}

.footer-contact a {
    text-decoration: none;
    transition: .3s;
    color: var(--text-muted);
}

.footer-contact a:hover {
    text-shadow: 0 0 10px var(--accent-glow);
    color: var(--accent);
}

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

.hero-anim > * { opacity: 0; animation: heroIn 0.8s ease forwards; }
.hero-anim > *:nth-child(1) { animation-delay: 0.05s; }
.hero-anim > *:nth-child(2) { animation-delay: 0.18s; }
.hero-anim > *:nth-child(3) { animation-delay: 0.31s; }
.hero-anim > *:nth-child(4) { animation-delay: 0.44s; }
.hero-anim > *:nth-child(5) { animation-delay: 0.57s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal, .hero-anim > * { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
    .m-bar-fill { transition: none !important; }
}

@media (max-width: 920px) {
    .hero .wrap { grid-template-columns: 1fr; }
    .hero-photo-wrap { max-width: 300px; margin: 0 auto; order: -1; }
    .tape .wrap { grid-template-columns: repeat(3, 1fr); row-gap: 1.4rem; }
    .tape-item:nth-child(3n+1) { border-left: none; }
    .stats-grid { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; }
    .fight-row { grid-template-columns: 44px 1fr; grid-template-areas: "badge opp" "badge method" "badge event"; row-gap: 4px; }
    .fight-event { text-align: left; }
}

@media (max-width: 700px) {
    .nav-links { display: none; }
    .nav-links.open {
        display: flex;
        position: fixed;
        top: var(--nav-height); left: 0; right: 0; bottom: 0;
        background: var(--bg-color);
        flex-direction: column;
        align-items: flex-start;
        padding: 2.5rem 24px;
        gap: 1.6rem;
        z-index: 99;
    }
    .nav-links.open a { font-size: 1.3rem; }
    .nav-toggle { display: flex; }
    .tape .wrap { grid-template-columns: repeat(2, 1fr); }
    .tape-item:nth-child(2n+1) { border-left: none; }
}

/* ============================================================
   DOPLNĚNO PRO /zapasnici/index.html (přehled zápasníků)
   Nic z pravidel výše se neupravovalo — tohle je jen přidané navíc.
   ============================================================ */

main { position: relative; z-index: 1; padding-top: var(--nav-height); }

.roster-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.2rem;
}

.roster-card {
    display: block;
    padding: 2.8rem 2.2rem;
    background: var(--surface-color);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.roster-card:hover { transform: translateY(-4px); border-color: var(--accent); background: var(--surface-hover); }

.roster-rank {
    display: inline-block;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    color: var(--accent-soft);
    background: rgba(157, 78, 221, 0.14);
    padding: 5px 16px;
    border-radius: 999px;
    margin-bottom: 1.6rem;
}

.roster-photo-wrap {
    width: 168px; height: 168px;
    margin: 0 auto 1.6rem;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    background: linear-gradient(155deg, var(--surface-hover), var(--bg-color));
}
.roster-photo-wrap img { width: 100%; height: 100%; object-fit: cover; }

.roster-name {
    font-size: 1.9rem;
    text-transform: uppercase;
    margin-bottom: 1.3rem;
}

.roster-record { display: flex; justify-content: center; gap: 1.7rem; margin-bottom: 0.9rem; }
.roster-record div { text-align: center; }
.roster-record .num {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.6rem;
    color: var(--text-main);
}
.roster-record .num.win { color: var(--accent); }
.roster-record .num.loss { color: var(--accent-warn); }
.roster-record .lbl { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }

.roster-fights { font-size: 0.9rem; color: var(--text-muted); }
