/* --- GLOBÁLNÍ NASTAVENÍ --- */
:root {
    --black: #000000;
    --dark-bg: #111111;
    --light-gray: #f4f4f4;
}

body {
    font-family: 'Source Sans 3', sans-serif;
    color: #1a1a1a;
    background-color: #ffffff;
    margin: 0;
    padding: 0;
}

.bebas-font, h1, h2, h3, h4, .nav-link {
    font-family: 'Bebas Neue', cursive !important;
    font-weight: 400 !important; 
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* --- NAVBAR --- */
.bg-black { background-color: var(--black) !important; }

/* Zvětšení fontu v hlavním menu */
.navbar .nav-link {
    font-size: 24px !important; /* Ideální velikost pro Bebas Neue, můžeš zkusit i 26px */
    transition: color 0.3s ease; /* Přidá plynulost, pokud tam máš nějaký hover efekt */
}

/* --- CAROUSEL --- */
.carousel-item {
    height: 80vh;
    min-height: 500px;
    background-color: var(--black);
}

.carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1;
}

.carousel-caption {
    text-align: center;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    left: 5%;
    right: 5%;
    z-index: 2;
}

.carousel-caption h2 {
    font-size: 5rem;
    line-height: 0.9;
    color: #ffffff;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
}

.carousel-caption p {
    color: #ffffff;
    text-shadow: 1px 1px 6px rgba(0,0,0,0.8);
}

/* --- QUICK INFO --- */
.quick-info-section {
    padding: 100px 0;
    background-color: var(--light-gray);
    border-bottom: 1px solid #eee;
}

.info-box { text-align: center; }
.info-box i { font-size: 3rem; margin-bottom: 25px; color: var(--black); display: block; }

.btn-custom-link {
    color: var(--black);
    text-decoration: none;
    font-weight: bold;
    border-bottom: 2px solid var(--black);
    padding-bottom: 5px;
    font-family: 'Bebas Neue', cursive;
    font-size: 1.2rem;
    transition: 0.3s ease;
}

.btn-custom-link:hover {
    color: #555;
    border-color: #555;
}

/* --- NÁPOJOVÝ LÍSTEK (MENU) --- */
.page-header {
    background-color: var(--dark-bg);
    padding: 60px 0;
    border-bottom: 1px solid #222;
}

.page-header h1 {
    font-size: 3.5rem;
}

.menu-container {
    max-width: 750px;
    margin: 0 auto;
}

.menu-category-title {
    border-bottom: 1px solid #ccc;
    padding-bottom: 8px;
    margin-bottom: 20px;
    font-size: 1.8rem;
    letter-spacing: 2px;
}

.menu-item-row {
    border-bottom: 1px solid #f2f2f2;
    padding: 10px 0;
}

.menu-item-row:last-child {
    border-bottom: none;
}

.menu-item-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--black);
}

.menu-item-meta {
    font-size: 0.8rem;
    color: #888;
}

.menu-item-price {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--black);
}

/* --- SCROLL REVEAL ANIMACE --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- FORMULÁŘE --- */
.custom-placeholder::placeholder {
    color: rgba(255, 255, 255, 0.65) !important;
    opacity: 1;
}

/* --- FOOTER --- */
footer {
    background-color: var(--black);
    color: #ffffff;
    padding: 80px 0 0 0;
}

