/* ===== WWC BRAND GUIDELINES ===== */
:root {
    --color-primary-red: #E41C1C;
    --color-magenta: #C93EFF;
    --color-graphite: #0E0E0E; /* <<< ZÁKLADNÍ POZADÍ */
    --color-card-bg: #1A1A1A; /* <<< SVĚTLEJŠÍ POZADÍ PRO KARTY */
    --color-border: #2A2A2A; /* <<< JEMNÝ OKRAJ */
    --color-silver: #C0C0C0;
    --color-white: #FFFFFF;
    
    /* Gradienty */
    --gradient-orange-red: linear-gradient(90deg, #FF5E3A 0%, #FF1E56 100%);
    --gradient-brand: linear-gradient(90deg, var(--color-primary-red) 0%, var(--color-magenta) 100%);
    --gradient-neon-blue: linear-gradient(90deg, #00C6FF 0%, #0072FF 100%);
    --gradient-neon-green: linear-gradient(90deg, #2EDC2E 0%, #009900 100%);

    /* Fonty */
    --font-heading: 'Bebas Neue', sans-serif;
    --font-subheading: 'Orbitron', sans-serif;
    --font-body: 'Roboto', sans-serif;

    /* Nové proměnné pro animace a efekty */
    --shadow-neon-red: 0 0 15px var(--color-primary-red);
    --shadow-neon-magenta: 0 0 15px var(--color-magenta);
    --shadow-text: 0 0 5px rgba(255,255,255,0.5);
}

/* ===== GLOBAL RESET & SETUP ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-graphite);
    color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== TYPOGRAFIE ===== */
h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
}

h1.tagline {
    font-size: 3rem;
    color: var(--color-white);
    text-shadow: var(--shadow-text);
    animation: textFadeIn 1.5s ease-out forwards;
}

p.tagline-cs {
    font-family: var(--font-subheading);
    font-size: 1rem;
    color: var(--color-silver);
    margin-bottom: 1rem;
    animation: textFadeIn 1.8s ease-out forwards;
}

h2.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
    
    /* --- OPRAVA CENTROVÁNÍ: Vráceno na inline-block --- */
    display: inline-block;
    /* Odstraněny přebíjející vlastnosti margin a width */
    
    padding-bottom: 8px;
    border-bottom: 3px solid;
    border-image: var(--gradient-brand) 1;
    position: relative;
    text-shadow: 0 0 10px rgba(228, 28, 28, 0.4), 0 0 20px rgba(201, 62, 255, 0.4);
}
h2.section-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-brand);
    filter: blur(5px);
    opacity: 0.7;
}


h3 {
    font-family: var(--font-subheading);
    font-size: 1.5rem;
    color: var(--color-white);
    margin-bottom: 0.5rem;
}

p {
    font-size: 1rem;
    color: var(--color-silver);
    max-width: 600px;
    margin: 0 auto 0.8rem auto;
}

a {
    color: var(--color-primary-red);
    text-decoration: none;
}

/* ===== HEADER & NAV ===== */
.main-header {
    background-color: rgba(14, 14, 14, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(192, 192, 192, 0.15);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem 1.5rem;
}

.logo-small {
    height: 40px;
}

.nav-menu {
    list-style: none;
    display: flex;
}

.nav-menu li {
    margin-left: 1.5rem;
}

.nav-menu a {
    font-family: var(--font-subheading);
    color: var(--color-silver);
    text-decoration: none;
    font-size: 0.85rem;
    text-transform: uppercase;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    position: relative;
    padding-bottom: 5px;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-neon-blue);
    transition: width 0.3s ease-out;
}
.nav-menu a:hover::after {
    width: 100%;
}
.nav-menu a:hover {
    color: var(--color-white);
    text-shadow: 0 0 8px var(--gradient-neon-blue);
}

