/* Styles for the menu page with alternating layouts */

/* Featured dish row styles - alternate layout */
.featured-dish-row {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 0;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    overflow: hidden;
    background-color: #fff;
}

.featured-dish-row:nth-child(odd) {
    flex-direction: row;
}

.featured-dish-row:nth-child(even) {
    flex-direction: row-reverse;
}

.featured-dish-image {
    flex: 0 0 60%;
    position: relative;
    overflow: hidden;
}

.featured-dish-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
    max-height: 400px;
}

.featured-dish-row:hover .featured-dish-image img {
    transform: scale(1.05);
}

.featured-dish-content {
    flex: 0 0 40%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-dish-title {
    font-size: 32px;
    margin-bottom: 10px;
    color: #1a5276;
}

.featured-dish-description {
    margin-bottom: 20px;
    font-size: 18px;
    line-height: 1.6;
    color: #555;
}

.featured-dish-price {
    font-size: 24px;
    color: #e67e22;
    font-weight: 700;
    margin-top: auto;
    align-self: flex-end;
}

/* Remove spacing between featured dish rows */
.menu-section .featured-dish-row + .featured-dish-row {
    margin-top: 0;
}

/* Create a continuous flow of featured dishes */
#seafood .featured-dish-row,
#dania-glowne .featured-dish-row {
    border-radius: 0;
}

#seafood .featured-dish-row:first-child,
#dania-glowne .featured-dish-row:first-child {
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

#seafood .featured-dish-row:last-child,
#dania-glowne .featured-dish-row:last-child {
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
}

/* Section Headers Styling */
.section-header {
    text-align: center;
    margin-bottom: 30px;
    padding-top: 20px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 600;
    color: #1a5276;
    margin-bottom: 10px;
}

.header-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 15px auto;
}

.header-decoration .line {
    height: 1px;
    width: 80px;
    background: linear-gradient(to right, transparent, #3498db, transparent);
    display: inline-block;
}

.header-decoration i {
    color: #3498db;
    margin: 0 15px;
    font-size: 18px;
}

/* Responsive design */
@media (max-width: 992px) {
    .featured-dish-row,
    .featured-dish-row:nth-child(odd),
    .featured-dish-row:nth-child(even) {
        flex-direction: column;
    }
    
    .featured-dish-image,
    .featured-dish-content {
        flex: 0 0 100%;
    }
    
    .featured-dish-image {
        height: 300px;
    }
}

/* Small dish grid for appetizers and desserts */
.small-dishes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 30px;
}

.menu-section {
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

#przystawki-zimne,
#przystawki-cieple,
#desery {
    padding-bottom: 30px;
}

.small-dish-item {
    display: flex;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.small-dish-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.small-dish-image {
    flex: 0 0 30%;
    overflow: hidden;
}

.small-dish-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
    aspect-ratio: 4/3;
}

.small-dish-item:hover .small-dish-image img {
    transform: scale(1.1);
}

.small-dish-content {
    flex: 0 0 70%;
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
}

.small-dish-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.small-dish-title {
    font-size: 20px;
    margin: 0;
    color: #1a5276;
    font-weight: 600;
}

.small-dish-price {
    font-size: 18px;
    color: #e67e22;
    font-weight: 700;
}

.small-dish-description {
    font-size: 15px;
    line-height: 1.5;
    color: #555;
    margin: 0;
}

/* Dish badges - for special indicators with emojis */
.dish-badge {
    display: inline-block;
    font-size: 16px;
    margin-right: 8px;
    margin-bottom: 10px;
}

.dish-badge::before {
    margin-right: 4px;
}

.dish-badge.popular::before,
.dish-badge.bestseller::before {
    content: "⭐";  /* Gwiazda dla popularnych dań */
}

.dish-badge.vegetarian::before {
    content: "🌿";  /* Liść dla dań wegetariańskich */
}

.dish-badge.vegan::before {
    content: "🌱";  /* Sadzonka dla dań wegańskich */
}

.dish-badge.gluten-free::before {
    content: "🌾";  /* Kłos dla dań bezglutenowych */
}

.dish-badge.spicy::before {
    content: "🌶️";  /* Papryczka dla pikantnych dań */
}

/* Drinks section styling */
.drinks-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 0;
}

/* Specific styling for cocktails container */
.cocktails-container {
    margin-top: 0;
}

.drinks-category {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.drinks-category-header {
    position: relative;
    margin-bottom: 20px;
    padding-bottom: 10px;
}

.drinks-category-header h3 {
    font-size: 24px;
    color: #1a5276;
    margin: 0 0 5px 0;
}

.category-decoration {
    display: block;
    height: 2px;
    background: linear-gradient(to right, #1a5276, #3498db, #1a5276);
    width: 100%;
}

.drink-item {
    display: flex;
    flex-wrap: wrap;
    padding: 12px 0;
    border-bottom: 1px dotted #ddd;
}

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

.drink-name {
    font-weight: 600;
    color: #333;
    flex: 0 0 100%;
    margin-bottom: 3px;
}

.drink-details {
    font-size: 14px;
    color: #666;
    flex: 1;
    font-style: italic;
}

.drink-price {
    font-weight: 700;
    color: #e67e22;
    margin-left: auto;
    text-align: right;
}

/* Menu Navigation Styles */
/* Menu Hero Section with Categories */
.menu-hero {
    position: relative;
    height: 50vh; /* Zwiększona wysokość dla pomieszczenia przycisku */
    min-height: 350px; /* Zwiększona minimalna wysokość */
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../assets/food1.webp');
    background-size: cover;
    background-position: center;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.menu-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6));
    z-index: 1;
}

