html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* =========================
   HLAVIČKA
========================= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;

    background: rgba(255, 255, 255, 0.30);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);

    display: flex;
    align-items: center;
    padding: 0 60px;
    z-index: 1000;
}

/* LOGO */
.logo {
    background: #ffffff;
    color: #2e9f7b;
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 20px;
}

/* LEVÁ ČÁST HLAVIČKY */
.hlavicka-vlevo {
    display: flex;
    align-items: center;
    gap: 18px;
}

/* DATUM */
.datum {
    font-size: 14px;
    font-weight: bold;
    color: #ffffff;
    opacity: 0.8;
    white-space: nowrap;
}

/* MENU */
.hlavni-menu {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 32px;
}

.hlavni-menu a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 17px;
}

.hlavni-menu a:hover {
    text-decoration: underline;
}

/* =========================
   ZÁKLAD
========================= */
body {
    font-family: "Segoe UI", sans-serif;
    background: #fff;
}

/* =========================
   HERO (INDEX + VNITŘNÍ)
========================= */
.hero {
    padding-top: 90px;
    min-height: 100vh;
    background-image:
        linear-gradient(
            rgba(46, 159, 123, 0.85),
            rgba(46, 159, 123, 0.85)
        ),
        url("../images/hero.jpg");

    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* VNITŘNÍ STRÁNKY – nižší hero */
.hero--vnitrni {
    min-height: 100vh;
}

/* OBSAH HERO */
.hero-obsah {
    max-width: 900px;
    width: 100%;
    padding: 20px;
    color: #fff;
}

/* NADPIS */
.hero-obsah h1 {
    font-size: clamp(36px, 6vw, 64px);
    margin-bottom: 20px;
    color: #fff;
}

/* TEXT V HERO (O NÁS, GALERIE…) */
.text-hero {
    font-size: 18px;
    line-height: 1.7;
    color: #ffffff;
    max-width: 800px;
    margin: 0 auto;
}

/* =========================
   TLAČÍTKO
========================= */
.btn {
    display: block;
    width: fit-content;
    padding: 14px 32px;
    background: #2ecc9f;
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    margin: 25px auto 0;
}

.btn:hover {
    background: #27b58c;
}

/* =========================
   ADMIN BOX (UVNITŘ HERO)
========================= */
.admin-box {
    margin-top: 70px;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.4);
    text-align: left;
}

.admin-box h2 {
    margin-bottom: 20px;
    color: #ffffff;
    text-align: center;
}

.admin-box textarea {
    width: 100%;
    max-width: 900px;
    padding: 15px;
    font-size: 16px;
    font-family: "Segoe UI", sans-serif;
    border-radius: 8px;
    border: 1px solid #ccc;
    background: rgba(255,255,255,0.95);
}

/* =========================
   AKTUALITY
========================= */
.aktuality-list {
    margin-top: 50px;
    text-align: left;
}

.clanek {
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.35);
}

.clanek h2 {
    font-size: 26px;
    margin-bottom: 10px;
    color: #ffffff;
}

.clanek-text {
    font-size: 17px;
    line-height: 1.7;
    color: #ffffff;
    opacity: 0.95;
    max-width: 800px;
}

.clanek-meta {
    margin-top: 10px;
    font-size: 14px;
    opacity: 0.8;
}

.clanek-admin {
    margin-top: 15px;
}

.clanek-admin a {
    color: #ffffff;
    margin-right: 15px;
    text-decoration: none;
}

/* =========================
   ADMIN TLAČÍTKA – AKTUALITY
========================= */
.clanek-admin {
    margin-top: 18px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* =========================
   AKTUALITY – OBRÁZEK ČLÁNKU
========================= */
.clanek-foto {
    max-width: 400px;
    width: 100%;
    margin: 25px auto;
    border-radius: 14px;
    cursor: pointer;
    display: block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.clanek-foto:hover {
    transform: scale(1.02);
    opacity: 0.95;
}

/* mobil */
@media (max-width: 700px) {
    .clanek-foto {
        max-width: 100%;
    }
}

.admin-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;

    transition: all 0.2s ease;
}

/* UPRAVIT */
.admin-btn--edit {
    background: rgba(255,255,255,0.15);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.4);
}

