/**
 * Menu Page Styles
 */

/* Menu Section - Grid Layout */
.menu-section {
    padding: 6rem 0;
    background-color: var(--cream-bg);
}

.menu-content {
    margin: 0;
}

.menu-items {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.menu-item {
    text-align: center;
    padding: 12px;
    background: var(--cream-bg);
    border: 1px solid var(--black);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.3s ease;
}

.menu-item-content {
    padding: 8px;
    background-color: var(--light-gray);
}

.menu-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
}

/* Smooth scroll with offset for anchors */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 140px;
}

.menu-item-title {
    font-weight: var(--font-bold);
    font-size: var(--text-md);
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}

.menu-item-time {
    color: #666;
    font-size: var(--text-xs);
    font-weight: var(--font-normal);
    line-height: 1.4;
}

/* Mobile Responsiveness for Menu Section */
@media (max-width: 1024px) {
    .menu-items {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .menu-section {
        padding: 3rem 0;
    }
    
    .menu-items {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }
    
    .menu-item {
        padding: .5rem;
    }

    .menu-item-content {
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    /* Zajistit, že obědové menu položky si zachovají svůj layout */
    #obedove-menu .menu-item-detail {
        display: block !important;
        height: auto !important;
    }
}

.menu-page-section {
    padding: 50px 0 50px;
    background-color: var(--cream-bg);
    border-bottom: 1px solid var(--light-gray);
}

.menu-page-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: start;
}

/* Snídaňové menu má speciální layout s obrázkem */
#snidanove-menu .menu-page-content {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

/* Left Column - Menu Content */
.menu-page-left {
    max-width: 100%;
}

/* Menu items rozdělené do dvou sloupců */
.menu-items-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 80px;
    row-gap: 1rem;
}

/* Snídaňové a obědové menu mají speciální layout - vynecháváme grid */
#snidanove-menu .menu-items-list,
#obedove-menu .menu-items-list {
    display: block;
}

.menu-header {
    margin-bottom: 40px;
}

.menu-title {
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
    color: #1a1a1a;
    margin-bottom: 0;
    letter-spacing: 0.02em;
}

.menu-time {
    color: #666;
    margin: 0;
    font-weight: var(--font-normal);
}

/* Obědové menu - slider container */
#obedove-menu .menu-items-list {
    position: relative;
    width: 100%;
}

#obedove-menu .menu-slider-wrapper {
    position: relative;
    width: 100%;
    display: block;
    visibility: visible;
    min-height: 250px;
}

#obedove-menu .menu-slider-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    display: block;
    height: auto;
}

#obedove-menu .menu-slider {
    display: flex;
    transition: transform 0.3s ease;
    gap: 40px; /* Zmenšená mezera z 80px na 40px */
    width: 100%;
    min-height: 200px;
    transform: translateX(0); /* Reset transform */
    user-select: none; /* Zabránit selekci textu při drag */
}

#obedove-menu .menu-item-detail {
    flex: 0 0 calc(50% - 20px); /* Upraveno kvůli menšímu gap */
    min-height: 200px;
    display: block;
    visibility: visible;
    opacity: 1;
    margin-bottom: 16px;
}

/* Šipky slideru - vráceno původní funkcionalita */
.slider-arrow {
    background: var(--black);
    color: var(--cream-bg);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.slider-arrow.slider-prev {
    left: -70px;
}

.slider-arrow.slider-next {
    right: -70px;
}

.slider-arrow:hover {
    background: #333;
    transform: translateY(-50%) scale(1.05);
}

.slider-arrow:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.5;
}

.slider-arrow:disabled:hover {
    transform: translateY(-50%);
}

/* Obědové menu - den a jeho položky */
#obedove-menu .menu-day-item {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

#obedove-menu .menu-day-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

#obedove-menu .menu-item-name {
    font-weight: var(--font-medium);
    font-size: var(--text-sm);
}

/* Speciální slide s obrázkem pro pátek */
.image-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

.friday-special-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-height: 480px;
}

/* Progress bar pro slider */
.slider-progress {
    width: 100%;
    height: 4px;
    background-color: #e0e0e0;
    border-radius: 2px;
    margin-top: 20px;
    display: none;
}

.slider-progress-bar {
    height: 100%;
    background-color: var(--black);
    border-radius: 2px;
    transition: width 0.2s ease;
    width: 0%;
}

