/* ==========================================================================
   KOLIBA ČECHER – Hlavní design tokeny a sdílené styly
   ========================================================================== */

:root {
    /* Paleta barev (dřevo, les, přírodní odstíny) */
    --color-wood-darkest: #1f140e;       /* Tmavý vyřezávaný trám */
    --color-wood-dark: #2d1e15;          /* Tmavý ořech */
    --color-wood-bark: #3e2b1f;          /* Kůra / ořech */
    --color-wood-medium: #543d2b;        /* Mořené dřevo */
    --color-wood-light: #7c583f;         /* Přírodní dub */
    --color-wood-honey: #b48448;         /* Medový dub */
    --color-wood-amber: #d49b53;         /* Zlatavá pryskyřice */

    /* Podkladové panely a desky (vysoký kontrast pro WCAG AA) */
    --color-plank-bg: #261912;
    --color-plank-surface: #342319;
    --color-card-bg: #2b1d14;
    --color-card-border: #4a3424;
    --color-card-highlight: #5c412d;

    /* Světlé podklady */
    --color-paper: #f7f2e7;
    --color-paper-dim: #ede4d1;
    --color-cream: #fbf7ee;
    --color-cream-muted: #c9bea9;

    /* Akcenty */
    --color-accent-green: #3a6344;       /* Lesní mechově zelená */
    --color-accent-green-hover: #497a55;
    --color-accent-green-light: #6a9b75;
    --color-accent-brick: #b84a39;       /* Cihlová / krbová červená */
    --color-accent-brick-hover: #cf5744;

    /* Systémové / stavové barvy */
    --color-success: #2e7d32;
    --color-success-bg: #1e3a24;
    --color-warning: #e65100;
    --color-warning-bg: #422912;
    --color-error: #c62828;
    --color-error-bg: #3f1917;
    --color-info: #1565c0;
    --color-info-bg: #13283f;

    /* Typografie */
    --font-heading: 'Zilla Slab', 'Georgia', 'Times New Roman', serif;
    --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

    /* Mezery */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;

    /* Rámečky a stíny */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --shadow-wood: 0 4px 14px rgba(0, 0, 0, 0.45);
    --shadow-plank: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 6px 18px rgba(0, 0, 0, 0.5);
    --shadow-carved: inset 0 2px 4px rgba(0, 0, 0, 0.6);
}

/* Reset a základ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-cream);
    background-color: var(--color-wood-darkest);
    /* Bezešvá procedurální SVG textura dřeva s letokruhy a prkny */
    background-image: 
        radial-gradient(ellipse at 50% 0%, rgba(180, 132, 72, 0.08) 0%, transparent 70%),
        repeating-linear-gradient(
            0deg,
            rgba(0, 0, 0, 0.15) 0px,
            rgba(0, 0, 0, 0.15) 2px,
            transparent 2px,
            transparent 40px
        ),
        repeating-linear-gradient(
            90deg,
            #1b110b 0px,
            #23160e 25px,
            #1d120c 60px,
            #261810 110px,
            #1e130d 150px
        );
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-paper);
    line-height: 1.25;
    font-weight: 700;
}

a {
    color: var(--color-wood-amber);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-paper);
    text-decoration: underline;
}

/* Tlačítka ve stylu dřevěné cedulky / tesaného prkna */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-wood-honey);
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    background: linear-gradient(180deg, var(--color-wood-amber) 0%, var(--color-wood-honey) 100%);
    color: var(--color-wood-darkest);
    border-color: #f0c384;
}

