/**
 * Custom Styles for Bufet v Hlubokáně
 * 
 * These styles extend the Victory template with:
 * - Restaurant branding colors
 * - Daily menu styling
 * - Contact information layout
 * - Czech typography support
 */

/* ============================================
   CSS Custom Properties (Brand Colors from Logo)
   ============================================ */
:root {
    --brand-primary: #6A2906;      /* Dark brown (bun) */
    --brand-secondary: #C84429;    /* Red (tomato) */
    --brand-accent: #DE9F4B;       /* Golden yellow (cheese/mustard) */
    --brand-neutral: #AB9F94;      /* Grayish beige */
    --brand-light: #FEFEFD;        /* Cream white */
    --brand-dark: #3D1804;         /* Darker brown variant */
    --text-primary: #2D1A0E;       /* Dark brown text */
    --text-secondary: #5a4a3a;
    --text-muted: #AB9F94;
    --bg-light: #FBF8F5;           /* Warm light background */
    --bg-section: #F5EFE8;         /* Warmer section background */
    --white: #FEFEFD;
    --border-light: #E5DDD4;
}

/* ============================================
   Global Overrides
   ============================================ */
body {
    font-family: 'Roboto', Arial, sans-serif;
}

.primary-button a,
.right-info button,
.contact-us button {
    background-color: var(--brand-secondary);
}

.primary-button a:hover,
.right-info button:hover,
.contact-us button:hover {
    background-color: #A33620;
}

.primary-white-button a {
    color: var(--brand-secondary);
    border: 2px solid var(--brand-secondary);
    background-color: var(--white);
}

.primary-white-button a:hover {
    background-color: var(--brand-secondary);
    color: var(--white);
}

/* ============================================
   Header & Navigation
   ============================================ */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(106, 41, 6, 0.1);
}

.header .container {
    text-align: center;
}

.navbar-brand.scroll-top {
    display: block;
    float: none;
    text-align: center;
    margin: 0 auto;
    padding: 15px 0;
    border-bottom: none;
}

.header .navbar {
    float: none;
    display: block;
}

.header #main-nav {
    float: none;
    text-align: center;
}

.header .nav.navbar-nav {
    display: inline-flex;
    float: none;
    margin: 0 auto;
}

.logo-img {
    display: inline !important;
    max-height: 60px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.02);
}

