/* Globální proměnné a barvy (Světlý/Tmavý režim) */
:root[data-theme="light"] { 
    --bg-body: #f4f4f4; 
    --bg-container: #ffffff; 
    --bg-alt: #e9e9e9;
    --text-main: #1a1a1a; 
    --text-muted: #666666; 
    --text-heading: #b8931d;
    --accent-color: #b8931d; 
    --btn-color: #b8931d;
    --border-color: #dddddd; 
    --card-shadow: 0 4px 10px rgba(0,0,0,0.1); 
    --shadow-color: rgba(0,0,0,0.1);
}
:root[data-theme="dark"] { 
    --bg-body: #121212; 
    --bg-container: #1e1e1e; 
    --bg-alt: #181818;
    --text-main: #f5f5f5; 
    --text-muted: #aaaaaa; 
    --text-heading: #d4af37;
    --accent-color: #d4af37; 
    --btn-color: #d4af37;
    --border-color: #333333; 
    --card-shadow: 0 4px 15px rgba(0,0,0,0.5); 
    --shadow-color: rgba(0,0,0,0.5);
}

/* Základní rozložení */
body { font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: var(--bg-body); color: var(--text-main); margin: 0; padding-top: 70px; transition: all 0.3s ease; }
h1, h2, h3 { color: var(--accent-color); text-transform: uppercase; text-align: center; letter-spacing: 2px; }

/* Obecná tlačítka */
.btn { 
    display: inline-flex; 
    align-items: center; 
    gap: 8px; 
    padding: 10px 20px; 
    background-color: var(--accent-color); 
    color: #ffffff; 
    text-decoration: none; 
    border-radius: 4px; 
    font-weight: bold; 
    transition: opacity 0.2s, transform 0.2s; 
    border: none;
    cursor: pointer;
}
.btn:hover { opacity: 0.9; transform: translateY(-2px); }

/* Navigační lišta */
.navbar { position: fixed; top: 0; width: 100%; height: 70px; background-color: var(--bg-container); display: flex; justify-content: space-between; align-items: center; padding: 0 5%; box-sizing: border-box; z-index: 1000; box-shadow: var(--card-shadow); }
.logo { display: flex; align-items: center; text-decoration: none; }
.navbar-logo { height: 50px; width: auto; display: block; transition: transform 0.3s ease; }
.navbar-logo:hover { transform: scale(1.05); }
.nav-links { display: flex; gap: 20px; align-items: center; }
.nav-links a { color: var(--text-main); text-decoration: none; text-transform: uppercase; font-size: 0.9em; font-weight: 500; position: relative; padding: 5px 0; transition: color 0.3s ease; }
.nav-links a:hover { color: var(--accent-color); }
.nav-links a::after { content: ''; position: absolute; width: 0; height: 2px; bottom: 0; left: 0; background-color: var(--accent-color); transition: width 0.3s ease; }
.nav-links a:hover::after { width: 100%; }