/* ===== HERO SEKCE ===== */
#hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 60vh;
    padding: 6rem 1.5rem 2rem 1.5rem;
    background: radial-gradient(circle at 50% 50%, rgba(30, 0, 40, 0.5), var(--color-graphite) 75%);
    position: relative;
    overflow: hidden;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;charset=UTF-8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="1" fill="%23FF5E3A" opacity="0.15"/><circle cx="20" cy="80" r="0.5" fill="%23C93EFF" opacity="0.12"/><circle cx="80" cy="20" r="0.7" fill="%23E41C1C" opacity="0.13"/></svg>') repeat;
    background-size: 200px;
    animation: moveBackground 60s linear infinite;
    opacity: 0.4;
}

@keyframes moveBackground {
    from { background-position: 0 0; }
    to { background-position: 200px 200px; }
}

.hero-logo {
    max-width: 300px;
    margin-bottom: 0.8rem;
    animation: logoPop 1s ease-out forwards;
}

/* ===== TLAČÍTKA A CTA ===== */
.cta-button {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    letter-spacing: 1px;
    text-decoration: none;
    color: var(--color-white);
    background: var(--gradient-orange-red);
    padding: 0.6rem 2rem;
    border-radius: 5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    display: inline-block;
    margin: 0.8rem 0;
    box-shadow: 0 0 10px rgba(255, 94, 58, 0.4);
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 0 25px rgba(228, 28, 28, 0.7);
    background: var(--gradient-brand);
}

.cta-socials {
    margin-top: 0.8rem;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.social-link {
    font-family: var(--font-subheading);
    color: var(--color-silver);
    font-size: 0.9rem;
    position: relative;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}
.social-link:hover {
    color: var(--color-white);
    text-shadow: 0 0 8px var(--color-primary-red);
}

/* ===== SEKCE (Obecné) ===== */
.content-section {
    padding: 3rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    background-color: transparent;
    border-bottom: 1px solid var(--color-border);
    position: relative;
}

.content-section:last-of-type {
    border-bottom: none;
}

.mission {
    font-family: var(--font-subheading);
    font-size: 1.2rem;
    color: var(--color-white);
    margin-top: 1.5rem;
    text-shadow: var(--shadow-text);
}

/* ===== GRID (Disciplíny) ===== */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    text-align: left;
}

.grid-item {
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    padding: 1.5rem;
    border-radius: 8px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.grid-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    border: 2px solid transparent;
    background: linear-gradient(to right, var(--color-primary-red), var(--color-magenta)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    box-shadow: var(--shadow-neon-red);
}

.grid-item:hover::before {
    opacity: 1;
    box-shadow: 0 0 20px rgba(228, 28, 28, 0.7);
}


.grid-item:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary-red);
    box-shadow: 0 0 20px rgba(228, 28, 28, 0.5);
    background: #2a2a2a;
}
.grid-item h3 {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    display: inline-block;
    text-shadow: 0 0 5px rgba(255,255,255,0.2);
}

/* ===== SEKCE ATLETŮ ===== */
.athletes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.athlete-card {
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.athlete-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 30px rgba(201, 62, 255, 0.6);
    border-color: var(--color-magenta);
    background: #2a2a2a;
}

.athlete-photo-container {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 0.8rem auto;
    border: 3px solid var(--color-primary-red);
    box-shadow: 0 0 15px rgba(228, 28, 28, 0.4);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.athlete-card:hover .athlete-photo-container {
    border-color: var(--color-magenta);
    box-shadow: 0 0 20px rgba(201, 62, 255, 0.6);
}

.athlete-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.athlete-card h3 {
    margin-top: 0.5rem;
    color: var(--color-white);
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 5px rgba(255,255,255,0.2);
}

.athlete-card p {
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    max-width: none;
}

.profile-link {
    font-family: var(--font-subheading);
    font-size: 0.9rem;
    color: var(--color-white);
    background: var(--gradient-neon-blue);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    display: inline-block;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 114, 255, 0.4);
}
.profile-link:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 114, 255, 0.7);
    background: var(--gradient-neon-green);
}