.admin-btn--edit:hover {
    background: rgba(255,255,255,0.3);
}

/* SMAZAT */
.admin-btn--delete {
    background: rgba(231, 76, 60, 0.85);
    color: #ffffff;
    border: 1px solid rgba(231, 76, 60, 1);
}

.admin-btn--delete:hover {
    background: rgba(192, 57, 43, 0.95);
}

/* =========================
   ADMIN FORMULÁŘE
========================= */
.admin-form {
    margin-top: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.admin-form label {
    display: block;
    margin-bottom: 25px;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
}

.admin-form input,
.admin-form textarea {
    width: 100%;
    margin-top: 8px;
    padding: 14px 16px;
    font-size: 16px;
    font-family: "Segoe UI", sans-serif;

    border-radius: 10px;
    border: none;
    outline: none;

    background: rgba(255,255,255,0.95);
}

.admin-form textarea {
    resize: vertical;
    min-height: 200px;
}

.admin-form-actions {
    margin-top: 35px;
    display: flex;
    align-items: center;
    gap: 20px;
}

/* ZRUŠIT */
.admin-cancel {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-weight: 600;
}

.admin-cancel:hover {
    text-decoration: underline;
}

/* =========================
   KONTAKTY
========================= */
.kontakty-grid {
    margin-top: 50px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.kontakt-karta {
    background: rgba(255,255,255,0.15);
    padding: 20px;
    border-radius: 14px;
    color: #ffffff;
    text-align: left;
}

.kontakt-karta strong {
    font-size: 18px;
    display: block;
    margin-bottom: 5px;
}

.kontakt-funkce {
    font-size: 14px;
    opacity: 0.85;
    margin-bottom: 10px;
    display: block;
}

/* =========================
   LOGIN
========================= */
.admin-form--login {
    max-width: 420px;
}

.login-error {
    margin: 20px auto;
    max-width: 420px;
    padding: 12px 16px;
    background: rgba(231, 76, 60, 0.9);
    color: #ffffff;
    border-radius: 10px;
    font-weight: 600;
}

/* =========================
   ADMINI
========================= */
.admin-table {
    margin-top: 40px;
}

.admin-row {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 16px 20px;
    margin-bottom: 12px;

    background: rgba(255,255,255,0.15);
    border-radius: 14px;
}

.admin-name {
    font-size: 17px;
    font-weight: 600;
}

.admin-self {
    font-size: 13px;
    opacity: 0.7;
    margin-left: 8px;
}

.admin-actions {
    display: flex;
    gap: 12px;
}

/* menší formulář */
.admin-form--small {
    max-width: 400px;
}

/* =========================
   MENU VPRAVO (LOGIN / ADMIN)
========================= */
.menu-pravo {
    position: absolute;
    right: 160px;
    display: flex;
    gap: 16px;
}

.menu-pravo a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    padding: 6px 16px;
    border-radius: 20px;
    background: rgba(255,255,255,0.15);
}

.menu-pravo a:hover {
    background: rgba(255,255,255,0.3);
}

/* ODHLÁŠENÍ */
.menu-pravo .logout {
    background: rgba(231, 76, 60, 0.85);
}

.menu-pravo .logout:hover {
    background: rgba(192, 57, 43, 0.95);
}

/* =========================
   GALERIE – FOTO V DUCHU AKTUALIT
========================= */
.galerie-foto {
    width: 100%;
    max-width: 900px;
    margin-bottom: 20px;
    border-radius: 14px;
    display: block;
}

/* =========================
   GALERIE – GRID AKCÍ
========================= */
.galerie-grid {
    margin-top: 60px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.galerie-karta {
    position: relative;
}

.galerie-thumb {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 16px;
}

.galerie-thumb img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.galerie-thumb:hover img {
    transform: scale(1.08);
}

/* overlay */
.galerie-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
    pointer-events: none; /* důležité */
}

.galerie-thumb:hover img {
    transform: scale(1.08);
}

.galerie-thumb:hover .galerie-overlay {
    opacity: 1;
}

.galerie-overlay span {
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    padding: 0 20px;
}

/* admin pod kartou */
.galerie-admin {
    margin-top: 14px;
    display: flex;
    gap: 10px;
}

/* =========================
   LIGHTBOX
========================= */
#lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

#lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 28px;
    color: #fff;
    cursor: pointer;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    padding: 20px;
}