.social-icon-btn { display: inline-flex; justify-content: center; align-items: center; width: 40px; height: 40px; border-radius: 50%; background-color: var(--bg-container); border: 1px solid var(--border-color); color: var(--text-main); text-decoration: none; transition: background-color 0.3s, color 0.3s, border-color 0.3s; }
.social-icon-btn:hover { background-color: var(--accent-color); color: #ffffff; border-color: var(--accent-color); }

.theme-toggle, .mobile-menu-btn { background: none; border: none; color: var(--text-main); font-size: 1.3em; cursor: pointer; padding: 5px; }

@media (max-width: 768px) { 
    .nav-links { display: none; position: absolute; top: 70px; left: 0; width: 100%; background-color: var(--bg-container); flex-direction: column; padding: 20px 0; } 
    .nav-links.active { display: flex; } 
}
@media (min-width: 769px) { .mobile-menu-btn { display: none !important; } }

/* Hero sekce s obrázkem na pozadí */
.hero-section {
    position: relative;
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.7)), url('../foto/hero.png');
    background-size: cover;
    background-position: center;
    color: #ffffff;
    text-align: center;
    padding: 100px 20px;
    margin-bottom: 40px;
    box-shadow: var(--card-shadow);
}
.hero-section h1 { color: #ffffff; font-size: 3em; margin-bottom: 15px; text-shadow: 2px 2px 4px rgba(0,0,0,0.8); }
.hero-section p { font-size: 1.2em; max-width: 800px; margin: 0 auto 30px auto; line-height: 1.5; text-shadow: 1px 1px 3px rgba(0,0,0,0.8); }

/* Mřížka aktualit - Pevně 3 sloupce na PC, 1 na mobilu */
.news-grid {
    width: 100% !important;
    max-width: 1400px !important;
    display: grid;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px;
    box-sizing: border-box;
    margin: 0 auto;
    padding: 0;
}
.news-card {
    background-color: var(--bg-container);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    box-sizing: border-box;
    width: 100%;
}
.news-card:hover { transform: translateY(-5px); }
.news-img { height: 200px; background-size: cover; background-position: center; background-repeat: no-repeat; position: relative; width: 100%; }
.news-img-fallback { background-color: rgba(0, 0, 0, 0.05); display: flex; justify-content: center; align-items: center; color: var(--accent-color); font-size: 3.5rem; border-bottom: 1px solid var(--border-color); }
[data-theme="dark"] .news-img-fallback { background-color: rgba(255, 255, 255, 0.05); }
.news-content { padding: 20px; display: flex; flex-direction: column; flex-grow: 1; box-sizing: border-box; }
.news-date { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.news-content h3 { font-size: 1.25rem; color: var(--accent-color); margin-top: 0; margin-bottom: 12px; line-height: 1.4; text-align: left; text-transform: none; letter-spacing: normal; }
.news-content p { font-size: 0.95rem; color: var(--text-main); line-height: 1.6; margin-bottom: 20px; flex-grow: 1; text-align: left; }
.news-link { display: inline-flex; align-items: center; gap: 8px; color: var(--accent-color); font-weight: bold; text-decoration: none; transition: gap 0.2s; }
.news-link:hover { gap: 12px; }

/* Filtrování rubrik v archivu */
.rubriky-filter { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 40px; }
.filter-btn { padding: 8px 18px; border-radius: 20px; border: 1px solid var(--border-color); background: var(--bg-container); color: var(--text-main); text-decoration: none; font-size: 0.9rem; font-weight: 600; transition: all 0.2s ease; }
.filter-btn:hover, .filter-btn.active { background: var(--accent-color); color: #ffffff; border-color: var(--accent-color); }

/* Obědové a stálé menu */
.menu-container { max-width: 1400px; width: 100%; margin: 20px auto; padding: 0 20px; box-sizing: border-box; }
.call-action-box { margin: 20px 0 40px 0; text-align: center; }
.btn-call { display: inline-flex; align-items: center; gap: 10px; padding: 15px 30px; border-radius: 50px; text-decoration: none; font-weight: bold; transition: 0.3s; }
.btn-call.active { background-color: #28a745; color: white; box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4); }
.btn-call.disabled { background-color: var(--border-color); color: var(--text-muted); pointer-events: none; opacity: 0.6; }
.call-note { display: block; font-size: 0.8em; margin-top: 8px; color: var(--text-muted); }
.week-menu-section { background-color: var(--bg-container); border-radius: 8px; padding: 20px 30px; margin-bottom: 30px; box-shadow: var(--card-shadow); }
.day-title { font-size: 1.5em; color: var(--accent-color); border-bottom: 1px solid var(--border-color); padding-bottom: 10px; margin-bottom: 20px; text-align: left; }
.menu-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px dashed var(--border-color); }
.menu-item:last-child { border-bottom: none; }
.dish-info { flex: 1; padding-right: 20px; }
.dish-name { font-size: 1.1em; line-height: 1.4; }
.dish-desc { font-size: 0.85em; color: var(--text-muted); display: block; font-style: italic; }
.dish-price { font-size: 1.2em; font-weight: bold; color: var(--text-main); white-space: nowrap; }
.highlight-today { background-color: var(--bg-container); border: 2px solid var(--accent-color); border-radius: 8px; padding: 30px; margin-bottom: 50px; box-shadow: var(--card-shadow); }
.monday-closed { background: linear-gradient(135deg, #8a1a1a 0%, #4a0000 100%); color: white !important; border: none !important; text-align: center; padding: 40px !important; }
.closed-stamp { font-size: 2em; font-weight: 900; text-transform: uppercase; border: 4px solid white; display: inline-block; padding: 10px 20px; transform: rotate(-5deg); }
.info-bar { text-align: center; margin-top: 40px; padding: 20px; border-top: 1px solid var(--border-color); color: var(--text-muted); font-size: 0.9em; }

/* Informační boxy (Otevírací doba, Objednávky) */
.info-boxes { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; max-width: 1400px; margin: 0 auto 40px auto; padding: 0 20px; box-sizing: border-box; }
.info-box { background-color: var(--bg-container); border: 1px solid var(--border-color); border-radius: 8px; padding: 25px; box-shadow: var(--card-shadow); }
.info-box h3 { color: var(--accent-color); margin-top: 0; border-bottom: 1px dashed var(--border-color); padding-bottom: 10px; text-align: center; font-size: 1.3em;}
.hours-table { width: 100%; text-align: left; border-collapse: collapse; margin-top: 15px; }
.hours-table td { padding: 8px 0; border-bottom: 1px solid var(--border-color); font-size: 1.1em; }
.hours-table tr:last-child td { border-bottom: none; }
.hours-table td:last-child { text-align: right; font-weight: bold; }
.order-info { text-align: center; padding-top: 15px; }
.order-info i { font-size: 2em; color: var(--accent-color); margin-bottom: 10px; }
.order-info .phone { font-size: 1.5em; font-weight: bold; color: var(--text-main); display: block; margin-top: 10px; }

/* Upozornění na Bowling */
.bowling-alert { background-color: rgba(220, 53, 69, 0.1); border-left: 5px solid #dc3545; padding: 20px; max-width: 1400px; margin: 0 auto 50px auto; text-align: center; border-radius: 0 8px 8px 0; color: var(--text-main); box-shadow: var(--card-shadow); box-sizing: border-box; }
.bowling-alert strong { color: #dc3545; font-size: 1.2em; text-transform: uppercase; }

/* Kontakt sekce */
.contact-section { max-width: 1400px; margin: 0 auto 50px auto; padding: 0 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; box-sizing: border-box; width: 100%; }
.contact-details { background-color: var(--bg-container); padding: 30px; border-radius: 8px; box-shadow: var(--card-shadow); box-sizing: border-box; }
.contact-details h3 { text-align: left; color: var(--accent-color); border-bottom: 1px dashed var(--border-color); padding-bottom: 10px; margin-bottom: 20px;}
.contact-details p { line-height: 1.6; margin-bottom: 15px; font-size: 1.05em; }
.contact-details i { color: var(--accent-color); width: 25px; text-align: center; margin-right: 10px; }
.contact-form { background-color: var(--bg-container); padding: 30px; border-radius: 8px; box-shadow: var(--card-shadow); box-sizing: border-box; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: bold; font-size: 0.9em; }
.form-control { width: 100%; padding: 12px; border: 1px solid var(--border-color); border-radius: 4px; background-color: var(--bg-body); color: var(--text-main); box-sizing: border-box; font-family: inherit; }
textarea.form-control { resize: vertical; min-height: 120px; }
.btn-submit { background-color: var(--accent-color); color: white; border: none; padding: 15px 25px; border-radius: 4px; cursor: pointer; font-weight: bold; width: 100%; transition: opacity 0.3s; text-transform: uppercase; letter-spacing: 1px; box-sizing: border-box; }
.btn-submit:hover { opacity: 0.8; }

/* Minimalistický Interface Header (Podstránky) */
.app-header {
    margin-top: 0px;
    padding: 40px 10%;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}
.app-header-content h1 { font-size: 2rem; font-weight: 700; color: var(--text-heading); margin-bottom: 5px; text-align: left; }
.app-breadcrumb { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--btn-color); font-weight: 600; }
.app-header-actions { display: flex; gap: 15px; }

/* Patička */
.footer-credits { text-align: center; margin-top: 40px; padding: 20px 0; font-size: 0.7em; color: var(--text-muted); opacity: 0.6; letter-spacing: 0.5px; text-transform: uppercase; }
.footer-credits a { color: var(--accent-color); text-decoration: none; font-weight: bold; }
.footer-credits a:hover { text-decoration: underline; }

/* Responsivita pro menší displeje */
@media (max-width: 992px) {
    .news-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 768px) {
    .menu-container, .info-boxes, .bowling-alert, .contact-section { padding-left: 15px !important; padding-right: 15px !important; }
    .news-grid { grid-template-columns: 1fr !important; }
    .contact-section { grid-template-columns: 1fr !important; }
}