/* --- CSS Proměnné a globální nastavení --- */
:root {
    --primary: #1a2a22;
    --accent: #eeba30;
    --dark: #121212;
    --light: #f8f9fa;
    --white: #ffffff;
    --beer-body: #f3a613; /* Přesná barva piva z tvého vzoru konstrukt.css */
    --foam: #ffffff;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CELOPLOŠNÉ REALISTICKÉ POZADÍ PRO CELÝ WEB */
body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.6;
    color: var(--white);
    background: 
        radial-gradient(circle at 50% 40%, rgba(26, 42, 34, 0.75) 0%, rgba(8, 16, 12, 0.96) 90%),
        url('https://images.unsplash.com/photo-1505075106905-fb052892c116?auto=format&fit=crop&q=80&w=1600') center center / cover no-repeat fixed;
    overflow-x: hidden;
    min-height: 100vh;
    padding-top: 102px; /* Odsazení celého webu kvůli fixní hlavičce */
}

/* --- Vždy viditelná Navigace (Header) --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999; /* Vždy nad veškerým obsahem i velkou sklenicí */
    background: rgba(19, 33, 26, 0.95); /* Poloprůhledné tmavé pozadí */
    backdrop-filter: blur(10px); /* Efekt rozmazání podkladu */
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-sizing: border-box;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: var(--white); /* Čistě bílá v základu */
    font-weight: 800;
    font-size: 2rem; /* Velikost textu přizpůsobená většímu logu */
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    transition: color 0.3s ease;
}

.logo-wrapper img {
    width: 70px; /* Zvětšené logo */
    height: 70px;
    display: block;
    border-radius: 50%; /* TOTO DOKONALE OŘÍZNE BÍLÉ ROHY LOGA DO KRUHU */
}

.logo-wrapper:hover {
    color: var(--accent); /* Zlatý hover efekt pro logo */
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--white); /* Čistě bílé texty odkazů */
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Animované vysouvací podtržení zleva doprava při hoveru */
.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    background: var(--accent);
    color: var(--primary) !important;
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 800;
    text-shadow: none !important;
    transition: transform 0.2s ease !important;
}

.nav-cta::after {
    display: none !important; /* Vypnutí podtržení pro CTA tlačítko */
}

.nav-cta:hover {
    transform: scale(1.05);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--white);
    margin: 5px 0;
    transition: 0.3s;
}

/* --- Hero Sekce --- */
.hero-index {
    min-height: 75vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 4rem 5%;
}

.hero-content-box {
    max-width: 800px;
    z-index: 10;
}

.hero-index h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.8rem;
    margin-bottom: 1.5rem;
    color: var(--accent);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.hero-index p {
    font-size: 1.3rem;
    line-height: 1.8;
    color: var(--white);
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.8);
}

.btn-hero {
    background: var(--accent);
    color: var(--primary);
    padding: 15px 40px;
    border-radius: 10px;
    font-weight: 800;
    text-decoration: none;
    display: inline-block;
    margin-top: 2.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.6);
    background: #f0c040;
}

/* --- PLOVOUCÍ WIDGET PIVNÍ SKLENICE --- */
.beer-widget {
    position: fixed;
    bottom: 0;
    left: 50%;
    width: 85vw;
    height: 85%;
    transform: translateX(-50%);
    background: rgba(26, 42, 34, 0.05);
    border-left: 4px solid rgba(255, 255, 255, 0.15);
    border-right: 4px solid rgba(255, 255, 255, 0.15);
    border-top: 4px solid rgba(255, 255, 255, 0.25);
    border-radius: 30px 30px 30px 30px; /* Perfektní zaoblení celé sklenice */
    overflow: hidden;
    z-index: 999;
    box-shadow: 0 -15px 50px rgba(0,0,0,0.6);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    pointer-events: none;
}

.beer-close-btn {
    position: absolute;
    top: 20px;
    right: 25px;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 50%;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1010;
    pointer-events: auto;
    transition: var(--transition);
}
.beer-close-btn:hover {
    background: #d9534f;
    border-color: #d9534f;
    transform: scale(1.1);
}

/* 1:1 PODLE TVÉHO VZORU: Kontejner s vnitřním skleněným stínem */
.beer-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%; 
    transform: translateY(100%);
    z-index: 1;
    box-shadow: inset 40px 0 60px rgba(255,255,255,0.05), inset -40px 0 60px rgba(0,0,0,0.3);
    
    /* KLÍČOVÁ ZMĚNA: Globální průhlednost celého obsahu piva, aby text pod ním dokonale prosvítal */
    opacity: 0.55; 
}

