/* --- Reset & Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@1,400&family=Lato:wght@300;400;700&display=swap');

@font-face {
    font-family: 'Taiganja';
    src: url('https://www.idine.ca/wp-content/uploads/2025/08/Taiganja-Type.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* --- Base Wrapper & Layout --- */
.idine-menu-wrapper {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 15px;
    font-family: 'Lato', sans-serif;
    color: #ccc; /* Light grey for body text */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}
@media (min-width: 1025px) {
    .idine-menu-wrapper {
        min-height: 100vh; /* Allow content to grow beyond viewport without inner scrollbars */
    }
}

.menu-main-title {
    font-family: 'Taiganja', serif;
    font-weight: 400;
    font-size: clamp(2.5rem, 5vw, 3rem);
    text-align: center;
    margin-bottom: 30px;
    color: #FABA13;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* --- Reservation Button at Bottom (Catering Style) --- */
.menu-reservation-container {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(250, 186, 19, 0.2);
}

.reservation-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 14px 35px;
    background-color: #FABA13;
    border: 2px solid #FABA13;
    color: #081414;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
    max-width: 300px;
}

.reservation-cta-btn:hover {
    background-color: transparent;
    color: #FABA13;
    border-color: #FABA13;
    box-shadow: 0 0 25px rgba(250, 186, 19, 0.6);
    transform: translateY(-3px) scale(1.05);
}

/* Add shimmer effect to button */
.reservation-cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-30deg);
    transition: left 0.7s ease;
}

.reservation-cta-btn:hover::before {
    left: 150%;
}

/* Arrow icon styles and animation */
.reservation-cta-btn .arrow-icon {
    width: 1em;
    height: 1em;
    transform: translateX(-10px);
    opacity: 0;
    transition: all 0.4s ease;
}

.reservation-cta-btn:hover .arrow-icon {
    transform: translateX(0);
    opacity: 1;
}

/* --- Tab Navigation --- */
.idine-tabs-nav-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 40px;
}
.idine-tabs-nav {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scrollbar-width: none; /* For Firefox */
    -ms-overflow-style: none;  /* For Internet Explorer and Edge */
    padding: 0 10px; /* Give some breathing room */
    cursor: grab;
    scroll-behavior: smooth;
    flex-grow: 1;
}
.idine-tabs-nav::-webkit-scrollbar {
    display: none; /* For Chrome, Safari, and Opera */
}
.idine-tabs-nav.grabbing {
    cursor: grabbing;
}
.nav-arrow {
    background-color: rgba(250, 186, 19, 0.1);
    border: 1px solid #FABA13;
    color: #FABA13;
    cursor: pointer;
    font-size: 1.5rem;
    padding: 5px 10px;
    border-radius: 5px;
    z-index: 10;
    transition: background-color 0.3s ease;
}
.nav-arrow:hover {
    background-color: #FABA13;
    color: #000;
}
.nav-arrow.prev {
    margin-right: 10px;
}
.nav-arrow.next {
    margin-left: 10px;
}
.idine-tab-link {
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: #FABA13; /* Gold text color */
    background-color: transparent;
    border: 1px solid #FABA13; /* Gold border */
    border-radius: 5px; /* Rounded corners */
    padding: 8px 20px; /* Padding for button size */
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    flex-shrink: 0; /* Prevent tabs from shrinking */
}
.idine-tab-link.active, .idine-tab-link:hover {
    background-color: #FABA13; /* Gold background on hover/active */
    color: #000; /* Dark text on hover/active */
}
.idine-tab-link.active {
    animation: pulse-glow 2.5s infinite ease-in-out;
}

/* --- Tab Content --- */
.idine-tabs-content {
    flex-grow: 1;
    overflow: visible; /* Use page scroll instead of inner scroll */
}
.idine-tab-pane {
    display: none;
    opacity: 1;
    transition: opacity 0.4s ease-in-out;
}
.idine-tab-pane.is-exiting {
    opacity: 0;
}
.idine-tab-pane.active {
    display: block;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 5px rgba(250, 186, 19, 0.2); }
    50% { box-shadow: 0 0 15px rgba(250, 186, 19, 0.6); }
    100% { box-shadow: 0 0 5px rgba(250, 186, 19, 0.2); }
}

/* Custom scrollbar for content */
/* Removed custom inner scrollbar styling to avoid nested scrollbars */

/* --- Menu Grid & Items --- */
.idine-menu {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two-column layout */
    gap: 25px 50px; /* Row and Column gap */
}

@media (max-width: 768px) {
    .idine-menu {
        grid-template-columns: 1fr; /* Revert to single column on smaller screens */
    }
}

.menu-item {
    transition: background-color 0.3s ease, transform 0.3s ease;
    opacity: 0; /* Initially hidden for animation */
    animation: fadeIn 0.5s ease forwards;
}
.menu-item:hover {
    background-color: rgba(255, 255, 255, 0.03);
    transform: translateY(-5px); /* Add a lift effect */
}
.menu-item-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}
.menu-item-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-style: italic;
    font-weight: 400;
    color: #fff;
    padding-right: 10px;
    margin: 0;
}
.menu-item-dots {
    flex-grow: 1;
    border-bottom: 1px dotted #555;
    margin-bottom: 6px;
}
.menu-item-price {
    font-family: 'Lato', sans-serif;
    font-size: 1.2rem;
    color: #FABA13;
    font-weight: 700;
    padding-left: 10px;
}
.menu-item-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #aaa;
    padding-top: 5px;
    max-width: 85%; /* To not have description run into price area */
}

/* --- View All Button --- */
.view-all-container {
    text-align: center;
    margin-top: 30px;
}
.view-all-btn {
    font-family: 'Lato', sans-serif;
    background: transparent;
    border: 1px solid #FABA13;
    color: #FABA13;
    padding: 10px 30px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.view-all-btn:hover {
    background-color: #FABA13;
    color: #000;
}

/* --- Modal Styles --- */
.idine-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 999999; /* Higher z-index to avoid conflicts */
}
.idine-modal.active {
    opacity: 1;
    visibility: visible;
}
.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}
.modal-content {
    position: relative;
    background: #080c09; /* Dark background matching the theme */
    padding: 40px;
    border: 1px solid rgba(250, 186, 19, 0.2);
    border-radius: 8px;
    width: 90%;
    max-width: 1200px;
    height: 90vh;
    overflow-y: auto;
    z-index: 1000000; /* Higher z-index to avoid conflicts */
    transform: scale(0.95);
    transition: transform 0.3s ease;
}
.idine-modal.active .modal-content {
    transform: scale(1);
}
.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    line-height: 1;
}
.modal-menu {
    max-height: calc(90vh - 150px);
}
/* Custom scrollbar for modal */
.modal-content::-webkit-scrollbar { width: 8px; }
.modal-content::-webkit-scrollbar-track { background: rgba(0,0,0,0.2); }
.modal-content::-webkit-scrollbar-thumb { background: #FABA13; }
.modal-content::-webkit-scrollbar-thumb:hover { background: #dca00c; }