.btn-primary:hover {
    background: linear-gradient(180deg, #e4ac68 0%, var(--color-wood-amber) 100%);
    color: #000;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-secondary {
    background: linear-gradient(180deg, var(--color-wood-light) 0%, var(--color-wood-medium) 100%);
    color: var(--color-paper);
    border-color: var(--color-wood-light);
}

.btn-secondary:hover {
    background: linear-gradient(180deg, #8d654a 0%, var(--color-wood-light) 100%);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

.btn-success {
    background: linear-gradient(180deg, var(--color-accent-green-hover) 0%, var(--color-accent-green) 100%);
    color: #fff;
    border-color: var(--color-accent-green-light);
}

.btn-success:hover {
    background: linear-gradient(180deg, var(--color-accent-green-light) 0%, var(--color-accent-green-hover) 100%);
    color: #fff;
    text-decoration: none;
}

.btn-danger {
    background: linear-gradient(180deg, var(--color-accent-brick-hover) 0%, var(--color-accent-brick) 100%);
    color: #fff;
    border-color: #e57361;
}

.btn-danger:hover {
    background: linear-gradient(180deg, #dd6552 0%, var(--color-accent-brick-hover) 100%);
    color: #fff;
    text-decoration: none;
}

/* Formulářové prvky */
.form-group {
    margin-bottom: var(--space-md);
}

.form-label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-paper-dim);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-family: var(--font-body);
    background-color: rgba(18, 12, 8, 0.85);
    color: var(--color-paper);
    border: 1px solid var(--color-card-border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-carved);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-wood-honey);
    box-shadow: 0 0 0 3px rgba(180, 132, 72, 0.25), var(--shadow-carved);
    background-color: rgba(14, 9, 6, 0.95);
}

.form-text {
    font-size: 0.85rem;
    color: var(--color-cream-muted);
    margin-top: 0.35rem;
}

/* Flash upozornění */
.alert {
    padding: 0.9rem 1.25rem;
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-md);
    border-left: 4px solid transparent;
    font-size: 0.95rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.alert-success { background-color: var(--color-success-bg); border-color: #4caf50; color: #c8e6c9; }
.alert-error   { background-color: var(--color-error-bg);   border-color: #f44336; color: #ffcdd2; }
.alert-warning { background-color: var(--color-warning-bg); border-color: #ff9800; color: #ffe0b2; }
.alert-info    { background-color: var(--color-info-bg);    border-color: #2196f3; color: #bbdefb; }

/* Dřevěné panely a desky */
.wood-panel {
    background-color: var(--color-plank-surface);
    border: 1px solid var(--color-card-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-plank);
    padding: var(--space-xl);
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 var(--space-md);
    width: 100%;
}

/* ==========================================================================
   VEŘEJNÁ HLAVIČKA A NAVIGACE
   ========================================================================== */
.site-header {
    background: rgba(29, 18, 12, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--color-card-border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
    color: var(--color-paper);
}

.site-brand:hover {
    text-decoration: none;
}

.brand-badge {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--color-wood-amber), var(--color-wood-light));
    border: 2px solid var(--color-wood-honey);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-family: var(--font-heading);
    font-weight: bold;
    color: var(--color-wood-darkest);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 3px 6px rgba(0, 0, 0, 0.4);
}

.brand-text h1 {
    font-size: 1.35rem;
    margin: 0;
    letter-spacing: 0.03em;
    color: var(--color-paper);
}

.brand-location {
    font-size: 0.75rem;
    color: var(--color-wood-amber);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-cream-muted);
    padding: 0.6rem 1rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    text-decoration: none;
}

.nav-link:hover {
    color: var(--color-paper);
    background-color: rgba(255, 255, 255, 0.05);
    text-decoration: none;
}

.nav-link.active {
    color: var(--color-wood-amber);
    background: rgba(180, 132, 72, 0.12);
    border-bottom: 2px solid var(--color-wood-amber);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger-line {
    display: block;
    width: 26px;
    height: 3px;
    margin: 5px 0;
    background-color: var(--color-paper);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ==========================================================================
   HERO SEKCE (Hlavní stránka)
   ========================================================================== */
.hero {
    position: relative;
    min-height: 65vh;
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-2xl) var(--space-md);
    background-color: var(--color-wood-darkest);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: inset 0 -30px 40px rgba(0, 0, 0, 0.7);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(26, 17, 11, 0.65) 0%,
        rgba(31, 20, 14, 0.8) 60%,
        rgba(31, 20, 14, 0.95) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 860px;
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    color: var(--color-paper);
    margin-bottom: var(--space-md);
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
    letter-spacing: 0.02em;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.2vw, 1.4rem);
    color: var(--color-paper-dim);
    margin-bottom: var(--space-xl);
    line-height: 1.5;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================================================
   HOMEPAGE DVOUSLOUPEC (Přednosti vs Nadcházející událost)
   ========================================================================== */
.home-split-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--space-xl);
    margin: var(--space-2xl) 0;
}

.feature-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.feature-tile {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--color-card-border);
    border-radius: var(--radius-md);
    padding: 1.25rem 1rem;
    text-align: center;
    transition: transform 0.2s, border-color 0.2s;
}

.feature-tile:hover {
    transform: translateY(-2px);
    border-color: var(--color-wood-honey);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.feature-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-paper);
}

/* Karta nadcházející události na homepage */
.upcoming-event-card {
    background: var(--color-plank-surface);
    border: 2px solid var(--color-card-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-plank);
    display: flex;
    flex-direction: column;
}

.upcoming-event-img {
    position: relative;
    height: 220px;
    background-color: #1a100b;
}

.upcoming-event-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-date-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--color-wood-amber);
    color: var(--color-wood-darkest);
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-weight: bold;
    font-size: 0.85rem;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
}

.upcoming-event-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.upcoming-event-body h3 {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
}

.upcoming-event-body p {
    color: var(--color-cream-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex: 1;
}

/* ==========================================================================
   INZERCE (Karty)
   ========================================================================== */
.ads-section {
    margin: var(--space-2xl) 0;
}

.ads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 1.25rem;
}

