:root {
    --paper-color: #e8e1d5;
    --text-dark: #1a1a1a;
    --accent: #b59f6b;
    --border-color: #b3a58f;
    --shadow: rgba(0, 0, 0, 0.15);
    --light-color: #f9f9f9;
    --primary-light: #d1c6a8;
    --border-radius: 5px;
    --secondary-color: #333;
    --text-light: #666;
}

body {
    background-color: #222;
    color: var(--text-dark);
    font-family: 'Montserrat', sans-serif;
}

.menu-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('assets/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    padding: 120px 0 60px;
    text-align: center;
    color: #fff;
    margin-bottom: 0;
}

.menu-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Playfair Display', serif;
}

/* Menu Navigation - 5-category system */
.menu-navigation {
    background-color: #1a1a1a;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.menu-nav-wrapper {
    display: flex;
    justify-content: space-between;
    max-width: var(--container-width);
    margin: 0 auto;
}

.menu-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    color: #fff;
    text-decoration: none;
    position: relative;
    transition: all 0.2s ease;
    flex: 1;
    text-align: center;
}

.menu-nav-item i {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.menu-nav-item span {
    font-size: 0.9rem;
    font-weight: 500;
}

.menu-nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--accent);
    transition: width 0.2s ease;
}

.menu-nav-item:hover, 
.menu-nav-item.active {
    color: var(--accent);
}

.menu-nav-item:hover::after,
.menu-nav-item.active::after {
    width: 100%;
}

/* Main menu content - Paper style */
.menu-content {
    background-color: #222;
    padding: 30px 0;
}

.menu-section {
    margin-bottom: 70px;
    scroll-margin-top: 80px;
    background: var(--paper-color);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    position: relative;
}

.menu-section::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 1px dashed var(--border-color);
    border-radius: 5px;
    pointer-events: none;
    opacity: 0.5;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 20px;
}

.section-header h2 {
    font-size: 2.8rem;
    color: var(--text-dark);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.section-header::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent);
    border-radius: 3px;
}

/* Enhanced section headers for main categories */
.main-section-header {
    text-align: center;
    margin: 70px 0 40px;
    position: relative;
    padding: 30px 0;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.main-section-header .subheading {
    color: var(--primary-light);
    font-size: 1.1rem;
}

.main-section-header h2 {
    font-size: 3.2rem;
    color: white;
    margin: 10px 0;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

/* Vintage menu design - similar to the images */
.menu-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

/* Category styling based on images */
.menu-category {
    margin-bottom: 20px;
}

.category-header {
    text-transform: uppercase;
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--text-dark);
    letter-spacing: 1px;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--border-color);
    font-family: 'Playfair Display', serif;
    display: flex;
    align-items: center;
}

.category-header i {
    margin-right: 10px;
    color: var(--accent);
}

/* Category description styling */
.category-description {
    color: var(--text-light);
    font-style: italic;
    font-size: 0.95rem;
    margin-top: -15px;
    margin-bottom: 25px;
    line-height: 1.5;
    max-width: 800px;
}

/* Menu Items - Better spacing to prevent overlap */
.menu-item {
    background-color: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--border-color);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-radius: 5px;
    transition: transform 0.2s ease;
    gap: 20px; /* Add gap between content and price */
    flex-wrap: wrap; /* Allow wrapping when needed */
}

