/* 1. The outermost container sets the 3D environment */


/* 2. The inner container that actually rotates */
.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    /* Smooth rotation */
    transform-style: preserve-3d;
    /* Tells children to live in 3D space */
}

/* 3. Trigger the 180-degree flip on hover */
.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

/* 4. Common styles for both front and back sides */
.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    /* Safari support */
    backface-visibility: hidden;
    /* Hides the face when it's turned away */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 5. Style the Front Side */
.flip-card-front {
    background-color: #ffffff;
    color: #333;
}



/* 6. Style the Back Side (Starts already rotated 180deg) */
.flip-card-back {
    background-color: #212529;
    color: white;
    transform: rotateY(180deg);
    /* Pre-flips the back side */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}


/* navigation menu dropdown */


/* Container positioning and safe hover space */
.dropdown {
    position: relative;
    display: inline-block;
    padding: 10px 0;
}

/* Align text and arrow */
.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

/* Animate the arrow on hover */
.dropdown-toggle svg {
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle svg {
    transform: rotate(180deg);
}

/* Dropdown Menu Styling */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    /* Centered and pushed down slightly */
    background-color: black;
    color: white;
    min-width: 220px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    /* Smoother, modern rounded corners */
    padding: 12px;
    margin: 0;
    list-style: none;
    border: 1px solid rgba(136, 136, 136, 0.1);

    /* Hidden state */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    /* Apple-style smooth bounce */
    z-index: 100;
}

/* Invisible bridge to prevent losing hover when moving mouse down */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
}

/* Reveal Dropdown */
.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Dropdown Items */
.dropdown-menu li {
    margin-bottom: 4px;
}

.dropdown-menu li:last-child {
    margin-bottom: 0;
}

/* Links inside dropdown */
.dropdown-menu li a {
    display: block;
    padding: 10px 16px;
    color: var(--text-color);
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.25s ease;
}

/* Elegant hover state: soft background tint, text color change, and slight slide right */
.dropdown-menu li a:hover {
    background-color: rgba(209, 18, 39, 0.05);
    /* Very light tint of brand red */
    color: #d11227;
    /* Brand red */
    padding-left: 22px;
    /* Slight indent effect */
}

/* --- Dark Mode Overrides --- */
[data-theme="dark"] .dropdown-menu {
    background-color: #1e1e1e;
    /* Slightly lighter than pure black */
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .dropdown-menu li a:hover {
    background-color: rgba(246, 174, 45, 0.1);
    /* Soft gold tint for dark mode */
    color: #f6ae2d;
    /* Gold */
}

/* menu.html */

/* Menu Header */
.menu-header {
    text-align: center;
    padding: 60px 20px;
    background-color: var(--card-bg, #f5f5f5);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.menu-header h1 {
    font-size: 2.5rem;
    color: #d11227;
    /* Brand Red */
    margin-bottom: 15px;
}

/* Menu Section Layout */
.menu-section {
    display: flex;
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
    gap: 40px;
}

/* Vertical Tabs (Left Side) */
.menu-tabs {
    flex: 0 0 280px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.tab-link {
    padding: 16px 20px;
    text-align: left;
    background: transparent;
    border: 1px solid rgba(136, 136, 136, 0.2);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color, #333);
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-link:hover {
    background: rgba(209, 18, 39, 0.05);
    color: #d11227;
    border-color: #d11227;
    padding-left: 25px;
    /* Nice indent effect on hover */
}

.tab-link.active {
    background: #d11227;
    color: #ffffff;
    border-color: #d11227;
    box-shadow: 0 10px 20px rgba(209, 18, 39, 0.2);
}

/* Tab Content area (Right Side) */
.menu-content {
    flex: 1;
    background: var(--card-bg, #ffffff);
    border: 1px solid rgba(136, 136, 136, 0.2);
    border-radius: 12px;
    padding: 40px;
    min-height: 500px;
}

.tab-panel {
    display: none;
    animation: fadeUp 0.4s ease forwards;
}

.tab-panel.active {
    display: block;
}

.tab-panel h2 {
    margin-top: 0;
    margin-bottom: 25px;
    color: #d11227;
    border-bottom: 2px solid rgba(209, 18, 39, 0.2);
    padding-bottom: 10px;
}

/* Grid Layouts for Menu Lists */
.menu-grid {
    display: grid;
    gap: 30px;
}

.three-col {
    grid-template-columns: repeat(3, 1fr);
}

.one-col {
    grid-template-columns: 1fr;
}

.menu-grid ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-grid li {
    padding: 12px 0;
    border-bottom: 1px dashed rgba(136, 136, 136, 0.3);
    color: var(--text-color, #444);
    font-size: 0.95rem;
}

.menu-grid li:last-child {
    border-bottom: none;
}

/* Entrance Animation */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Mobile Responsiveness --- */
@media (max-width: 991px) {
    .three-col {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .menu-section {
        flex-direction: column;
    }

    .menu-tabs {
        flex: unset;
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 15px;
        /* Hide scrollbar for cleaner look */
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .menu-tabs::-webkit-scrollbar {
        display: none;
    }

    .tab-link {
        white-space: nowrap;
        text-align: center;
    }

    .three-col {
        grid-template-columns: 1fr;
    }

    .menu-content {
        padding: 25px;
    }
}