.ad-card {
    background: var(--color-plank-surface);
    border: 1px solid var(--color-card-border);
    border-top: 3px solid var(--color-wood-amber);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    box-shadow: var(--shadow-wood);
}

.ad-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: var(--color-paper);
}

.ad-card p {
    color: var(--color-paper-dim);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ==========================================================================
   INTERAKTIVNÍ DLAŽDICE NA STRÁNCE /akce
   ========================================================================== */
.action-tiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.action-tile {
    background: var(--color-plank-surface);
    border: 2px solid var(--color-card-border);
    border-radius: var(--radius-md);
    padding: 1.5rem 1rem;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    color: var(--color-cream);
    box-shadow: var(--shadow-wood);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

.action-tile:hover {
    transform: translateY(-3px);
    border-color: var(--color-wood-honey);
    text-decoration: none;
    color: var(--color-paper);
}

.action-tile.tile-active {
    border-color: var(--color-wood-amber);
    background: linear-gradient(180deg, var(--color-plank-surface), #3e2a1e);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 0 2px var(--color-wood-amber);
}

.action-tile-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    display: block;
}

.action-tile-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
}

.action-detail-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

.action-detail-panel.panel-active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   FOTOGALERIE A LIGHTBOX
   ========================================================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
    margin: 1.5rem 0;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    height: 180px;
    background: #190f0a;
    border: 1px solid var(--color-card-border);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    display: block;
    text-decoration: none;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-caption-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.75);
    color: var(--color-paper);
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.2s;
    text-align: center;
}

.gallery-item:hover .gallery-caption-overlay {
    opacity: 1;
}

/* Vanilla Lightbox Modal */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.lightbox-overlay.active {
    display: flex;
    opacity: 1;
}

.lightbox-container {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-image {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.9);
}

.lightbox-caption {
    margin-top: 0.75rem;
    color: var(--color-paper);
    font-size: 0.95rem;
    text-align: center;
}

.lightbox-close, .lightbox-prev, .lightbox-next {
    position: absolute;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background 0.2s;
}

.lightbox-close {
    top: -50px;
    right: 0;
}

.lightbox-prev {
    left: -60px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: -60px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
    background: var(--color-wood-amber);
    color: #000;
}

/* ==========================================================================
   RESTAURACE A JÍDELNÍ LÍSTEK
   ========================================================================== */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.menu-category {
    background: var(--color-plank-surface);
    border: 1px solid var(--color-card-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-wood);
}

.menu-category h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-card-border);
    color: var(--color-wood-amber);
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed rgba(74, 52, 36, 0.5);
}

.menu-item-info {
    flex: 1;
    padding-right: 1rem;
}

.menu-item-title {
    font-weight: 600;
    color: var(--color-paper);
    font-size: 1.05rem;
}

.menu-item-desc {
    font-size: 0.85rem;
    color: var(--color-cream-muted);
}

.menu-item-price {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-wood-amber);
    white-space: nowrap;
}

/* ==========================================================================
   KONTAKT A MAPA
   ========================================================================== */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    margin-top: var(--space-xl);
}

.contact-info-card {
    background: var(--color-plank-surface);
    border: 1px solid var(--color-card-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

#map {
    width: 100%;
    height: 380px;
    border-radius: var(--radius-md);
    border: 2px solid var(--color-card-border);
    box-shadow: var(--shadow-wood);
}

/* Antispam honeypot skrývání */
.form-hp {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    visibility: hidden !important;
}

/* ==========================================================================
   PATIČKA (BEZ ODKAZU NA ADMIN DLE ZADÁNÍ)
   ========================================================================== */
.site-footer {
    background: rgba(20, 13, 9, 0.98);
    border-top: 2px solid var(--color-card-border);
    padding: var(--space-2xl) 0 var(--space-xl);
    margin-top: auto;
    font-size: 0.95rem;
    color: var(--color-cream-muted);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-title {
    font-size: 1.2rem;
    color: var(--color-paper);
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.footer-bottom {
    border-top: 1px solid rgba(74, 52, 36, 0.5);
    padding-top: var(--space-lg);
    text-align: center;
    font-size: 0.85rem;
}

/* ==========================================================================
   RESPONSIVITA
   ========================================================================== */
@media (max-width: 900px) {
    .home-split-grid {
        grid-template-columns: 1fr;
    }
    .contact-layout {
        grid-template-columns: 1fr;
    }
    .lightbox-prev {
        left: 10px;
    }
    .lightbox-next {
        right: 10px;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    .site-nav {
        display: none;
        position: absolute;
        top: 76px;
        left: 0;
        right: 0;
        background: var(--color-wood-darkest);
        border-bottom: 2px solid var(--color-card-border);
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.7);
    }
    .site-nav.nav-open {
        display: flex;
    }
    .nav-link {
        width: 100%;
        padding: 0.75rem 1.5rem;
    }
}
