/* ZÁKLAD */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #0b0b0f;
    color: #f5f5f5;
    line-height: 1.6;
}

/* ODKAZY & TLAČÍTKA */
a {
    color: #f4c430;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    margin: 0.25rem;
    text-align: center;
}

.btn.primary {
    background: #f4c430;
    color: #14141b;
}

.btn.primary:hover {
    background: #ffd95a;
}

.btn.secondary {
    border-color: #f4c430;
    color: #f4c430;
}

.btn.secondary:hover {
    background: rgba(244, 196, 48, 0.1);
}

/* HLAVIČKA / HERO */
.site-header {
    padding: 3rem 1rem 2rem;
    text-align: center;
    background: radial-gradient(circle at top, #1f1f2e, #05050a);
}

.hero {
    max-width: 720px;
    margin: 0 auto;
}

.hero-logo {
    margin-bottom: 1rem;
}

.logo-image {
    max-width: 220px;
    width: 70%;
    height: auto;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

/* HLAVNÍ OBSAH */
.main-content {
    max-width: 960px;
    margin: 0 auto;
    padding: 2rem 1rem 3rem;
}

.section {
    margin-bottom: 2.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.section h2 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1.4rem;
}

/* ABOUT + FOTO */
.section.about {
    text-align: center;
}

.section.about p {
    max-width: 700px;
    margin: 0.5rem auto 0;
}

.hero-photo {
    max-width: 100%;
    width: 600px;
    height: auto;
    display: block;
    margin: 0 auto 1.5rem;
    border-radius: 12px;
}

/* NEJBLIZSI UDALOST */
.section.event {
    text-align: center;
}

.event-text {
    margin: 0 0 1rem;
    font-size: 1rem;
}

.event-poster-wrapper {
    display: flex;
    justify-content: center;
}

.event-poster {
    max-width: 100%;
    width: 520px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.6);
}

/* KONTAKT */
.section.contact {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 2.5rem;
}

.contact-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact-row {
    display: inline-flex;     /* sloupce vedle sebe */
    align-items: flex-start;
    gap: 0.75rem;
    margin: 0 2rem 1.3rem;
    vertical-align: top;
    text-align: left;         /* text uvnitř doleva */
}

.contact-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    background: rgba(244, 196, 48, 0.12);
    flex-shrink: 0;
}

.contact-text h3 {
    margin: 0 0 0.25rem;
    font-size: 1rem;
}

.contact-text p {
    margin: 0;
}

.contact-muted {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* odkazy v kontaktu */
.section.contact a {
    color: #f4c430;
    text-decoration: underline;
}

.section.contact a:hover {
    text-decoration: none;
}

/* SPONZOŘI / PARTNEŘI */
.section.sponsors,
.section.partners {
    text-align: center;
}

.sponsor-logos,
.partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem;
    align-items: center;
    margin-top: 1rem;
}

.sponsor-logo,
.partner-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #f5f5f5;
    min-width: 160px;
}

/* jednotná dlaždice pro všechna loga */
.logo-tile {
    width: 160px;         /* šířka dlaždice */
    height: 80px;         /* výška dlaždice */
    background: #ffffff;  /* stejné bílé pozadí pro všechny */
    border-radius: 12px;
    padding: 0.25rem 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.logo-tile img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.sponsor-logo span,
.partner-logo span {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* hover efekt */
.sponsor-logo:hover .logo-tile,
.partner-logo:hover .logo-tile {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
    transform: translateY(-2px);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.sponsor-logo:hover span,
.partner-logo:hover span {
    color: #f4c430;
}

/* responsivita */
@media (max-width: 600px) {
    .sponsor-logos,
    .partners-grid {
        gap: 1.5rem;
    }

    .logo-tile {
        width: 140px;
        height: 70px;
    }
}


/* ODKAZOVÉ KARTY (Sleduj nás) */
/* SEKCE "SLEDUJ NÁS" – DLAŽDICE */
.section.links {
    text-align: center;
}

.links-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
}

.link-card {
    min-width: 180px;
    max-width: 220px;
    padding: 1rem 1.2rem;
    border-radius: 16px;
    background: #14141b;
    border: 1px solid rgba(244, 196, 48, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.link-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
    border-color: #f4c430;
    text-decoration: none;
}

.link-title {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.link-desc {
    font-size: 0.9rem;
    color: #cccccc;
}

/* lepší chování na mobilu */
@media (max-width: 600px) {
    .links-grid {
        gap: 1.2rem;
    }

    .link-card {
        max-width: 100%;
    }
}

.link-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
    border-color: #f4c430;
    text-decoration: none;
}

.link-title {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.link-desc {
    font-size: 0.9rem;
    color: #cccccc;
}

/* PATIČKA */
.site-footer {
    text-align: center;
    padding: 1rem;
    font-size: 0.85rem;
    color: #aaaaaa;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: #05050a;
}

/* POPUP */
.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.popup-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: #111;
    border-radius: 16px;
    padding: 1rem 1rem 1.5rem;
    border: 1px solid #f4c430;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.popup-image {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 8px;
    display: block;
}

.popup-close {
    position: absolute;
    top: 0.5rem;
    right: 0.7rem;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
}

/* RESPONSIVE */
@media (max-width: 600px) {
    .site-header {
        padding-top: 2rem;
    }

    .section {
        padding: 1.1rem;
    }

    .hero-photo {
        width: 100%;
    }

    .sponsor-logos,
    .partners-grid {
        gap: 1.5rem;
    }

    .sponsor-logo img,
    .partner-logo img {
        max-height: 50px;
    }
}
.btn.primary {
    background: #f4c430;
    color: #14141b;
}

.btn.primary:hover {
    background: #ffd95a;
}
.event-video {
    margin-top: 1.5rem;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    max-width: 800px;
    margin: 0 auto;
}

.video-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
}
.event-video {
    margin-top: 1.5rem;
    text-align: center;
}

.event-video-caption {
    margin-top: 0.75rem;
    font-size: 0.95rem;
    color: #dddddd;
    opacity: 0.9;
}
@media (max-width: 700px) {

    /* kontakt přes celou šířku */
    .section.contact {
        max-width: 100%;
        margin: 0 auto 2rem;
    }

    /* každý kontakt na vlastní řádek */
    .section.contact .contact-row {
        display: flex;          /* přepíše inline-flex */
        margin: 0 0 1.3rem;     /* pryč boční 2rem */
        justify-content: flex-start;
        width: 100%;            /* ať využije celou šířku */
    }
}