/* Mobile responsiveness pro obědové menu slider */
@media (max-width: 768px) {
    /* Skrýt šipky na mobile */
    #obedove-menu .slider-arrow {
        display: none !important;
    }

    /* Skrýt páteční obrázek na mobile */
    #obedove-menu .image-slide {
        display: none !important;
    }

    /* Zobrazit progress bar na mobile */
    #obedove-menu .slider-progress {
        display: block !important;
    }

    /* Mobile freeMode slider */
    #obedove-menu .menu-slider-container {
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    /* Skrýt scrollbar v Chrome/Safari */
    #obedove-menu .menu-slider-container::-webkit-scrollbar {
        display: none;
    }

    /* Mobile slider nastavení */
    #obedove-menu .menu-slider {
        transition: none !important;
        transform: none !important;
        gap: 40px;
        padding-right: 40px;
    }

    /* Mobile slide šířka - přibližně 1.05 slidu viditelných */
    #obedove-menu .menu-item-detail {
        flex: 0 0 calc(95% - 38px) !important;
        min-width: calc(95% - 38px);
        display: block !important;
        height: auto !important;
    }

    /* Flex nastavení pro název a cenu v obědovém menu na mobile */
    #obedove-menu .menu-item-name {
        flex: 4;
    }

    #obedove-menu .menu-item-price {
        flex: 2;
    }
}

.menu-item-detail {
    margin-bottom: 16px;
    padding-bottom: 16px;
}

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

.menu-item-header {
    margin-bottom: 8px;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.menu-item-header h6 {
    font-weight: var(--font-semibold);
    color: #1a1a1a;
    margin: 0;
    line-height: var(--leading-tight);
}

/* Větší margin pro záhlaví s datem v obědovém menu */
#obedove-menu .menu-item-detail > .menu-item-header {
    margin-bottom: 20px;
}

.menu-item-price {
    font-weight: var(--font-semibold);
    color: #1a1a1a;
    flex: 4;
    text-align: right;
    font-size: var(--text-sm);
}

.menu-icon {
    width: 17px;
    height: 17px;
    display: inline;
    vertical-align: middle;
}

.menu-item-symbol {
    margin-top: 4px;
    margin-bottom: 0;
}

.menu-item-description {
    color: #666;
    line-height: var(--leading-normal);
    margin: 0;
    font-weight: var(--font-normal);
    width: 85%;
    font-size: var(--text-xs);
}



/* Right Column - Image */
.menu-page-right {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.menu-page-image {
    width: 100%;
    max-width: 500px;
    height: auto;
}

/* Mobile Responsiveness */
@media (max-width: 1200px) {
    .menu-page-content {
        gap: 60px;
    }
   
}

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

    .menu-page-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* Snídaňové menu na mobile také jen jeden sloupec */
    #snidanove-menu .menu-page-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* Na mobile jen jeden sloupec */
    .menu-items-list {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Skrytí obrázků na mobilních zařízeních */
    .menu-page-right {
        display: none;
    }
}

@media (max-width: 480px) {
    .menu-page-section {
        padding: 30px 0 50px;
         min-height: 100%;
    }
   html {
    scroll-padding-top: 60px;
}
}

/* Nápojové menu styly */
.napojove-menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.napojove-menu-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.napojove-section-header {
    margin: 2rem 0 1rem 0;
    border-bottom: 2px solid var(--primary-green);
    padding-bottom: 0.5rem;
}

.napojove-section-header h3 {
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    color: var(--primary-green);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.napojove-section-header:first-child {
    margin-top: 0;
}

/* Zrušení padding a margin pro menu-item-detail v nápojovm menu */
.napojove-menu-column .menu-item-detail {
    padding: 0;
    margin: 0;
}

/* Zrušení margin pro menu-item-header v nápojovém menu */
.napojove-menu-column .menu-item-header {
    margin: 0;
}

/* Speciální styling pro sekci Víno v nápojovém menu */
.napojove-menu-column .menu-item-detail.vino-section .menu-item-header {
    margin-bottom: 8px;
}

.napojove-menu-column .menu-item-detail.vino-section .menu-item-header h6 {
    flex: 4;
}

.napojove-menu-column .menu-item-detail.vino-section .menu-item-price {
    flex: 4;
}

@media (max-width: 768px) {
    .napojove-menu-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}