/* 1:1 PODLE TVÉHO VZORU: Přesný realistický přechod piva a kapalin */
.beer-liquid {
    background: linear-gradient(90deg, rgba(0,0,0,0.15) 0%, transparent 20%, transparent 80%, rgba(0,0,0,0.25) 100%),
                linear-gradient(180deg, var(--beer-body) 0%, #ff9000 35%, #b05000 70%, #602000 100%);
    height: 100%;
    width: 100%;
    position: relative;
}

/* 1:1 PODLE TVÉHO VZORU: Bohatá krémová pěna navazující na hladinu */
.beer-foam {
    position: absolute;
    top: -45px;
    left: 0;
    width: 100%;
    height: 90px;
    background: linear-gradient(180deg, #ffffff 0%, #fcf8f0 60%, #f3ebdc 100%);
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    box-shadow: 
        0 -8px 25px rgba(255,255,255,0.6),
        inset 0 10px 20px rgba(255,255,255,1),
        inset 0 -15px 25px rgba(220,210,190,0.6),
        0 10px 15px rgba(0,0,0,0.2);
    animation: foamWobble 4s infinite ease-in-out;
}

@keyframes foamWobble { 
    0%, 100% { transform: scaleY(1) translateY(0); } 
    50% { transform: scaleY(1.06) translateY(-5px); } 
}

/* Bublinky v pivu */
.bubbles { position: absolute; bottom: 0; left: 0; width: 100%; height: 100%; z-index: 2; }
.bubble { position: absolute; bottom: -20px; background: rgba(255, 255, 255, 0.4); border-radius: 50%; box-shadow: inset -1px -1px 3px rgba(0,0,0,0.1), 1px 1px 2px rgba(255,255,255,0.6); animation: rise var(--duration) infinite ease-in; }
@keyframes rise { 0% { transform: translateY(0) scale(1); opacity: 0; } 20% { opacity: 0.7; } 100% { transform: translateY(-80vh) scale(1.3); opacity: 0; } }

#rings-container { position: absolute; bottom: 0; left: 0; width: 100%; height: 100%; z-index: 0; }

/* Zprávy uvnitř velké sklenice */
.floating-msg {
    position: absolute; top: 35%; left: 30%; right: 30%; background: rgba(13, 26, 20, 0.96); color: var(--accent); padding: 2rem 3rem; border-radius: 15px; font-size: 1.5rem; font-weight: 600; text-align: center; border: 2px solid var(--accent); z-index: 100; opacity: 0; transition: opacity 0.5s ease; box-shadow: 0 20px 50px rgba(0,0,0,0.8); font-family: 'Playfair Display', serif; backdrop-filter: blur(5px);
}
.floating-msg.show { opacity: 1; }

/* --- Sekce Příběh --- */
#pribeh {
    background-color: rgba(244, 247, 245, 0.03);
    backdrop-filter: blur(2px);
    padding: 5rem 5% 4rem 5%;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.pribeh-container { max-width: 1200px; margin: 0 auto; }
.pribeh-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 4rem; align-items: center; }
.pribeh-content h2 { font-family: 'Playfair Display', serif; font-size: 2.8rem; color: var(--accent); margin-bottom: 1.5rem; line-height: 1.2; }
.pribeh-content p { font-size: 1.1rem; line-height: 1.8; color: rgba(255,255,255,0.9); margin-bottom: 1.5rem; }
.pribeh-cards { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.pribeh-card-item {
    background: rgba(26, 42, 34, 0.6); padding: 2rem; border-radius: 20px; backdrop-filter: blur(5px); border: 1px solid rgba(255,255,255,0.05); border-left: 5px solid var(--accent);
}
.pribeh-card-item h4 { font-size: 1.25rem; margin: 0 0 0.5rem 0; color: var(--accent); font-weight: 800; }
.pribeh-card-item p { font-size: 0.95rem; line-height: 1.6; color: rgba(255,255,255,0.85); margin: 0; }

/* --- Sekce Piva --- */
#piva { max-width: 1200px; margin: 0 auto; padding: 5rem 5%; }
.section-title { text-align: center; margin-bottom: 3rem; }
.section-title h2 { font-family: 'Playfair Display', serif; font-size: 2.5rem; color: var(--accent); }
.piva-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2.5rem; }
.piva-grid a { text-decoration: none; color: inherit; display: block; }
.pivo-card {
    background: rgba(26, 42, 34, 0.5); border-radius: 20px; padding: 2.5rem; backdrop-filter: blur(5px); box-shadow: 0 10px 30px rgba(0,0,0,0.2); transition: var(--transition); border: 1px solid rgba(255,255,255,0.05); text-align: center;
}
.pivo-card:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(0,0,0,0.4); background: rgba(26, 42, 34, 0.7); }
.pivo-card h3 { font-family: 'Playfair Display', serif; font-size: 1.6rem; margin-bottom: 0.5rem; color: var(--white); }
.pivo-card p { color: rgba(255,255,255,0.8); font-size: 0.95rem; line-height: 1.6; }

