/* ==========================================================================
   Žižkovna – vylepšení vzhledu a funkčnosti (sdílené napříč stránkami)
   ========================================================================== */

/* ------------------------------ Přístupnost ------------------------------ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
.btn:focus-visible {
    outline: 3px solid var(--primary-hover);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ------------------------- Navigace: stav otevřeno ------------------------ */
.open-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
}
.open-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}
.open-badge.is-open {
    color: #1f6b3f;
    background: rgba(34, 128, 74, 0.12);
}
.open-badge.is-closed {
    color: #a12626;
    background: rgba(196, 52, 52, 0.1);
}

/* --------------------------- Language switcher ----------------------------- */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    margin-right: 16px;
}
.lang-btn {
    border: 1px solid var(--border);
    background: var(--bg-card, #fff);
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 4px 7px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.lang-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.lang-btn.is-active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

@media (max-width: 850px) {
    .lang-switcher {
        margin-left: 0;
        margin-right: 8px;
        order: 2;
    }
    .nav-links .lang-switcher { display: none; }
}

/* ------------------------------ Hamburger -------------------------------- */
.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    width: 44px;
    height: 44px;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
    content: '';
    display: block;
    width: 26px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle span { position: relative; }
.nav-toggle span::before { position: absolute; top: -8px; }
.nav-toggle span::after { position: absolute; top: 8px; }
.nav-toggle.is-active span { background: transparent; }
.nav-toggle.is-active span::before { transform: translateY(8px) rotate(45deg); }
.nav-toggle.is-active span::after { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 850px) {
    .nav-toggle { display: block; }

    nav .nav-container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding-top: 6px;
    }
    .nav-links.is-open { display: flex; }
    .nav-links a {
        padding: 14px 4px;
        border-top: 1px solid var(--border);
        width: 100%;
    }
    .nav-links .open-badge { margin: 12px 0 4px; }
}

/* --------------------------- Hero s fotkou ------------------------------- */
.hero.hero-photo {
    position: relative;
    padding: 120px 0;
    background: linear-gradient(rgba(11, 20, 36, 0.62), rgba(11, 20, 36, 0.72)),
        url('assets/images/IMG_4214.JPEG') center/cover no-repeat;
    background-attachment: fixed;
}
.hero.hero-photo .hero-content {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(6px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}
.hero.hero-photo .hero-content h2 { color: #fff; }
.hero.hero-photo .hero-content p { color: rgba(255, 255, 255, 0.85); }
.hero.hero-photo .blue-divider::before { background: linear-gradient(to right, transparent, #fff); }
.hero.hero-photo .blue-divider::after { background: linear-gradient(to left, transparent, #fff); }
.hero.hero-photo .blue-divider span { color: #fff; }

.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}
.hero.hero-photo .btn {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.6);
}
.hero.hero-photo .btn:hover {
    background: #fff;
    color: var(--primary);
    border-color: #fff;
}
.hero.hero-photo .btn-filled {
    background: #fff;
    color: var(--primary);
    border-color: #fff;
}
.hero.hero-photo .btn-filled:hover {
    background: rgba(255, 255, 255, 0.85);
}

@media (max-width: 850px) {
    .hero.hero-photo { background-attachment: scroll; padding: 80px 0; }
}

/* --------------------------- Doporučené pokrmy --------------------------- */
.featured {
    padding: 100px 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}
.dish-card {
    background: var(--page-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 18px 35px rgba(24, 42, 72, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.dish-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 50px rgba(24, 42, 72, 0.12);
}
.dish-card .dish-img {
    height: 200px;
    background-size: cover;
    background-position: center;
}
.dish-card .dish-body {
    padding: 22px 24px;
}
.dish-card .dish-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 8px;
}
.dish-card .dish-name {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
}
.dish-card .dish-price {
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
}
.dish-card .dish-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ------------------------------- Mapa ------------------------------------ */
.map-embed {
    margin-top: 40px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 18px 35px rgba(24, 42, 72, 0.06);
    line-height: 0;
}
.map-embed iframe {
    width: 100%;
    height: 380px;
    border: 0;
    display: block;
}

.field-hint {
    display: block;
    margin-top: 8px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* --------------------- Rezervace: rychlá volba osob --------------------- */
.guest-quick {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
.guest-quick button {
    background: rgba(24, 42, 72, 0.05);
    border: 1px solid var(--border);
    color: var(--text-muted);
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}
.guest-quick button:hover { color: var(--primary); border-color: var(--primary); }
.guest-quick button.is-active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ---------------------- Animace při scrollu (reveal) -------------------- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    will-change: opacity, transform;
}
.reveal.is-visible {
    opacity: 1;
    transform: none;
}
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* ------------------------------ Lightbox -------------------------------- */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(11, 20, 36, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox img {
    max-width: 92vw;
    max-height: 88vh;
    border-radius: 10px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.lightbox-close {
    position: absolute;
    top: 22px;
    right: 28px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.4rem;
    line-height: 1;
    cursor: pointer;
}
.gallery-item { position: relative; }
.gallery-item::after {
    content: '⤢';
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(24, 42, 72, 0.7);
    color: #fff;
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.gallery-item:hover::after { opacity: 1; }

/* ------------------------------ Patička --------------------------------- */
.footer-social {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 14px;
}
.footer-social a {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--border);
    color: var(--text-muted);
    transition: all 0.2s ease;
}
.footer-social a:hover {
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
}
.footer-social svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------------------------- Cookie lišta ------------------------------ */
.cookie-bar {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: 720px;
    margin: 0 auto;
    background: var(--primary);
    color: #fff;
    border-radius: 14px;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    gap: 18px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    z-index: 1500;
    transform: translateY(150%);
    transition: transform 0.4s ease;
}
.cookie-bar.is-visible { transform: none; }
.cookie-bar p { font-size: 0.9rem; line-height: 1.5; margin: 0; }
.cookie-bar a { color: #fff; text-decoration: underline; }
.cookie-bar button {
    flex-shrink: 0;
    background: #fff;
    color: var(--primary);
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    white-space: nowrap;
}
@media (max-width: 560px) {
    .cookie-bar { flex-direction: column; align-items: stretch; text-align: center; }
}
