/* Disable text selection */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes detailFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.menu-section {
    position: relative;
    max-width: 800px;
    width: 90vw;
    margin: 5rem auto 1rem;
    padding: 1rem 2vw;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.3));
    backdrop-filter: blur(16px);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
    overflow: visible;
    max-height: calc(100vh - 60px - 2rem);
    animation: fadeInUp 0.8s ease forwards;
    flex: 1;
    max-height: unset;
    /* Önceki max-height sınırlamasını iptal eder */
}

.menu-wrapper {
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 60px - 2rem);
    overflow-y: auto;
    padding-bottom: 2rem;
    /* Footerin görünmesini engellememesi için */
}

.back-button {
    position: absolute;
    top: -45px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    height: 40px;
    background: rgba(25, 25, 25, 0.6);
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: background 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
    z-index: 100;
}

.back-button:hover {
    background: rgba(194, 146, 104, 0.5);
}

.back-button:active {
    background: rgba(194, 146, 104, 0.8);
}

.back-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.back-text {
    margin-left: 8px;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    text-decoration: none;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    text-align: center;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

.menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.menu-list li::marker,
.menu-list li::before {
    content: none !important;
    display: none;
}

.menu-list li {
    position: relative;
}

.menu-list li::after {
    content: '';
    position: absolute;
    display: none;
}

.menu-item:nth-child(odd) .menu-item-main {
    --delay: 0.1s;
}

.menu-item:nth-child(even) .menu-item-main {
    --delay: 0.2s;
}

.menu-item-main {
    position: relative;
    /* For stripe animation */
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: background 0.5s ease-out, transform 0.4s ease-out, box-shadow 0.5s ease-out;
    animation: fadeInUp 0.6s ease var(--delay) forwards;
}

/* Animated left stripe 
.menu-item-main::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background: #c29268;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    transition: width 0.4s ease-in-out;
}
*/

.menu-item.active .menu-item-main::before {
    width: 6px;
    /* Stripe width when active */
}

.menu-item-img {
    width: 36px;
    height: 36px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    margin-right: 1rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.item-info {
    flex: 1;
}

.item-info strong {
    font-size: 1.2rem;
    color: #c29268;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.item-price {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: #fff;
    margin-left: auto;
    white-space: nowrap;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

/* Açılır detay animasyonu */
.item-extra {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.8s ease;
    box-sizing: border-box;
}

.item-extra-content {
    opacity: 0;
    transform: translateY(-5px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    padding: 0.75rem;
}

.menu-item.active .item-extra {
    max-height: 400px;
}

.menu-item.active .item-extra-content {
    opacity: 1;
    transform: translateY(0);
}

/* Diğer stiller */
.item-extra-img {
    display: block;
    max-width: 100%;
    width: 220px;
    /* Sabit genişlik */
    height: auto;
    object-fit: cover;
    border-radius: 6px;
    margin: 0.75rem auto;
}

.item-extra-text h4 {
    font-size: 1.1rem;
    color: #c29268;
    margin: 0.5rem 0 0.25rem;
    text-align: center;
}

.item-extra-text p {
    font-size: 0.9rem;
    color: #ddd;
    line-height: 1.4;
    text-align: center;
    margin-bottom: 0.75rem;
}

.menu-item-main:hover:not(.active) {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
}

.menu-item-main:hover:not(.active) .menu-item-img {
    transform: scale(1.05);
}

.menu-item.active .menu-item-main {
    background: rgba(194, 146, 104, 0.2);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.8);
    transform: translateY(-2px) scale(1.03);
}

.menu-item-main.active .menu-item-img,
.menu-item.active .menu-item-img {
    transform: scale(1.05);
}

.menu-note {
  display: none; /* JS ile görünür yapılır */
  font-size: 1rem;
  color: #f4f4f4;
  font-style: italic;
  margin: 0 auto 1.5rem;
  padding: 0.75rem 1.25rem;
  background-color: rgba(255, 255, 255, 0.05);
  border-left: 4px solid #c89b6f;
  border-radius: 6px;
  max-width: 700px;
  animation: fadeInUp 0.6s ease forwards;
  text-align: center;
  line-height: 1.5;
  backdrop-filter: blur(4px);
}

.menu-note::before {
  content: "ℹ️ ";
  margin-right: 0.5rem;
}


@media (max-width:480px) {
    .menu-section {
        width: 95vw;
        margin: 5rem 2.5vw 1rem;
        padding: 0.75rem 2.5vw;
        max-height: calc(100vh-56px-2rem);
    }

    .section-title {
        font-size: 1.6rem;
        margin-bottom: 0.5rem;
    }

    .menu-item-main {
        padding: 0.6rem;
    }

    .menu-item-img {
        width: 32px;
        height: 32px;
        margin-right: 0.6rem;
    }

    .item-info strong {
        font-size: 1rem;
    }

    .item-price {
        font-size: 1rem;
    }

    .item-extra-img {
        width: 60%;
    }

    .back-button {
        position: absolute;
        top: -45px;
        left: 50%;
        transform: translateX(-50%);
        display: inline-flex;
        align-items: center;
        padding: 0 8px;
        height: 36px;
        background: rgba(25, 25, 25, 0.6);
        border-radius: 18px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
        cursor: pointer;
        transition: background 0.3s ease;
        text-decoration: none;
        white-space: nowrap;
        z-index: 100;
    }

    .back-button:hover {
        background: rgba(194, 146, 104, 0.5);
    }

    .back-button:active {
        background: rgba(194, 146, 104, 0.8);
    }

    .back-icon {
        width: 20px;
        height: 20px;
    }

    .back-text {
        font-size: 0.8rem;
        margin-left: 6px;
    }

    .menu-item-main::before {
        transition: width 0.4s ease-in-out;
    }
}