/* --- Charakteristika Banner --- */
.charakteristika-banner-section { max-width: 1200px; margin: 0 auto 4rem auto; padding: 0 5%; }
.charakteristika-banner {
    background: rgba(26, 42, 34, 0.7); color: white; padding: 2.5rem; border-radius: 25px; backdrop-filter: blur(5px); box-shadow: 0 15px 35px rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.05);
}
.charakteristika-banner h3 { font-family: 'Playfair Display', serif; color: var(--accent); font-size: 1.6rem; margin: 0 0 1rem 0; }
.charakteristika-banner p { font-size: 1.1rem; line-height: 1.7; margin: 0; opacity: 0.95; font-weight: 500; }

/* --- Údržbová lišta a patička --- */
.admin-maintenance-bar { 
    background: #d9534f; 
    color: #fff; 
    text-align: center; 
    padding: 8px; 
    font-size: 0.9rem; 
    font-weight: bold; 
    position: fixed; 
    top: 0; 
    left: 0;
    width: 100%;
    z-index: 10000; 
}

/* Posuny prvků pokud je lišta údržby aktivní */
.admin-maintenance-bar ~ header {
    top: 37px;
}
.admin-maintenance-bar ~ body {
    padding-top: 139px;
}

footer { color: rgba(255,255,255,0.7); text-align: center; padding: 4rem 1rem; margin-top: 5rem; font-size: 0.9rem; line-height: 1.8; border-top: 1px solid rgba(255,255,255,0.05); }

.btn-toggle-animation {
    background: transparent; border: 1px dashed var(--accent); color: var(--accent); padding: 4px 12px; border-radius: 4px; font-size: 0.8rem; cursor: pointer; margin-top: 10px; transition: var(--transition);
}
.btn-toggle-animation:hover { background: var(--accent); color: var(--primary); }


/* =========================================================================
   MOBILNÍ ZOBRAZENÍ A RESPONZIVITA
   ========================================================================= */
@media (max-width: 768px) {
    /* Obecné a navigační prvky */
    .mobile-menu-toggle { display: block; }
    .nav-links { position: fixed; top: 0; right: -100%; width: 80%; height: 100vh; background: #13211a; flex-direction: column; justify-content: center; align-items: center; transition: 0.4s ease; z-index: 1000; }
    .nav-links.active { right: 0; }
    .hero-index h1 { font-size: 2.5rem; }
    .piva-grid { grid-template-columns: 1fr; }
    .beer-widget { width: 95vw; height: 85%; }
    
    /* Příběh */
    .pribeh-grid { grid-template-columns: 1fr; gap: 2rem; }

    /* Globální úpravy nadpisů pro všechny podstránky */
    main h1 { font-size: 2.2rem !important; margin-bottom: 1.5rem !important; }
    
    /* Pokladna (přepsání inline gridu nastaveného přímo v PHP) */
    .checkout-grid { 
        grid-template-columns: 1fr !important; 
        gap: 2rem !important; 
        padding: 30px 5% !important; 
    }
    
    /* Recenze a ostatní dvoustloupcové layouty (odchycení inline stylů) */
    main > div[style*="grid-template-columns"] { 
        grid-template-columns: 1fr !important; 
        gap: 2rem !important; 
    }
    
    /* Zrušení sticky efektu postranních panelů na mobilu (aby nepřekážely při scrollování) */
    aside { 
        position: relative !important; 
        top: 0 !important; 
        width: 100% !important; 
        margin-top: 2rem !important;
    }
    
    /* Košík položky (skládání prvků flexboxu pod sebe) */
    .cart-items > div { 
        flex-direction: column !important; 
        align-items: flex-start !important; 
        padding: 20px !important; 
        gap: 15px !important; 
    }
    /* Poslední div s ovládáním kusů a smazáním v košíku */
    .cart-items > div > div:nth-child(3) { 
        width: 100% !important; 
        justify-content: space-between !important; 
        margin-top: 10px !important; 
    }
    
    /* Souhrnný box košíku (odchycení podle paddingu a flexboxu) */
    main > div[style*="padding: 40px"] { 
        flex-direction: column !important; 
        text-align: center !important; 
        padding: 25px 20px !important; 
    }
    main > div[style*="padding: 40px"] > a { 
        width: 100% !important; 
        box-sizing: border-box !important; 
        margin-top: 10px !important;
    }
}