/* =========================================================
   1. ZÁKLADNÍ NASTAVENÍ A BARVY (SWAPSTORE MASTER CSS)
   ========================================================= */
:root {
    --text-gray: #b0b0b0;
    --text-dark: #000000;
    --bg-white: #ffffff;
    --bg-creme: #ece3d4;
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
a { text-decoration: none; color: inherit; }

html, body { height: 100%; }

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-white);
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* =========================================================
   2. HORNÍ LIŠTA A NAVIGACE (PC VERZE)
   ========================================================= */
header {
    position: absolute;
    top: 0;
    width: 100%;
    height: 95px;
    background: #ffffff;
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 60px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.logo-container { flex: 0 0 150px; }
.logo-container img { max-height: 110px; display: block; }

nav { flex: 1; display: flex; justify-content: flex-end; }

.nav-links { 
    list-style: none; 
    display: flex; 
    gap: 65px; 
    margin-right: 20px;
    margin-top: -12px;
}

.main-link {
    font-weight: 500; text-transform: uppercase; letter-spacing: 0.15em;
    font-size: 16px; transition: var(--transition); padding: 10px 0;
    color: var(--text-gray) !important;
}
.dropdown:hover > .main-link { color: var(--text-dark) !important; }

.dropdown { position: relative; }
.submenu {
    position: absolute; top: 40px; left: 50%; transform: translateX(-50%) translateY(10px);
    background-color: #fff; list-style: none; min-width: 220px; padding: 20px 0;
    opacity: 0; visibility: hidden; transition: var(--transition); box-shadow: 0 15px 40px rgba(0,0,0,0.08); z-index: 1100;
}
.dropdown:hover .submenu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.submenu li a {
    display: block; padding: 10px 25px; font-size: 14px; text-transform: uppercase;
    letter-spacing: 0.1em; transition: 0.3s; text-align: center; color: var(--text-gray);
}
.submenu li a:hover { color: var(--text-dark); background-color: #fcfcfc; }

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
}
.hamburger span {
    width: 25px; height: 2px; background-color: var(--text-dark); transition: var(--transition);
}

/* =========================================================
   3. HERO SLIDER (NEPRŮSTŘELNÝ CROSSFADE)
   ========================================================= */
.hero-slider {
    position: relative;
    width: 100%;
    height: calc(100vh - 95px);
    overflow: hidden;
    background: #ffffff !important; /* Pojistka: natvrdo bílá, abys hned poznal načtení nového CSS */
}

.hero-slider .slide {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    opacity: 0;
    animation: perfectCrossFade 18s infinite;
}

.hero-slider .slide img.main-img {
    width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 2;
}

.photo-credit {
    position: absolute; bottom: 25px; right: 35px;
    color: rgba(255, 255, 255, 0.85); font-size: 11px; text-transform: uppercase;
    letter-spacing: 2px; z-index: 10; font-weight: 300; pointer-events: none;
    text-shadow: 0 2px 5px rgba(0,0,0,0.8);
}

/* Negativní zpoždění zaručí, že fotky naskočí okamžitě bez čekání */
.hero-slider .slide:nth-child(1) { animation-delay: 0s; }
.hero-slider .slide:nth-child(2) { animation-delay: -12s; }
.hero-slider .slide:nth-child(3) { animation-delay: -6s; }

/* Přesně rozpočítaná 18s smyčka s plynulým prolínáním */
@keyframes perfectCrossFade {
    0% { opacity: 1; z-index: 5; }
    25% { opacity: 1; z-index: 5; }
    33% { opacity: 0; z-index: 1; }
    92% { opacity: 0; z-index: 1; }
    100% { opacity: 1; z-index: 5; }
}

/* =========================================================
   4. SPOLEČNÉ STYLY OBSAHU A PATIČKA
   ========================================================= */
main {
    flex: 1 0 auto;
    width: 100%;
}

footer { 
    flex-shrink: 0;
    padding: 60px 20px; 
    background: #fff; 
    text-align: center; 
    border-top: 1px solid rgba(0,0,0,0.05); 
}
.socials { display: flex; justify-content: center; gap: 30px; margin-bottom: 20px; flex-wrap: wrap; }
.socials a { font-size: 11px; text-transform: uppercase; letter-spacing: 2px; transition: 0.3s; color: var(--text-dark); }
.socials a:hover { opacity: 0.5; }
.copyright { color: #ccc; font-size: 10px; letter-spacing: 1px; text-transform: uppercase; }

/* =========================================================
   5. STRÁNKA: KONTAKT
   ========================================================= */
.contact-content {
    max-width: 1200px;
    margin: 180px auto 100px;
    padding: 0 60px;
}
.contact-content h1 {
    font-weight: 100; font-size: clamp(2.5rem, 6vw, 2rem); letter-spacing: 10px;
    text-transform: uppercase; margin-bottom: 80px; text-align: center;
}
.contact-flex-container { display: flex; justify-content: space-between; align-items: center; gap: 80px; }
.contact-info-text { flex: 1; }
.map-box {
    flex: 1.5; height: 500px; border-radius: 2px; overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05); border: 1px solid #f0f0f0;
}
.detail-item { margin-bottom: 50px; }
.detail-item h3 { font-weight: 500; font-size: 13px; letter-spacing: 3px; text-transform: uppercase; color: var(--text-gray); margin-bottom: 12px; }
.detail-item a, .detail-item p { font-weight: 300; font-size: 26px; text-decoration: none; color: #000; line-height: 1.4; transition: opacity 0.3s; }
.detail-item a:hover { opacity: 0.5; }

/* =========================================================
   6. STRÁNKY: JAK TO FUNGUJE & KDO JSME
   ========================================================= */
main.funguje-main, main.kdojsme-main {
    max-width: 1000px; 
    margin: 0 auto 80px; 
    padding: 180px 40px 0 40px;
}

.funguje-text-container, .kdojsme-text-container {
    max-width: 850px; 
    margin: 0 auto; 
    text-align: justify;
}

.funguje-text-container h1, .kdojsme-text-container h1 {
    text-align: center; 
    font-weight: 100; 
    font-size: clamp(2rem, 5vw, 2.3rem);
    letter-spacing: 12px; 
    text-transform: uppercase; 
    margin-top: 30px; 
    margin-bottom: 60px;
}

.funguje-text-container p, .kdojsme-text-container p {
    font-weight: 300; font-size: 17px; line-height: 1.6; color: #333; margin-bottom: 20px;
}

.spotify-icon-link { float: right; margin-left: 25px; margin-top: 5px; transition: var(--transition); }
.spotify-icon-link img { width: 150px; filter: grayscale(0); opacity: 1; transition: 0.5s ease; }
.spotify-icon-link:hover img { filter: grayscale(1); opacity: 0.7; transform: scale(1.05); }
.funguje-text-container::after, .kdojsme-text-container::after { content: ""; display: table; clear: both; }

/* =========================================================
   7. POČÍTADLO ÚSPĚCHŮ
   ========================================================= */
.counter-section { margin: 60px auto 40px; text-align: center; max-width: 900px; }
.counter-grid { display: flex; justify-content: space-around; gap: 20px; margin-bottom: 20px; }
.counter-item { flex: 1; }
.counter-number { display: block; font-size: 3rem; font-weight: 100; letter-spacing: 5px; margin-bottom: 10px; }
.counter-label { font-size: 12px; text-transform: uppercase; letter-spacing: 2px; color: var(--text-gray); font-weight: 400; }
.counter-update { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: #ccc; margin-top: 30px; }

/* =========================================================
   8. 3D MINI SLIDER
   ========================================================= */
.mini-slider-wrapper {
    position: relative; 
    width: 100%; 
    height: 400px;
    margin-top: 80px; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    margin-bottom: 100px;
}

.slider-container { 
    position: relative; 
    width: 300px; 
    height: 350px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}

.mini-slider-wrapper .slide {
    position: absolute; 
    top: 0;
    left: 0;
    width: 300px; 
    height: 350px;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer; 
    z-index: 1; 
    opacity: 0; 
    transform: scale(0.6);
    background-color: #000; 
}

.mini-slider-wrapper .slide img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    display: block;
}

.mini-slider-wrapper .slide.active { 
    opacity: 1; 
    transform: scale(1) translateX(0); 
    z-index: 10; 
    cursor: default; 
}

.mini-slider-wrapper .slide.prev { 
    opacity: 0.3; 
    transform: scale(0.8) translateX(-95%); 
    z-index: 5; 
    filter: grayscale(1); 
}

.mini-slider-wrapper .slide.next { 
    opacity: 0.3; 
    transform: scale(0.8) translateX(95%); 
    z-index: 5; 
    filter: grayscale(1); 
}

.nav-btn { 
    position: absolute; 
    top: 50%; 
    transform: translateY(-50%); 
    font-size: 35px; 
    font-weight: 100; 
    color: #000; 
    cursor: pointer; 
    z-index: 20; 
    padding: 20px; 
    user-select: none; 
    background: transparent;
    border: none;
}
.btn-left { left: calc(50% - 220px); }
.btn-right { right: calc(50% - 220px); }

@media (max-width: 900px) {
    .mini-slider-wrapper .slider-container { width: 240px; height: 280px; }
    .mini-slider-wrapper .slide { width: 240px; height: 280px; }
    .btn-left { left: 10px; }
    .btn-right { right: 10px; }
}

/* =========================================================
   9. STRÁNKA: PARTNEŘI
   ========================================================= */
main.partneri-main {
    max-width: 1200px; margin: 180px auto 100px; padding: 0 40px; text-align: center;
}
main.partneri-main h1 {
    font-weight: 100; font-size: clamp(2.5rem, 6vw, 2rem); letter-spacing: 10px;
    text-transform: uppercase; margin-bottom: 100px;
}
.partners-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 80px; max-width: 1100px; margin: 0 auto; }
.partner-item { flex: 0 1 200px; display: flex; justify-content: center; align-items: center; padding: 20px; transition: var(--transition); }
.partner-item img.special-logo { max-height: 150px; filter: grayscale(0) opacity(1); }
.partner-item img { max-width: 100%; height: auto; max-height: 100px; filter: none; opacity: 1; transition: transform 0.4s ease; }
.partner-item:hover img { transform: scale(1.1); }

/* =========================================================
   10. STRÁNKA: PODPOŘTE NÁS
   ========================================================= */
main.support-main {
    display: flex; align-items: center; justify-content: center; padding: 180px 20px 100px;
}
.support-card { max-width: 500px; text-align: center; }
.support-card h1 { font-weight: 100; font-size: clamp(1.8rem, 5vw, 2.3rem); letter-spacing: 10px; text-transform: uppercase; margin-bottom: 30px; }
.support-intro { font-weight: 300; font-size: 16px; line-height: 1.6; color: #333; margin-bottom: 40px; }
.qr-container {
    background: #fcfcfc; padding: 30px; border: 1px solid #f0f0f0; display: block;
    margin: 0 auto 40px; width: fit-content; transition: var(--transition);
}
.qr-container:hover { border-color: #e0e0e0; box-shadow: 0 10px 30px rgba(0,0,0,0.02); }
.qr-container img { width: 250px; display: block; margin: 0 auto; }
.qr-caption { font-size: 11px; text-transform: uppercase; letter-spacing: 2px; color: var(--text-gray); margin-top: 20px; }
.qr-note { font-size: 10px; color: #999; margin-top: 15px; letter-spacing: 1px; text-transform: uppercase; line-height: 1.4; }
.qr-instruction { font-size: 11px; color: var(--text-dark); margin-top: 10px; font-weight: 500; }
.support-footer-note { font-size: 12px; color: var(--text-gray); }

/* =========================================================
   11. UNIVERZÁLNÍ STRÁNKA: PŘIPRAVUJEME
   ========================================================= */
main.placeholder-main {
    display: flex; align-items: center; justify-content: center; text-align: center;
    padding: 160px 20px 100px; min-height: calc(100vh - 200px);
}
.placeholder-content h1 {
    font-weight: 100; font-size: clamp(2rem, 8vw, 4rem); letter-spacing: 15px;
    text-transform: uppercase; color: var(--text-dark); animation: fadeIn 2s ease-in-out;
}
.placeholder-content p {
    margin-top: 20px; font-weight: 300; letter-spacing: 3px; color: var(--text-gray);
    text-transform: uppercase; font-size: 14px;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   12. STRÁNKA: OCHRANA SOUKROMÍ
   ========================================================= */
main.privacy-main {
    flex: 1;
    max-width: 800px;
    margin: 180px auto 100px;
    padding: 0 40px;
    line-height: 1.6;
}
main.privacy-main h1 {
    font-weight: 100; font-size: clamp(1.8rem, 5vw, 2rem); letter-spacing: 8px;
    text-transform: uppercase; margin-bottom: 40px; text-align: center;
}
main.privacy-main h2 {
    font-weight: 500; font-size: 16px; text-transform: uppercase; letter-spacing: 2px;
    margin: 30px 0 15px; color: var(--text-dark);
}
main.privacy-main p {
    font-weight: 300; color: #333; margin-bottom: 15px; font-size: 15px; text-align: justify;
}

/* =========================================================
   13. STRÁNKA: TÝM
   ========================================================= */
main.team-main {
    max-width: 1000px; margin: 180px auto 80px; padding: 0 40px; text-align: center; width: 100%;
}
.team-grid { display: flex; flex-direction: column; gap: 40px; }
.team-grid .row { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.card-container { width: calc(33.333% - 20px); min-width: 250px; display: flex; flex-direction: column; position: relative; }
.team-card {
    position: relative; width: 100%; aspect-ratio: 1 / 1.15; overflow: hidden;
    display: flex; align-items: center; justify-content: center; background-color: #000;
}
.team-card img {
    position: absolute; width: 100%; height: 100%; object-fit: cover; opacity: 1;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.6s ease, filter 0.6s ease;
}
.role-text {
    position: relative; z-index: 2; color: #fff; font-weight: 100; font-size: 14px;
    text-transform: uppercase; letter-spacing: 3px; opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease; transform: translateY(10px); padding: 0 20px; text-align: center;
}
.card-container:hover .team-card img { opacity: 0.4; filter: grayscale(1); transform: scale(1.05); }
.card-container:hover .role-text { opacity: 1; transform: translateY(0); }
.card-menu {
    max-height: 0; overflow: hidden; background-color: #fff; list-style: none; width: 100%;
    border: 1px solid rgba(0,0,0,0.05); border-top: none;
    transition: max-height 1s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.8s ease; opacity: 0;
}
.card-container:hover .card-menu { max-height: 150px; opacity: 1; }
.card-menu li a {
    display: block; text-decoration: none; color: var(--text-gray); font-size: 13px;
    text-transform: uppercase; letter-spacing: 2px; padding: 15px 0; transition: 0.3s ease; border-bottom: 1px solid rgba(0,0,0,0.03);
}
.card-menu li a:hover { color: var(--text-dark); background-color: #fcfcfc; }
.member-name {
    margin-top: 15px; text-transform: uppercase; letter-spacing: 2px; font-size: 14px; font-weight: 500; color: var(--text-dark);
}

/* =========================================================
   14. STRÁNKA: EVENTY
   ========================================================= */
main.eventy-main {
    flex: 1 0 auto; max-width: 1200px; margin: 180px auto 100px; padding: 0 40px; width: 100%;
}
.page-header { text-align: left; margin-bottom: 60px; }
main.eventy-main h1 {
    font-weight: 100; font-size: clamp(2.5rem, 6vw, 2rem); letter-spacing: 12px;
    text-transform: uppercase; color: var(--text-dark); margin-bottom: 15px;
}
.event-grid { display: flex; gap: 60px; align-items: flex-start; text-align: left; }
.event-visual-container { flex: 0 0 380px; position: sticky; top: 130px; display: flex; flex-direction: column; gap: 20px; }
.event-visual-container h2 {
    font-weight: 500; font-size: 1.3rem; letter-spacing: 4px; text-transform: uppercase;
    color: var(--text-dark); border-bottom: 1px solid var(--text-dark); padding-bottom: 10px;
}
.event-visual video { width: 100%; height: auto; border-radius: 2px; box-shadow: 0 10px 30px rgba(0,0,0,0.03); }
.event-text { flex: 1; }
.story-text p { line-height: 1.7; color: #444; font-size: 16px; font-weight: 300; margin-bottom: 15px; text-align: justify; }
.program-card { background-color: var(--bg-creme); padding: 30px; margin: 25px 0; border-left: 1px solid var(--text-dark); }
.program-card h3 { text-transform: uppercase; letter-spacing: 2px; font-size: 16px; margin-bottom: 15px; font-weight: 500; }
.program-card ul { list-style: none; }
.program-card li { margin-bottom: 8px; font-size: 15px; font-weight: 400; }
.location-tag { margin-top: 40px; font-size: 12px; letter-spacing: 1px; color: var(--text-gray); text-transform: uppercase; border-top: 1px solid #eee; padding-top: 20px; }

/* =========================================================
   15. HLAVNÍ RESPONZIVITA (TABLETY A MOBILY)
   ========================================================= */
@media (max-width: 1200px) {
    header { padding: 0 20px; height: 80px; justify-content: space-between; }
    .logo-container img { max-height: 60px; margin: 0; }
    .hamburger { display: flex; }
    
    .hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    nav {
        position: absolute; top: 80px; left: 0; width: 100%; background: #ffffff;
        max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out;
        box-shadow: 0 15px 30px rgba(0,0,0,0.1); border-bottom: 1px solid rgba(0,0,0,0.05);
    }
    nav.active { max-height: 600px; overflow-y: auto; }
    .nav-links { flex-direction: column; gap: 0; margin: 0; padding: 10px 0 25px 0; width: 100%; align-items: center; }
    .main-link { display: block; padding: 12px 0; font-size: 15px; }
    
    .dropdown { width: 100%; text-align: center; }
    .submenu {
        position: static; transform: none; opacity: 1; visibility: visible;
        box-shadow: none; min-width: auto; padding: 0 0 10px 0; background: transparent;
        display: flex; flex-direction: column; gap: 5px;
    }
    .submenu li a { padding: 6px 0; font-size: 12px; color: #888; }
    
    /* Mobilní slider má jen zafixovanou výšku, animace normálně běží! */
    .hero-slider { 
        height: 60vh !important; 
        min-height: 350px !important;
    }

    .slide img.main-img { 
        width: 100% !important; 
        height: 100% !important; 
        max-height: none !important;
        object-fit: cover !important; 
    }

    .photo-credit { right: 15px; bottom: 15px; font-size: 9px; }
    
    .contact-content, main.funguje-main, main.kdojsme-main, main.partneri-main, main.support-main, main.privacy-main, main.team-main, main.eventy-main {
        margin-top: 120px; padding-left: 25px; padding-right: 25px;
    }
    .map-box { width: 100%; height: 350px; }
    .funguje-text-container, .kdojsme-text-container { text-align: center; }
    .spotify-icon-link { float: none; display: block; margin: 20px auto; text-align: center; }
    .mini-slider-wrapper .slide { width: 70%; }
    .partners-grid { gap: 40px; }
    .counter-grid { flex-direction: column; gap: 50px; }
    .event-grid { flex-direction: column; gap: 40px; }
    .event-visual-container { flex: none; position: static; width: 100%; max-width: 400px; margin: 0 auto; }
    .card-container { width: 100%; }
}