.menu-hero-content {
    text-align: center;
    margin-top: 80px;
    padding: 20px;
    z-index: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.menu-hero-content h1 {
    font-size: 42px;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.menu-hero-content p {
    font-size: 18px;
    margin-bottom: 20px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.greek-pattern {
    width: 150px;
    height: 10px;
    background: url('../assets/greek-pattern.png');
    background-size: contain;
    margin: 10px auto 20px;
}

.menu-categories {
    margin-top: 20px;
    position: relative;
    width: 100%;
}

.menu-categories-scroll {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* Płynne przewijanie na iOS */
    scrollbar-width: none; /* Ukrywa pasek przewijania w Firefox */
    -ms-overflow-style: none; /* Ukrywa pasek przewijania w IE i Edge */
    padding: 10px 20px;
    scroll-snap-type: x mandatory;
    justify-content: flex-start;
    max-width: 100%;
}

.menu-categories-scroll::-webkit-scrollbar {
    display: none; /* Ukrywa pasek przewijania w Chrome i Safari */
}

.menu-category-btn {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid white;
    padding: 10px 18px;
    margin: 0 6px;
    font-size: 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(5px);
    text-decoration: none;
    white-space: nowrap;
    scroll-snap-align: start;
    flex-shrink: 0;
}

.menu-category-btn:hover {
    background-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

/* Wskaźniki przewijania na bokach */
.scroll-indicator {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    backdrop-filter: blur(3px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.scroll-left {
    left: 10px;
}

.scroll-right {
    right: 10px;
}

/* Menu Navigation (below hero) */
.menu-nav {
    background-color: #fff;
    padding: 15px 0;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 80px;
    z-index: 100;
}

.menu-nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    padding: 0 20px;
    margin: 0;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.menu-nav li {
    margin: 0;
    padding: 0;
    flex: 0 0 auto;
}

.menu-nav-link {
    color: #333;
    font-weight: 500;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-size: 15px;
    display: block;
    white-space: nowrap;
}

.menu-nav-link:hover {
    background-color: rgba(26, 82, 118, 0.1);
    color: #1a5276;
}

.menu-nav-link.active {
    background-color: #1a5276;
    color: white;
}

/* Responsive design for small dishes and drinks */
@media (max-width: 992px) {
    .small-dishes-grid,
    .drinks-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .menu-hero {
        height: auto;
        min-height: 280px;
        padding: 40px 0;
    }
    
    .menu-hero-content h1 {
        font-size: 32px;
    }
    
    .menu-hero-content p {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .menu-categories {
        margin-top: 15px;
    }
    
    .menu-category-btn {
        padding: 8px 16px;
        font-size: 14px;
        margin: 0 5px;
    }
    
    .menu-nav {
        position: sticky;
        top: 60px;
        padding: 12px 0;
        z-index: 90;
        border-radius: 0;
        margin: 0;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    }
    
    .menu-nav ul {
        justify-content: center;
        padding: 0 10px;
        gap: 6px;
        row-gap: 8px;
    }
    
    .menu-nav li {
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .menu-nav-link {
        padding: 8px 14px;
        font-size: 14px;
    }
    
    /* Dodajemy dodatkowe style dla lepszej nawigacji */
    .menu-section {
        scroll-margin-top: 120px; /* Miejsce dla sticky nawigacji */
    }
}

@media (max-width: 576px) {
    .small-dish-item {
        flex-direction: column;
    }
    
    .small-dish-image {
        flex: 0 0 200px;
    }
    
    .small-dish-content {
        flex: 1;
    }
    
    .drink-name,
    .drink-details,
    .drink-price {
        flex: 0 0 100%;
        margin-bottom: 3px;
    }
    
    .drink-price {
        text-align: left;
    }
    
    .menu-nav {
        margin-bottom: 20px;
        padding: 12px 0;
        position: sticky;
        top: 60px;
        z-index: 100;
    }
    
    .menu-nav ul {
        justify-content: center;
        padding: 0 10px;
        flex-wrap: wrap;
        gap: 8px;
        row-gap: 10px;
    }
    
    .menu-nav li {
        flex-shrink: 0;
    }
    
    .menu-nav-link {
        padding: 10px 16px;
        font-size: 14px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(26, 82, 118, 0.2);
    }
    
    .menu-hero {
        min-height: 300px;
        height: auto;
        padding: 40px 0;
    }
    
    .menu-hero-content {
        margin-top: 60px;
        position: relative;
        z-index: 10;
    }
    
    .menu-hero-content h1 {
        font-size: 28px;
    }
    
    .menu-hero-content p {
        font-size: 16px;
    }
    
    .menu-category-btn {
        padding: 5px 10px;
        font-size: 12px;
        margin: 3px;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: rgba(26, 82, 118, 0.9);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1050;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(26, 82, 118, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top i {
    font-size: 20px;
}

.back-to-top:hover {
    background-color: #1a5276;
    transform: translateY(-5px);
}

/* Menu notice section */
.menu-notice {
    margin-top: 40px;
    padding: 30px;
    background-color: #fff9e6;
    border-left: 4px solid #e67e22;
    border-radius: 8px;
    text-align: center;
}

.menu-notice p {
    margin: 10px 0;
    font-size: 16px;
    color: #555;
}

.menu-notice p:first-child {
    font-size: 18px;
    color: #333;
}

/* Fallback image styling - optional visual indicator */
img.fallback-image {
    opacity: 0.95;
    filter: grayscale(10%);
}

img.fallback-image::after {
    content: '';
    position: absolute;
    top: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    background-color: rgba(230, 126, 34, 0.8);
    border-radius: 50%;
}

@media (max-width: 576px) {
    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 20px;
        right: 20px;
    }
    
    .back-to-top i {
        font-size: 16px;
    }
}
