/* ===================================
   MENU.CSS - Style dla strony menu
   La mia Fabbrica - Restauracja
   =================================== */

/* ===================================
   DEKORACYJNE TŁO
   =================================== */
.menu-page-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    padding: 40px 20px;
    min-height: 100vh;
}

.menu-page-container::before {
    content: '';
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    width: 140vw;
    height: 140vh;
    max-width: 2400px;
    background-image: url('../assets/img/bg.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.4;
    pointer-events: none;
    z-index: 1;
}

/* ===================================
   NAWIGACJA KATEGORII
   =================================== */
.menu-categories {
    background-color: #3A3A3A;
    padding: 15px 0;
    margin-bottom: 40px;
    position: sticky;
    top: 90px;
    z-index: 999;
}

.categories-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.category-btn {
    background-color: transparent;
    color: #fff;
    border: none;
    padding: 10px 16px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 400;
    transition: all var(--transition-normal);
    font-family: var(--font-primary);
    border-radius: var(--radius-sm);
}

.category-btn:hover,
.category-btn.active {
    background-color: var(--color-secondary);
}

/* ===================================
   SEKCJE MENU
   =================================== */
.menu-section {
    max-width: 1200px;
    margin: 0 auto 60px;
    background-color: rgba(255, 255, 255, 0.5);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 2;
}

.menu-section.hidden {
    display: none;
}

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

.section-header h2 {
    font-size: 2.5em;
    font-family: var(--font-accent);
    color: var(--color-text);
    margin-bottom: 5px;
    font-weight: 400;
    line-height: 1.2em;
    letter-spacing: -0.7px;
}

.section-header p {
    font-size: 1.8em;
    font-style: italic;
    color: #666;
    font-weight: 400;
}

/* ===================================
   INTRO KATEGORII
   =================================== */
.category-intro {
    display: flex;
    gap: 30px;
    align-items: center;
    margin-bottom: 50px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.05) 0%, rgba(255, 255, 255, 0.3) 100%);
    border-radius: 15px;
    border-left: 5px solid var(--color-secondary);
}

.intro-image {
    flex: 0 0 300px;
    height: 250px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.intro-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.intro-text {
    flex: 1;
}

.intro-text h3 {
    font-size: 1.6em;
    font-family: var(--font-accent);
    color: var(--color-secondary);
    margin-bottom: 15px;
    font-weight: 400;
    line-height: 1.2em;
    letter-spacing: -0.7px;
}

.intro-text p {
    font-size: 1.05em;
    line-height: 1.8;
    color: #333;
    font-weight: 400;
}

/* ===================================
   POZYCJE MENU
   =================================== */
.menu-item {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

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

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.item-title {
    flex: 1;
}

.item-title h3 {
    font-size: 1.35em;
    font-family: var(--font-accent);
    color: var(--color-text);
    margin-bottom: 5px;
    font-weight: 400;
    line-height: 1.2em;
    letter-spacing: -0.7px;
}

.item-title h4 {
    font-size: 1.05em;
    font-style: italic;
    color: #666;
    font-weight: 400;
}

.item-price {
    font-size: 1.6em;
    font-weight: 700;
    color: var(--color-text);
    white-space: nowrap;
    margin-left: 20px;
}

.price-unit {
    font-size: 0.7em;
    font-weight: 400;
}

.item-description {
    color: #555;
    font-size: 1em;
    line-height: 1.6;
    font-weight: 400;
}

/* ===================================
   BADGE I OZNACZENIA
   =================================== */
.badge {
    display: inline-block;
    margin-left: 10px;
    font-size: 0.85em;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 3px;
}

.badge-hit {
    background-color: var(--color-secondary);
    color: #fff;
}

.badge-new {
    background-color: var(--color-primary);
    color: #fff;
}

/* ===================================
   SEKCJA NAPOJE
   =================================== */
.drinks-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.drinks-category {
    background: rgba(255, 255, 255, 0.6);
    padding: 25px;
    border-radius: var(--radius-md);
}

.drinks-category h4 {
    font-size: 1.3em;
    font-family: var(--font-accent);
    color: var(--color-secondary);
    margin-bottom: 15px;
    font-weight: 400;
    line-height: 1.2em;
    letter-spacing: -0.7px;
    border-bottom: 2px solid var(--color-secondary);
    padding-bottom: 8px;
}

/* ===================================
   SUPPLIER INFO
   =================================== */
.supplier-info {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid var(--color-secondary);
    font-size: 0.95em;
    color: #666;
}

.supplier-info a {
    color: var(--color-secondary);
    text-decoration: none;
    font-weight: 600;
}

.supplier-info a:hover {
    text-decoration: underline;
}

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 968px) {
    .category-intro {
        flex-direction: column;
        text-align: center;
    }

    .intro-image {
        flex: 0 0 auto;
        width: 100%;
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .menu-section {
        padding: 20px;
    }

    .item-header {
        flex-direction: column;
    }

    .item-price {
        margin-left: 0;
        margin-top: 10px;
    }

    .drinks-section {
        grid-template-columns: 1fr;
    }

    .menu-categories {
        top: 70px;
    }
}