/* Menu item details - ensure proper width constraint */
.menu-item-details {
    flex: 1 1 60%;
    min-width: 250px; /* Minimum width to prevent squashing */
    padding-right: 0; /* Remove padding, gap handles spacing */
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.menu-item-details h4 {
    font-size: 1.2rem;
    margin: 0;
    color: var(--text-dark);
    font-weight: 700;
    text-transform: uppercase;
}

.menu-item-details p {
    margin: 0;
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Price container - prevent overlap */
.menu-item-price {
    flex: 0 0 auto;
    min-width: 120px; /* Minimum width for price container */
    max-width: 200px; /* Maximum width to prevent excessive growth */
    align-self: flex-start;
}

/* Multi-price styling - contained within bounds */
.menu-item-price.multi-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    background-color: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
    width: 100%;
}

.menu-item-price.multi-price span {
    background-color: #f2eee5;
    border: 1px solid #d5c9a6;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 0.9rem;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

/* Hide image wrappers when empty or when no image is present */
.menu-item-image-wrapper:empty,
.menu-item-image:not([src]),
.menu-item-image[src=""],
.menu-item-image-wrapper:has(img[src=""]) {
    display: none;
    margin: 0;
    padding: 0;
    height: 0;
}

.menu-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.item-price span {
    display: inline-block;
    background-color: #f2eee5;
    border: 1px solid #d5c9a6;
    border-radius: 20px;
    padding: 8px 15px;
    font-weight: 600;
    color: #b59f6b;
    font-size: 1rem;
    margin-top: 0;
    text-align: center;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    min-width: 80px;
}

/* Consistent menu item images */
.menu-item-image-wrapper {
    width: 150px;
    height: 150px;
    margin: 15px auto;
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

.menu-item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.menu-item-image-wrapper:hover .menu-item-image {
    transform: scale(1.05);
}

/* Item image styling */
.item-image {
    margin: 15px 0;
    text-align: center;
}

.item-image img {
    max-width: 100%;
    height: auto;
    max-height: 150px;
    border-radius: 8px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

/* Menu item with image - based on provided menu images */
.menu-item-with-image {
    display: flex;
    flex-direction: column;
    text-align: center;
    position: relative;
}

.menu-item-with-image .item-image {
    margin: 0 auto 15px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--border-color);
}

.menu-item-with-image .item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-details {
    flex: 1;
}

.item-details h4 {
    font-size: 1.2rem;
    margin: 0 0 8px;
    color: var(--text-dark);
    font-weight: 700;
    text-transform: uppercase;
}

.item-details p {
    margin: 0 0 10px;
    color: var(--text-dark);
    font-size: 0.9rem;
    line-height: 1.4;
}

.item-price {
    font-weight: 700;
    color: var(--accent);
    font-size: 1.1rem;
    margin-top: 10px;
    display: inline-block;
    align-self: flex-end;
    background-color: rgba(181, 159, 107, 0.1);
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px dashed var(--border-color);
}

.item-price span {
    display: block;
    line-height: 1.5;
}

.item-price span + span {
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px dotted rgba(181, 159, 107, 0.3);
}

/* Price tag styling with curved rectangles */
.menu-item-price,
.item-price span {
    display: inline-block;
    background-color: #f2eee5;
    border: 1px solid #d5c9a6;
    border-radius: 20px;
    padding: 8px 15px;
    font-weight: 600;
    color: #b59f6b;
    font-size: 1rem;
    margin-top: 0;
    text-align: center;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    min-width: 80px;
}

.menu-item-price.multi-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    background-color: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
}

.menu-item-price.multi-price span {
    background-color: #f2eee5;
    border: 1px solid #d5c9a6;
    border-radius: 20px;
    padding: 8px 15px;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Make the price stands out more on hover */
.menu-item-price:hover,
.item-price span:hover,
.menu-item-price.multi-price span:hover {
    background-color: #efe9dc;
    border-color: #b59f6b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.jedalne-header {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('assets/food-header.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    margin-bottom: 20px;
    padding: 40px 20px;
    text-align: center;
}

.jedalne-header .section-header {
    border-bottom: none;
    margin-bottom: 5px;
}

.jedalne-header h2 {
    color: white;
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.jedalne-header p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.menu-header {
    background-size: cover;
    background-position: center;
    color: white;
    margin-bottom: 20px;
    padding: 40px 20px;
    text-align: center;
    position: relative;
}

.menu-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.menu-header .section-header {
    border-bottom: none;
    margin-bottom: 5px;
    position: relative;
    z-index: 2;
}

.menu-header h2 {
    color: white;
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.menu-header p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 10px auto 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.warning-notice {
    margin-top: 15px;
    background-color: rgba(255, 87, 51, 0.1);
    border-left: 3px solid #ff5733;
    padding: 10px 15px;
    display: flex;
    align-items: flex-start;
    border-radius: 4px;
}

.warning-notice i {
    color: #ff5733;
    font-size: 1.2rem;
    margin-right: 10px;
    margin-top: 2px;
}

.warning-notice p {
    margin: 0;
    font-size: 0.9rem;
    color: #333;
    font-style: italic;
}

.warning-message {
    background-color: #ffebeb;
    border-left: 4px solid #ff4d4d;
    padding: 15px;
    margin: 20px 0;
    border-radius: var(--border-radius);
    display: flex;
    align-items: flex-start;
}

.warning-message i {
    color: #ff4d4d;
    font-size: 1.5rem;
    margin-right: 10px;
    flex-shrink: 0;
}

.warning-message p {
    color: #333;
    font-size: 0.5rem;
    font-style: italic;
    margin-bottom: 0;
}

.loading-indicator {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.loading-spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid var(--accent);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Styling for the section headers like in image two */
.menu-category h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: var(--accent);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* PDF Menu Section Styling */
.pdf-menu-section {
    background-color: #222; /* Dark background instead of light */
    padding: 40px 0;
    margin-bottom: 30px;
}

.pdf-menu-container {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.pdf-menu-container h2 {
    color: white; /* Light text for dark background */
    margin-bottom: 15px;
}

.pdf-menu-container p {
    color: #ccc; /* Light gray for better readability on dark background */
    margin-bottom: 30px;
}

/* Vertical layout for PDF links with spacing */
.pdf-links-vertical {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.pdf-link {
    display: flex;
    align-items: center;
    padding: 20px;
    background-color: var(--paper-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: left; /* Left-aligned text */
}

.pdf-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    border-color: var(--accent);
}

.pdf-icon {
    margin-right: 20px;
    font-size: 2.5rem;
    color: var(--accent);
}

.pdf-info {
    text-align: left; /* Ensure text is left-aligned */
}

.pdf-info h3 {
    color: var(--secondary-color);
    margin: 0 0 5px 0;
    font-size: 1.2rem;
}

.pdf-info p {
    color: var(--text-light);
    margin: 0 0 10px 0;
    font-size: 0.9rem;
}

.download-text {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

/* Menu welcome section with vintage styling */
.menu-welcome {
    margin-bottom: 50px;
}

.menu-frame {
    background: var(--paper-color);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    position: relative;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.menu-frame::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: 1px dashed var(--border-color);
    border-radius: 10px;
    pointer-events: none;
}

.menu-frame-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--accent);
    margin: 0 0 10px 0;
    letter-spacing: 2px;
    font-weight: 700;
}

.menu-frame-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--text-dark);
    margin: 0 0 20px 0;
    letter-spacing: 1px;
    font-weight: 600;
}

.menu-frame-content p {
    color: var(--text-dark);
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 20px auto;
    max-width: 600px;
}

.menu-image {
    margin: 30px 0;
    display: flex;
    justify-content: center;
}

.menu-image img {
    max-width: 300px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border: 3px solid var(--accent);
}

/* Mobile adjustments - consolidated and fixed */
@media (max-width: 767px) {
    .menu-item {
        flex-direction: column;
        padding: 15px;
        gap: 15px;
    }
    
    .menu-item-details {
        width: 100%;
        min-width: 0;
        flex: 1 1 auto;
    }
    
    .menu-item-price {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        align-self: stretch;
    }
    
    .menu-item-price.multi-price {
        align-items: stretch;
        width: 100%;
    }
    
    .menu-item-price.multi-price span {
        width: 100%;
        margin: 0 0 5px 0;
    }
    
    .pdf-links-vertical {
        gap: 15px;
    }
    
    .pdf-link {
        padding: 15px;
    }
    
    .pdf-icon {
        margin-right: 15px;
        font-size: 2rem;
    }
    
    .menu-frame {
        padding: 25px;
    }
    
    .menu-frame-content h2 {
        font-size: 2rem;
    }
    
    .menu-frame-content h3 {
        font-size: 1.5rem;
    }
    
    .menu-image img {
        max-width: 250px;
    }
}

/* Small screens - even more compact */
@media (max-width: 480px) {
    .menu-item {
        padding: 12px;
        gap: 10px;
    }
    
    .menu-item-price,
    .menu-item-price.multi-price span {
        font-size: 0.85rem;
        padding: 5px 10px;
    }
    
    .menu-frame {
        padding: 20px;
    }
    
    .menu-image img {
        max-width: 200px;
    }
}

.hours {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 60px 20px;
    margin: 40px 0;
}

.hours-content {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.hours-section {
    flex: 1;
    text-align: center;
    max-width: 500px;
}

.hours-section h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.hours-section h3 i {
    font-size: 2rem;
    color: #c9a961;
}

.hours-section p {
    font-size: 1.1rem;
    color: #555;
    margin: 10px 0;
    line-height: 1.6;
}

.hours-divider {
    width: 2px;
    background: linear-gradient(to bottom, transparent, #c9a961, transparent);
    align-self: stretch;
}

@media (max-width: 768px) {
    .hours-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .hours-divider {
        height: 2px;
        width: 100%;
        background: linear-gradient(to right, transparent, #c9a961, transparent);
    }
}