.lightbox-prev { left: 30px; }
.lightbox-next { right: 30px; }

/* =========================
   UPLOAD – VÝBĚR SOUBORŮ
========================= */
.upload-box {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 25px;
}

.upload-btn {
    display: inline-block;
    align-self: center;

    padding: 14px 28px;
    border-radius: 30px;
    background: rgba(255,255,255,0.18);
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;

    border: 2px dashed rgba(255,255,255,0.6);
    transition: all 0.25s ease;
}

.upload-btn:hover {
    background: rgba(255,255,255,0.32);
    border-color: #ffffff;
}

.upload-info {
    font-size: 14px;
    opacity: 0.85;
    text-align: center;
}

/* PODPORA – STATICKÝ THUMB (bez odkazu) */
.galerie-thumb--static {
    cursor: default;
}

/* =========================
   HAMBURGER MENU
========================= */
.menu-toggle {
    display: none;
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 30px;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    z-index: 1001;
}

/* =========================
   MOBILNÍ MENU
========================= */
@media (max-width: 900px) {

    .hlavni-menu,
    .menu-pravo {
        display: none;
    }

    .menu-toggle {
        display: block;
        padding-right: 110px;
    }

    .mobile-menu {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.9);
        backdrop-filter: blur(6px);
        z-index: 1000;

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 26px;
    }

    .mobile-menu a {
        font-size: 24px;
        font-weight: 700;
        color: #fff;
        text-decoration: none;
    }
}

/* MOBILNÍ MENU – zobrazíme klonované položky */
.mobile-menu .hlavni-menu,
.mobile-menu .menu-pravo {
    display: flex;
    position: static;
    transform: none;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

/* odkazy */
.mobile-menu a {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}

/* admin tlačítka trochu jinak */
.mobile-menu .menu-pravo a {
    background: rgba(255,255,255,0.15);
    padding: 10px 28px;
    border-radius: 30px;
}

/* =========================
   PATIČKA UVNITŘ HERO
========================= */
.hero {
    position: relative;
}

.hero-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;

    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(10px);

    border-top: 1px solid rgba(255,255,255,0.4);

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 18px;
    color: #fff;
    opacity: 0.9;
}

/* aby se obsah hero nedotýkal patičky */
.hero-obsah {
    padding-bottom: 90px;
}

/* mobil */
@media (max-width: 900px) {
    .hero-footer {
        height: auto;
        padding: 14px 20px;
        text-align: center;
    }
}

/* =========================
   KONTAKTY – SOCIÁLNÍ ODKAZY
========================= */
.kontakt-social {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.kontakt-social a {
    padding: 6px 16px;
    border-radius: 20px;
    background: rgba(255,255,255,0.15);
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
}

.kontakt-social a:hover {
    background: rgba(255,255,255,0.35);
}

.hero-obrazek {
    margin: 30px 0;
}

.hero-obrazek img {
    max-width: 600px;
    width: 100%;
    border-radius: 12px;
}

/* PODPORA – LOGA (bez zoomu, celé viditelné) */
.galerie-thumb--static img {
    width: 100%;
    height: 140px; /* menší výška pro loga */
    object-fit: contain; /* KLÍČOVÉ */
    padding: 10px;
}

/* vypnout zoom efekt */
.galerie-thumb--static:hover img {
    transform: none;
}