/* ===== VIDEO HIGHLIGHTS ===== */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 800px;
    margin: 2rem auto;
    background: #000;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(228, 28, 28, 0.5);
    border: 2px solid var(--color-primary-red);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.video-container:hover {
    box-shadow: 0 0 45px rgba(201, 62, 255, 0.7);
    border-color: var(--color-magenta);
}

.video-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px dashed var(--color-silver);
    color: var(--color-silver);
    font-family: var(--font-subheading);
    border-radius: 8px;
}

/* ===== PARTNERS (NOVÝ STYL) ===== */
.partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
}

.partner-item {
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 2rem;
    flex-basis: 220px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.partner-item img {
    max-width: 100%;
    height: auto;
    max-height: 80px;
    filter: grayscale(100%) brightness(0.7);
    opacity: 0.6;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.partner-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px var(--shadow-neon-magenta);
    border-color: var(--color-magenta);
}

.partner-item:hover img {
    filter: grayscale(0%) brightness(1);
    opacity: 1;
}

/* ===== KONTAKT ===== */
.contact-links {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.contact-button {
    font-family: var(--font-subheading);
    font-size: 0.9rem;
    color: var(--color-white);
    border: 2px solid var(--color-border);
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    box-shadow: 0 0 5px rgba(192, 192, 192, 0.2);
}

.contact-button:hover {
    background: var(--gradient-neon-green);
    color: var(--color-white);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(46, 220, 46, 0.6);
}


/* ===== PATIČKA ===== */
.main-footer {
    padding: 1.5rem;
    text-align: center;
    border-top: 1px solid var(--color-border);
    color: var(--color-silver);
    font-size: 0.8rem;
}

.footer-socials {
    margin-top: 0.8rem;
}

.footer-socials a {
    color: var(--color-silver);
    margin: 0 0.4rem;
}
.footer-socials a:hover {
    color: var(--color-primary-red);
    text-shadow: 0 0 5px var(--color-primary-red);
}

/* ===== ANIMACE ===== */
@keyframes textFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes logoPop {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* ===== RESPONZIVITA ===== */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 0.8rem;
    }
    .navbar-logo {
        margin-bottom: 0.8rem;
        display: none;
    }
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    .nav-menu li {
        margin: 0.4rem 0.6rem; /* <<< ZMĚNA: Snížení mezer, aby se vešly na 1 řádek */
    }
    
    #hero {
        padding-top: 8rem;
        min-height: 70vh;
    }
    
    h1.tagline {
        font-size: 2rem;
    }
    h2.section-title {
        font-size: 1.8rem;
    }
    .cta-socials {
        flex-direction: column;
        gap: 0.6rem;
    }
    .cta-button {
        width: 90%;
        max-width: 300px;
        font-size: 1rem;
    }
    .contact-links {
        flex-direction: column;
        gap: 0.6rem;
    }
    .contact-button {
        width: 90%;
        max-width: 300px;
    }
    .content-section {
        padding: 2rem 1rem;
    }
    .partner-item {
        flex-basis: 180px;
        padding: 1.5rem;
        height: 100px;
    }
    .partner-item img {
        max-height: 60px;
    }
}

@media (max-width: 480px) {
    .hero-logo {
        max-width: 180px;
    }
    
    #hero {
        padding-top: 7rem;
    }
    
    h1.tagline {
        font-size: 1.6rem;
    }
    p.tagline-cs {
        font-size: 0.8rem;
    }
    h2.section-title {
        font-size: 1.6rem;
    }
    .grid-container, .athletes-grid {
        grid-template-columns: 1fr;
    }
    .athlete-photo-container {
        width: 150px;
        height: 150px;
    }
    .partners-grid {
        gap: 1rem;
    }
    .partner-item {
        flex-basis: 40%;
        padding: 1rem;
        height: 90px;
    }
    .partner-item img {
        max-height: 50px;
    }
}