.status-indicator {
    width: 12px; height: 12px; border-radius: 50%; display: inline-block; margin-right: 10px;
}
.dot-green { background-color: #2ecc71; box-shadow: 0 0 10px #2ecc71; }
.dot-red { background-color: #e74c3c; box-shadow: 0 0 10px #e74c3c; }

.opening-row {
    display: flex; justify-content: space-between;
    border-bottom: 1px solid #222; padding: 8px 0;
    font-size: 0.95rem;
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 25px;
    border-top: 1px solid #222;
    font-size: 0.8rem;
    color: #666;
}

/* --- NOVÁ ČASOVÁ OSA (TIMELINE V2 - ŠMRNC) --- */
.timeline-container {
    padding: 60px 0;
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

/* Svislá čára uprostřed */
.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background-color: var(--light-gray); /* Světlá čára */
    transform: translateX(-50%);
}

.timeline-row {
    position: relative;
    margin-bottom: 60px;
    width: 100%;
}
.timeline-row::after {
    content: "";
    display: table;
    clear: both;
}

/* Obsah (bublina) */
.timeline-content {
    position: relative;
    width: 45%;
    background-color: var(--light-gray);
    padding: 25px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.timeline-row:nth-child(odd) .timeline-content { float: left; }
.timeline-row:nth-child(even) .timeline-content { float: right; }

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Šipky (Trojuhelníky) k ose */
.timeline-content::after {
    content: '';
    position: absolute;
    top: 20px;
    width: 0;
    height: 0;
    border: 12px solid transparent;
}
.timeline-row:nth-child(odd) .timeline-content::after {
    right: -24px;
    border-left-color: var(--light-gray);
}
.timeline-row:nth-child(even) .timeline-content::after {
    left: -24px;
    border-right-color: var(--light-gray);
}

/* Ikonka uprostřed */
.timeline-icon {
    position: absolute;
    top: 10px;
    left: 50%;
    width: 44px;
    height: 44px;
    background-color: var(--black);
    color: #fff;
    border: 4px solid #fff;
    border-radius: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    font-size: 1.1rem;
    box-shadow: 0 0 0 4px var(--light-gray); /* Zvýrazní odstup od čáry */
}

/* Datum a čas na opačné straně */
.timeline-date {
    position: absolute;
    top: 15px;
    width: 45%;
}
.timeline-row:nth-child(odd) .timeline-date {
    right: 0;
    text-align: left;
    padding-left: 40px;
}
.timeline-row:nth-child(even) .timeline-date {
    left: 0;
    text-align: right;
    padding-right: 40px;
}

/* Přeškrtnuté a zbledlé staré akce */
.timeline-row.past-event .timeline-content,
.timeline-row.past-event .timeline-icon,
.timeline-row.past-event .timeline-date {
    opacity: 0.5;
}
.timeline-row.past-event .timeline-content:hover { opacity: 0.8; }
.timeline-row.past-event img { filter: grayscale(100%); }
.timeline-row.past-event h3 { text-decoration: line-through; color: #777 !important; }

/* Ladění modálního okna */
.modal-content { background-color: var(--light-gray); border: none; }
.modal-header { background-color: var(--black); color: white; border-bottom: none; }
.modal-header .btn-close { filter: invert(1) grayscale(100%) brightness(200%); }

/* RESPONZIVITA (Mobily) */
@media (max-width: 768px) {
    .timeline::before { left: 30px; }
    
    .timeline-content {
        width: calc(100% - 70px);
        float: right !important;
    }
    
    .timeline-row:nth-child(odd) .timeline-content::after,
    .timeline-row:nth-child(even) .timeline-content::after {
        left: -24px;
        right: auto;
        border-left-color: transparent;
        border-right-color: var(--light-gray);
    }
    
    .timeline-icon { left: 30px; }
    
    .timeline-date {
        position: relative;
        width: 100%;
        top: 0;
        left: 0 !important;
        right: 0 !important;
        text-align: left !important;
        padding-left: 70px !important;
        padding-right: 0 !important;
        margin-bottom: 15px;
    }
}

/* --- PLYNULEJŠÍ HAMBURGER MENU --- */
.navbar-collapse.collapsing {
    transition: height 0.6s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

/* CSS Masonry Layout */
.masonry-grid {
    column-count: 3; /* 3 sloupce na velkém monitoru */
    column-gap: 1.25rem;
    width: 100%;
}

.masonry-item {
    display: inline-block;
    width: 100%;
    margin-bottom: 1.25rem;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}

.masonry-item img {
    display: block;
    width: 100%;
    height: auto;
    transition: all 0.5s ease;
    opacity: 1;
}

.masonry-item:hover img {
    transform: scale(1.08);
    filter: brightness(0.6);
}

/* Popisek, který se objeví při najetí */
.masonry-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    color: white;
    padding: 30px 15px 15px;
    font-size: 1.4rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    text-align: center;
}

.masonry-item:hover .masonry-caption {
    opacity: 1;
}

/* Responzivita pro mobily a tablety */
@media (max-width: 992px) {
    .masonry-grid { column-count: 2; }
}
@media (max-width: 576px) {
    .masonry-grid { column-count: 1; }
    .masonry-caption { opacity: 1; background: rgba(0,0,0,0.3); padding: 10px; font-size: 1.1rem; }
}

/* --- JEMNÉ SCROLLOVÁNÍ (Globální pro celý web) --- */
html {
    scroll-behavior: smooth;
}

/* --- PRELOADER --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--light-gray); /* Pozadí při načítání */
    z-index: 99999; /* Musí být nad vším ostatním */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(0, 0, 0, 0.1); /* Průhledná kolejnice */
    border-top-color: var(--black); /* Rotující černá část */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Třída, kterou JS přidá pro plynulé zmizení */
.preloader-hidden {
    opacity: 0;
    visibility: hidden;
}

/* --- BACK TO TOP TLAČÍTKO --- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: var(--black);
    color: #ffffff;
    border-radius: 50%; /* Kulatý tvar */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 999;
    opacity: 0; /* Na začátku skryté */
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    text-decoration: none;
}

.back-to-top:hover {
    background-color: #333;
    color: #ffffff;
    transform: translateY(-5px); /* Poskočí mírně nahoru při najetí myší */
}

/* Třída, kterou JS přidá, když odscrollujeme dolů */
.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* --- PLOVOUCÍ TLAČÍTKO PRO INSTALACI APPKY --- */
.pwa-floating-btn {
    position: fixed;
    bottom: 30px;
    left: 30px; /* Umístění vlevo, protože vpravo je šipka nahoru */
    z-index: 998; /* Pod preloaderem, ale nad běžným obsahem */
    background-color: var(--black);
    color: #ffffff;
    padding: 10px 22px;
    border-radius: 50px; /* Tvar pilulky */
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Bebas Neue', cursive;
    font-size: 1.3rem;
    letter-spacing: 1px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.pwa-floating-btn:hover {
    background-color: #222;
    color: #ffffff;
    transform: translateY(-5px);
}

.pwa-floating-icon {
    color: #ffc107; /* Orlácká/Bootstrap varovná žlutá pro kontrast */
    font-size: 1.4rem;
}

/* Úpravy pro mobily */
@media (max-width: 768px) {
    .pwa-floating-btn {
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%); /* Vycentrování na střed */
        white-space: nowrap; /* Zabrání zalomení textu */
    }
    
    .pwa-floating-btn:hover {
        /* Musíme zachovat translateX kvůli vycentrování při hover efektu */
        transform: translateX(-50%) translateY(-5px); 
    }
}

/* --- MODERNÍ HLAVIČKA (Bílá verze + zrušení překryvu) --- */

/* 1. Návrat lišty nad obrázek a nastavení prémiové černé */
.navbar { 
    position: relative !important; /* Zruší překrývání obrázku */
    background-color: #0a0a0a !important; /* Elegantní hluboká černá */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Velmi jemná linka oddělující fotku */
}

/* 2. Animovaná linka pod běžnými odkazy (čistě bílá) */
.navbar-nav .nav-item .nav-link {
    position: relative;
    color: #ffffff !important; 
    opacity: 0.8 !important; /* Lehké ztlumení neaktivního textu */
}

.navbar-nav .nav-item .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0px; 
    left: 50%;
    background-color: #ffffff; /* Změněno na bílou */
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-item .nav-link:hover {
    opacity: 1 !important; /* Rozsvícení při najetí myší */
}

.navbar-nav .nav-item .nav-link:hover::after,
.navbar-nav .nav-item .nav-link.active::after {
    width: 80%; 
}

/* 3. Zvýraznění položky KONTAKT jako tlačítka (Bílá varianta) */
.navbar-nav .nav-item:last-child .nav-link {
    border: 2px solid #ffffff; /* Bílé ohraničení */
    color: #ffffff !important;
    opacity: 1 !important; 
    border-radius: 6px;
    padding: 6px 20px !important;
    margin-left: 15px; 
    transition: all 0.3s ease;
}

/* Skrytí animované linky pod tlačítkem Kontakt */
.navbar-nav .nav-item:last-child .nav-link::after {
    display: none;
}

/* Hover efekt pro tlačítko Kontakt - po najetí se vyplní bíle a text zčerná */
.navbar-nav .nav-item:last-child .nav-link:hover {
    background-color: #ffffff;
    color: #000000 !important;
    transform: translateY(-2px); 
}