.navbar-nav li a {
    color: var(--text-primary) !important;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav li a:hover {
    color: var(--brand-primary) !important;
}

/* Cafe Navigation Link */
.navbar-nav li a.nav-cafe-link {
    background-color: var(--brand-secondary);
    color: var(--white) !important;
    border-radius: 20px;
    padding: 8px 18px !important;
    margin-left: 10px;
    transition: all 0.3s ease;
}

.navbar-nav li a.nav-cafe-link:hover {
    background-color: var(--brand-primary);
    color: var(--white) !important;
    transform: translateY(-2px);
}

.navbar-nav li a.nav-cafe-link i {
    margin-right: 5px;
}

/* ============================================
   Banner Section
   ============================================ */
.banner {
    background-image: linear-gradient(rgba(106, 41, 6, 0.85), rgba(200, 68, 41, 0.7)), 
                      url('../img/background2.jpg');
    background-size: cover;
    background-position: center;
    padding: 120px 0 150px;
}

.banner h2 {
    font-family: 'Playfair Display', 'Spectral', serif;
    font-size: 48px;
    margin-bottom: 20px;
}

.banner p {
    font-size: 16px;
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto 30px;
}

/* ============================================
   Cook/Contact Quick Section
   ============================================ */
.cook-delecious .cook-content {
    background-color: var(--brand-secondary);
}

.cook-content .contact-content {
    background-color: rgba(106, 41, 6, 0.3);
}

.phone-link {
    color: var(--white) !important;
    text-decoration: none;
    transition: opacity 0.3s;
}

.phone-link:hover {
    opacity: 0.8;
}

/* ============================================
   Daily Menu Section
   ============================================ */
.daily-menu {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.daily-menu .heading h2 {
    text-align: center;
    margin: 0 0 50px;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text-primary);
}

/* Day Selector */
.weekday-selector {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.day-btn {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background-color: var(--white);
    color: var(--text-primary);
    border: 2px solid var(--border-light);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.day-btn:hover {
    border-color: var(--brand-secondary);
    color: var(--brand-secondary);
}

.day-btn.active {
    background-color: var(--brand-secondary);
    border-color: var(--brand-secondary);
    color: var(--white);
}

/* Today indicator */
.day-btn.is-today {
    position: relative;
    border-color: var(--brand-accent);
    box-shadow: 0 0 0 2px var(--brand-accent);
}

.day-btn.is-today.active {
    box-shadow: 0 0 0 2px var(--brand-accent), 0 2px 8px rgba(200, 68, 41, 0.3);
}

.today-badge {
    position: absolute;
    top: -10px;
    right: -8px;
    background-color: var(--brand-accent);
    color: var(--brand-primary);
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 6px;
    border-radius: 10px;
    line-height: 1.2;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Menu Content Wrapper */
.menu-content-wrapper {
    background-color: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    min-height: 300px;
}

.menu-loading {
    text-align: center;
    padding: 60px 0;
    color: var(--text-muted);
}

.menu-closed {
    text-align: center;
    padding: 60px 0;
}

.menu-closed h3 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.menu-closed p {
    color: var(--text-muted);
    font-size: 15px;
}

/* Menu Sections */
.menu-section {
    margin-bottom: 40px;
}

.menu-section:last-child {
    margin-bottom: 0;
}

.menu-section h3 {
    font-family: 'Playfair Display', 'Spectral', serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--brand-primary);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--brand-accent);
}

/* Menu Items */
.menu-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 15px 20px;
    background-color: var(--bg-light);
    border-radius: 4px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.menu-item:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.menu-item-info {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex: 1;
}

.menu-item-number {
    font-weight: 700;
    color: var(--brand-secondary);
    min-width: 25px;
}

.menu-item-name {
    font-size: 15px;
    color: var(--text-primary);
    line-height: 1.5;
}

.menu-item-price {
    font-size: 16px;
    font-weight: 600;
    color: var(--brand-accent);
    white-space: nowrap;
    margin-left: 20px;
}

/* Dietary Tags */
.menu-item-tags {
    display: inline-flex;
    gap: 6px;
    margin-left: 10px;
    vertical-align: middle;
}

.diet-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    font-size: 14px;
    border-radius: 50%;
    cursor: help;
    transition: transform 0.2s ease;
}

.diet-tag:hover {
    transform: scale(1.15);
}

.diet-gluten {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3);
}

.diet-veg {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
}

/* Dietary Legend (optional - add to menu section) */
.menu-legend {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
    padding: 15px 20px;
    background: var(--bg-light);
    border-radius: 8px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.no-items {
    color: var(--text-muted);
    font-style: italic;
    padding: 20px;
    text-align: center;
}

/* ============================================
   Catering Section
   ============================================ */
.catering-section {
    padding: 100px 0;
    background-color: var(--brand-primary);
    background-image: linear-gradient(135deg, var(--brand-primary) 0%, #4A1D04 100%);
    text-align: center;
}

.catering-section .heading h2 {
    margin: 0 0 40px;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--white);
}

.catering-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.catering-section .primary-button {
    margin-top: 30px;
}

.catering-section .primary-button a {
    background-color: var(--white);
    color: var(--brand-primary);
}

.catering-section .primary-button a:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

/* ============================================
   Opening Hours Section
   ============================================ */
.opening-hours {
    padding: 80px 0;
    background-color: var(--bg-section);
}

.opening-hours .heading h2 {
    text-align: center;
    margin: 0 0 40px;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text-primary);
}

.hours-content {
    background-color: var(--white);
    padding: 30px 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.hours-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-light);
}

.hours-item:last-child {
    border-bottom: none;
}

.hours-item .day {
    font-weight: 500;
    color: var(--text-primary);
}

.hours-item .time {
    font-weight: 600;
    color: var(--brand-secondary);
}

/* ============================================
   Contact Section
   ============================================ */
.contact-us {
    margin-top: 80px;
    margin-bottom: 80px;
}

.contact-us .section-heading h2 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 40px;
}

.contact-details {
    margin-top: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
}

.contact-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    opacity: 0.8;
}

.contact-text strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.contact-text p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
}

.contact-text a {
    color: var(--brand-secondary);
    text-decoration: none;
    transition: opacity 0.3s;
}

.contact-text a:hover {
    opacity: 0.7;
}

/* Contact Form */
.contact-us input,
.contact-us textarea {
    border: 1px solid var(--border-light);
    background-color: var(--white);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-us input:focus,
.contact-us textarea:focus {
    border-color: var(--brand-secondary);
    box-shadow: 0 0 0 2px rgba(200, 68, 41, 0.15);
    outline: none;
}

/* ============================================
   Map Section
   ============================================ */
.map {
    margin-bottom: 0;
}

.map #map {
    height: 450px;
    border-top: 4px solid var(--brand-accent);
}

