/* Písma jsou načtena v HTML pro vyšší výkon */

:root {
    --primary-red: #7A0000;
    --bright-red: #aa0000;
    --black: #050505;
    --dark-grey: #1a1a1a;
    --light-grey: #2a2a2a;
    --white: #ffffff;
    --text-grey: #e0e0e0; /* Zvýšený kontrast pro čitelnost */
    --cut-angle: polygon(0 0, 100% 0, 100% 90%, 95% 100%, 0 100%);
    --btn-skew: skew(-20deg);
}

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

/* PŘÍSTUPNOST - FOCUS STYLY */
:focus-visible {
    outline: 3px solid var(--white);
    outline-offset: 3px;
}

body {
    background-color: var(--black);
    color: var(--white);
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
}

h1, h2, h3, .nav-link, .btn-text, .role-title {
    font-family: 'Teko', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* SKIP LINK (Viditelný jen při tabulátoru) */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-red);
    color: white;
    padding: 8px;
    z-index: 2000;
    transition: top 0.3s;
}
.skip-link:focus { top: 0; }

/* HEADER & NAV */
header {
    background: rgba(0,0,0,0.95);
    padding: 0 20px;
    position: fixed;
    width: 100%;
    z-index: 1000;
    border-bottom: 3px solid var(--primary-red);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo-img { height: 55px; width: auto; display: block; }

/* Navigace - Desktop */
.nav-menu ul {
    display: flex;
    align-items: center;
    gap: 25px;
    list-style: none; /* Odstranění odrážek */
    margin: 0; padding: 0;
}

.nav-link {
    color: var(--white);
    font-size: 1.1rem;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
    letter-spacing: 1px;
}
.nav-link:hover { color: var(--primary-red); }

/* Hamburger */
.hamburger { display: none; cursor: pointer; background: none; border: none; padding: 10px;}
.bar { display: block; width: 25px; height: 3px; margin: 5px auto; transition: 0.3s; background-color: var(--white); }

/* HERO SECTION */
.hero {
    width: 100vw;
    height: 100vh;
    max-width: none;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.8)), url('images/bg_hero.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    /* Fixed pozadí jen pro desktop kvůli výkonu na mobilu */
    background-attachment: scroll; 
    
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Zapnutí parallaxu jen na velkých displejích */
@media (min-width: 1024px) {
    .hero { background-attachment: fixed; }
}

.hero-content-wrapper {
    max-width: 1200px;
    padding: 20px;
    margin-top: 60px;
    width: 100%;
}

.main-partner-wrapper { margin-bottom: 20px; }
.partner-label { font-size:0.9rem; color:#aaa; margin-bottom:5px; text-transform:uppercase; letter-spacing:2px; }

/* CLAMP PRO RESPONZIVNÍ TEXT */
.hero h1 { 
    font-size: clamp(3rem, 8vw, 6rem); 
    line-height: 1; 
    margin-bottom: 20px; 
    text-shadow: 0 0 30px black; 
}
.hero p { font-size: 1.5rem; color: var(--text-grey); margin-bottom: 40px; text-shadow: 0 0 10px black; }

/* Akce v Hero sekci (náhrada inline stylů) */
.hero-actions { margin-top: 30px; }
.hero-links { margin-top: 25px; }
.sub-link { color: #ccc; margin: 0 10px; text-decoration: none; font-weight: bold; display: inline-block;}
.sub-link i { margin-right: 5px; }

/* BUTTONS */
.cta-btn {
    background: var(--primary-red);
    color: white;
    padding: 15px 40px;
    font-size: 1.8rem;
    text-decoration: none;
    font-weight: bold;
    transform: var(--btn-skew);
    display: inline-block;
    transition: 0.3s;
    border: 1px solid var(--primary-red);
}
.cta-btn:hover { background: var(--bright-red); box-shadow: 0 0 20px var(--primary-red); }
.cta-btn span { display: block; transform: skew(20deg); }

/* SECTIONS */
section { padding: 80px 20px; max-width: 1200px; margin: 0 auto; }
h2 { font-size: 3.5rem; margin-bottom: 40px; border-left: 6px solid var(--primary-red); padding-left: 20px; color: var(--white); }

/* NEWS */
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.news-item {
    background: var(--dark-grey);
    padding: 25px;
    border-top: 3px solid var(--primary-red);
    border-bottom: 1px solid #333;
}
.news-date { color: var(--primary-red); font-weight: bold; margin-bottom: 5px; display: block; }
.news-item h3 { font-size: 1.8rem; margin-bottom: 15px; }
.news-item p { font-size: 1rem; color: var(--text-grey); }
.news-item a { color: var(--white); text-decoration: underline; font-weight: bold; transition: 0.3s;}
.news-item a:hover { color: var(--primary-red); }

/* CALENDAR */
.calendar-list { list-style: none; padding: 0; }
.calendar-item {
    background: var(--dark-grey);
    margin-bottom: 15px;
    padding: 25px;
    border-left: 5px solid var(--primary-red);
    transition: 0.3s;
    cursor: pointer;
}
.calendar-item:hover, .calendar-item:focus { background: var(--light-grey); outline: none; }
.calendar-item:focus-visible { outline: 2px solid white; }

.calendar-header { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.cal-details {
    display: none; margin-top: 20px; padding-top: 20px; border-top: 1px solid #444; 
    color: var(--text-grey); font-size: 1rem; animation: fadeIn 0.5s;
}

.calendar-item.active .cal-details { display: block; }
.calendar-item.active .cal-icon { transform: rotate(180deg); }

.cal-round { font-size: 1.6rem; font-weight:bold; color:var(--primary-red); width:30%; font-family: 'Teko', sans-serif;}
.cal-date { font-size: 1.3rem; width:30%; }
.cal-loc { font-size: 1.4rem; text-transform:uppercase; width:40%; text-align:right; font-family: 'Teko', sans-serif;}
.cal-icon { margin-left: 10px; font-size: 1rem; transition: 0.3s; color: var(--white); }

/* FAQ */
.faq-grid { display: grid; gap: 15px; }
.faq-item { 
    background: var(--dark-grey); padding: 20px; border-left: 2px solid #444; 
    cursor: pointer; transition: 0.3s;
}
.faq-item:hover, .faq-item:focus { background: var(--light-grey); border-left-color: var(--primary-red); outline: none; }
.faq-question { display: flex; justify-content: space-between; align-items: center; }
.faq-question h3 { font-size: 1.5rem; color: var(--white); margin: 0; }
.faq-icon { color: var(--primary-red); font-size: 1.2rem; transition: 0.3s; }
.faq-answer { 
    display: none; margin-top: 15px; color: var(--text-grey); 
    padding-top: 15px; border-top: 1px solid #333; line-height: 1.6; 
}
.faq-item.active .faq-answer { display: block; animation: fadeIn 0.5s; }
.faq-item.active .faq-icon { transform: rotate(180deg); }
.faq-item.active h3 { color: var(--primary-red); }

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

/* DOCS & CENTER BTN */
.center-btn-wrapper { text-align: center; margin-top: 30px; }
.doc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.doc-btn {
    background: #222; color: white; padding: 20px; text-decoration: none;
    display: block; text-align: center; font-weight: bold; border: 1px solid #333; transition: 0.3s;
}
.doc-btn:hover { border-color: var(--primary-red); background: #333; }
.doc-btn i { font-size: 2rem; display: block; margin-bottom: 10px; color: var(--primary-red); }

/* PARTNERS */
.partners-wrapper { background: #111; width: 100%; padding: 60px 0; margin-top: 50px; border-top: 1px solid #333; }
.partners-content { max-width: 1200px; margin: 0 auto; text-align: center; }
.partners-logos { display: flex; gap: 40px; justify-content: center; flex-wrap: wrap; align-items: center; margin-top: 30px; }
.partner-link { display: inline-block; text-decoration: none; border: none; }
.partner-link img { border: none; max-height: 80px; filter: grayscale(100%); transition: 0.3s; opacity: 0.7; display: block; }
.partner-link:hover img { filter: grayscale(0%); opacity: 1; transform: scale(1.05); }

/* ORGANIZER */
.organizer-section { text-align: center; padding: 60px 20px; background: #080808; border-top: 1px solid #222; }
.org-logo { max-height: 100px; margin-bottom: 20px; }
.org-text { max-width: 600px; margin: 0 auto 20px auto; color: #888; }
.org-link { color: var(--primary-red); font-weight: bold; text-decoration: none; font-size: 1.1rem; }

/* CONTACT */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 30px; }
.contact-card { background: var(--dark-grey); padding: 30px; text-align: center; border-bottom: 4px solid var(--primary-red); }
.contact-card h3 { font-size: 1.8rem; margin-bottom: 5px; color: var(--white); }
.role-title { color: var(--primary-red); font-size: 1.2rem; margin-bottom: 15px; display: block; letter-spacing: 2px;}
.contact-link { display: block; color: #ccc; text-decoration: none; margin-bottom: 5px; font-size: 1.1rem; }
.contact-link i { color: var(--primary-red); margin-right: 5px; }
.contact-link:hover { color: var(--white); }

footer { text-align: center; padding: 50px; background: black; border-top: 2px solid var(--primary-red); color: #666; }

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
    .hamburger { display: block; }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .nav-menu {
        position: fixed; left: -100%; top: 80px; gap: 0;
        flex-direction: column; background-color: rgba(5, 5, 5, 0.98);
        width: 100%; height: calc(100vh - 80px);
        text-align: center; transition: 0.3s ease-in-out; padding-top: 40px;
    }
    .nav-menu.active { left: 0; }
    
    /* Na mobilu musíme menu zobrazit jako blok (protože v desktopu je flex) */
    .nav-menu ul { flex-direction: column; width: 100%; }
    .nav-menu li { width: 100%; }

    .nav-link {
        font-size: 2rem; display: block; padding: 20px;
        border-bottom: 1px solid #222; width: 80%; margin: 0 auto;
    }
    
    .calendar-header { flex-direction: column; gap: 10px; text-align: center; }
    .cal-round, .cal-date, .cal-loc { width: 100%; text-align: center; }
    .cal-icon { margin-left: 0; margin-top: 5px; display: block;}
}

/* --- PLAKÁT V NOVINKÁCH (Lightbox) --- */

.news-poster-thumb {
    margin-top: 15px;
    max-width: 100%;
    width: 300px;
    border: 1px solid #333;
    cursor: zoom-in;
    transition: transform 0.3s ease, border-color 0.3s;
    display: block;
}

.news-poster-thumb:hover {
    transform: scale(1.02);
    border-color: var(--primary-red);
}

/* Velké okno (Modal) - skryté */
#image-modal {
    display: none; 
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    cursor: zoom-out;
}

#modal-img {
    max-width: 90%;
    max-height: 90%;
    border: 2px solid var(--primary-red);
    box-shadow: 0 0 20px rgba(0,0,0,0.8);
    animation: zoomIn 0.3s;
}

#modal-caption {
    margin-top: 15px;
    color: #ccc;
    font-size: 1.2rem;
    font-family: 'Teko', sans-serif;
    letter-spacing: 1px;
}

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