.map iframe {
    display: block;
}

/* ============================================
   Footer
   ============================================ */
footer {
    background-color: var(--brand-primary);
}

footer ul li i:hover {
    background-color: var(--brand-secondary);
}

footer a {
    color: var(--white);
    text-decoration: none;
}

footer a:hover {
    opacity: 0.8;
}

/* ============================================
   Responsive Styles
   ============================================ */
@media (max-width: 991px) {
    .banner {
        padding: 80px 0 100px;
    }
    
    .banner h2 {
        font-size: 36px;
    }
    
    .menu-content-wrapper {
        padding: 30px 20px;
    }
    
    .contact-info {
        margin-top: 60px;
    }
}

@media (max-width: 768px) {
    /* Mobile Navigation */
    .header .nav.navbar-nav {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    
    .navbar-nav li a.nav-cafe-link {
        margin-left: 0;
        margin-top: 10px;
        display: inline-block;
        background-color: #1D4E4F;
    }
    
    .navbar-nav li a.nav-cafe-link:hover {
        background-color: #264653;
    }
    
    .logo-img {
        max-height: 50px;
    }
    
    .banner {
        padding: 60px 0 80px;
    }
    
    .banner h2 {
        font-size: 28px;
    }
    
    .weekday-selector {
        gap: 5px;
    }
    
    .day-btn {
        padding: 10px 15px;
        font-size: 12px;
    }
    
    .today-badge {
        font-size: 8px;
        padding: 2px 5px;
        top: -8px;
        right: -6px;
    }
    
    .menu-item {
        flex-direction: column;
        gap: 10px;
    }
    
    .menu-item-price {
        margin-left: 0;
        align-self: flex-start;
    }
    
    .hours-content {
        padding: 20px;
    }
    
    .hours-item {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
    
    .contact-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .daily-menu,
    .catering-section,
    .opening-hours {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .day-btn {
        padding: 8px 12px;
        font-size: 11px;
        flex: 1;
        min-width: calc(33.333% - 5px);
    }
    
    .today-badge {
        font-size: 7px;
        padding: 1px 4px;
        top: -6px;
        right: -4px;
    }
    
    .weekday-selector {
        justify-content: stretch;
    }
}

/* ============================================
   Accessibility
   ============================================ */
.day-btn:focus,
.contact-us button:focus,
.primary-button a:focus {
    outline: 2px solid var(--brand-secondary);
    outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   Cross-Promo Banner (Nejen Caffé u Páji)
   ============================================ */
.caffe-promo-banner {
    padding: 60px 0;
    background: linear-gradient(135deg, #1D4E4F 0%, #264653 100%);
}

.promo-inner {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 40px 50px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.promo-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #E07A5F;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 10px 30px rgba(224, 122, 95, 0.3);
}

.promo-icon i {
    font-size: 32px;
    color: #fff;
}

.promo-text {
    flex: 1;
}

.promo-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #F4A261;
    margin-bottom: 8px;
}

.promo-inner h3 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 10px;
}

.promo-inner p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    line-height: 1.6;
}

.promo-action {
    flex-shrink: 0;
}

.promo-btn {
    display: inline-block;
    padding: 14px 30px;
    background: #E07A5F;
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.promo-btn:hover {
    background: #c86b52;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(224, 122, 95, 0.4);
}

@media (max-width: 991px) {
    .promo-inner {
        flex-direction: column;
        text-align: center;
        padding: 35px 30px;
    }
    
    .promo-text {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .caffe-promo-banner {
        padding: 40px 0;
    }
    
    .promo-inner h3 {
        font-size: 24px;
    }
    
    .promo-icon {
        width: 60px;
        height: 60px;
    }
    
    .promo-icon i {
        font-size: 24px;
    }
}

/* ============================================
   Footer Admin Link (Subtle)
   ============================================ */
.footer-admin {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-admin a {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 11px;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.footer-admin a:hover {
    color: rgba(255, 255, 255, 1) !important;
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .header,
    .banner,
    .cook-delecious,
    .catering-section,
    .contact-us form,
    .map,
    .caffe-promo-banner,
    footer {
        display: none;
    }
    
    .daily-menu {
        padding: 20px 0;
    }
    
    .menu-content-wrapper {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

