/**
 * Menu Page Styles
 * Separate CSS file for the Menu page
 */

/* Hero Section */
.menu-hero {
    position: relative;
    height: 500px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    opacity: 0;
    animation: fadeInUp 1.2s ease-out forwards;
}

.menu-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.1) 100%);
}

.menu-hero-content {
    position: relative;
    z-index: 2;
}

.menu-hero-title {
    font-size: 16rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-family: 'Aref Ruqaa', serif;
    direction: rtl;
    color: white;
}

.menu-hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin: 0;
    opacity: 0.9;
    direction: rtl;
    color: white;
}

/* Main Content */
.menu-main {
    padding: 6rem 0;
    background: #f8f9fa;
}

/* Menu Navigation */
.menu-categories {
    margin-bottom: 4rem;
    opacity: 0;
    animation: slideInUp 1s ease-out 0.3s forwards;
}

.menu-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.menu-nav-btn {
    padding: 2rem 3rem;
    background: white;
    border: 1px solid #262626;
    color: #262626;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.menu-nav-btn:hover,
.menu-nav-btn.active {
    background: #262626;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 38, 38, 0.3);
}

/* Menu Items */
.menu-items {
    opacity: 0;
    animation: slideInUp 1s ease-out 0.6s forwards;
}

.menu-category {
    margin-bottom: 5rem;
    opacity: 0;
    animation: slideInUp 1s ease-out 0.6s forwards;
    transition: all 0.4s ease;
}

.category-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
    color: #1f2937;
    direction: rtl;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.menu-item {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.menu-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.menu-item-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #f8f9fa;
}

.menu-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    padding: 10px;
}

.menu-item:hover .menu-item-image img {
    transform: scale(1.1);
}

.menu-item-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #dc2626;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    direction: rtl;
}

.menu-item-badge.new {
    background: #059669;
}

.menu-item-badge.hot {
    background: #ea580c;
}

.menu-item-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.menu-item-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: #1f2937;
    direction: rtl;
    text-align: center;
    flex-grow: 0;
    line-height: 1.3;
}

.menu-item-description {
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 1rem;
    direction: rtl;
    text-align: center;
    font-size: 0.9rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.menu-item-footer {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    direction: rtl;
    flex-grow: 0;
}

.menu-item-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: #dc2626;
    text-align: center;
    margin-bottom: 0.5rem;
}

.menu-add-btn {
    background: #dc2626;
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    font-size: 1rem;
    margin-top: auto;
}

.menu-add-btn:hover {
    background: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 38, 38, 0.3);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .menu-hero-title {
        font-size: 8rem;
    }
    
    .menu-hero-subtitle {
        font-size: 1.2rem;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
    }
    
    .menu-nav {
        flex-direction: column;
        align-items: center;
    }
    
    .menu-nav-btn {
        width: 200px;
    }
    
    .category-title {
        font-size: 2rem;
    }
    
    .menu-item {
        margin: 0 1rem;
        min-height: 500px;
    }
    
    .menu-item-image {
        height: 180px;
    }
    
    .menu-item-content {
        padding: 1rem;
    }
    
    .menu-item-title {
        font-size: 1.1rem;
    }
    
    .menu-item-description {
        font-size: 0.85rem;
    }
    
    .menu-item-price {
        font-size: 1.2rem;
    }
    
    .menu-add-btn {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
}



/* Products Section Subtitle Styling */
.menu-section .section-subtitle {
    z-index: 2;
    position: relative;
}

/* Choose & Enjoy Section */
.menu-section {
    padding: 80px 0 2rem 0 !important;
    background: var(--gray-light) !important;
    overflow: hidden;
    display: block !important;
    visibility: visible !important;
}

.burger-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 1.8rem;
    position: relative;
    z-index: 1;
    direction: rtl;
    text-align: left;
    visibility: visible !important;
}

/* Clickable Card Link */
.burger-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s ease;
}

.burger-card-link:hover {
    transform: translateY(-5px);
    text-decoration: none;
    color: inherit;
}

.burger-grid .burger-card {
    direction: ltr;
    text-align: center;
}

@media (max-width: 1200px) {
    .burger-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .burger-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Tablet Header Styles */
    .site-header .container {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
    }
    
    .site-branding {
        flex: 0 0 auto;
    }
    
    .header-actions {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        flex: 0 0 auto;
    }
    
    .main-navigation {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
        flex: 0 0 auto;
    }
}

@media (max-width: 480px) {
    .burger-grid {
        grid-template-columns: 1fr;
    }
    
    
    /* Mobile Header Styles */
    .site-header .container {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
        height: 40px;
    }
    
    .site-branding {
        flex: 0 0 auto;
    }
    
    .header-actions {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        flex: 0 0 auto;
    }
    
    .main-navigation {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
        flex: 0 0 auto;
    }
}

.burger-card {
    background: var(--white) !important;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    animation: none;
    position: relative;
    text-align: center;
    display: flex !important;
    flex-direction: column;
    height: 100%;
    z-index: 1;
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
    visibility: visible !important;
}

.burger-card.animate-in {
    animation: professionalSlideUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.burger-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.burger-image {
    position: relative;
    overflow: hidden;
    height: 250px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.burger-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: scale(1);
}

.burger-card:hover .burger-image img {
    transform: scale(1.08) rotate(2deg);
}

.burger-info {
    padding: 1.8rem;
    position: relative;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.burger-price {
    position: absolute;
    bottom: 8px;
    left: 15px;
    background: #ff6b35;
    color: white;
    padding: 8px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
    text-align: left;
    width: 160px;
    height: 45px;
    box-sizing: border-box;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
}

.burger-price .main-price {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: line-through;
    flex-shrink: 0;    
}

.burger-price .old-price {    
    font-size: 1.2rem;
    font-weight: 800;
    color: #262626;
    flex-shrink: 0;
    white-space: nowrap;
}

.burger-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0;
}

.burger-description {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.85rem;
    line-height: 1.4;
    flex-grow: 1;
}

/* Button container to stick to bottom */
.burger-button-container {   
    margin-top: auto;
    padding-top: 1rem;
    
}



/* Menu Page Specific Styles - Featured Products and Fast Delivery Sections */

/* Featured Products Section */
.featured-products-section {
    padding: 6rem 0;
    background: var(--gray-light);
    overflow: hidden;
}

.featured-products-section .section-header {
    opacity: 0;
    transform: translateY(50px) scale(0.9);
    transition: all 1s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.featured-products-section .section-header.animate-in {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.featured-products-section .section-title {
    font-family: 'Aref Ruqaa', serif;
    font-size: 3.5rem;
    font-weight: 400;
}

.featured-products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.featured-product-card {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    min-height: 350px;
    opacity: 0;
    transform: translateX(-100px) rotateZ(-10deg) scale(0.8);
}

.featured-product-card.animate-in {
    animation: popularBurgerSlideIn 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.featured-product-card:hover {
    transform: translateY(-15px) rotateZ(2deg) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

/* Red Card */
.featured-product-card.red-card {
    background: linear-gradient(135deg, #ff4757 0%, #E4202B 50%, #c23616 100%);
}

/* Orange Card */
.featured-product-card.orange-card {
    background: linear-gradient(135deg, #ffa726 0%, #FF8C00 50%, #e65100 100%);
}

/* Red Card - Image on left side */
/* .featured-product-card.red-card .product-image {
    left: -250px;
    right: auto;
} */

.featured-product-card .card-content {
    display: flex;
    height: 100%;
    position: relative;
    padding: 2rem;
}

.featured-product-card .card-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 2;
    color: white;
    max-width: 60%;
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.3s;
}

.featured-product-card.animate-in .card-text {
    opacity: 1;
    transform: translateX(0);
}

.featured-product-card .product-name {
    font-family: 'Aref Ruqaa', serif;
    font-size: 3rem;
    font-weight: 400;
    color: white;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.1;
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.5s;
}

.featured-product-card.animate-in .product-name {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.featured-product-card .product-description {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.7s;
    max-width: 90%;
}

.featured-product-card.animate-in .product-description {
    opacity: 0.95;
    transform: translateY(0) scale(1);
}

.featured-product-card .calories-badge {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 25px;
    padding: 0.5rem 1rem;
    display: inline-block;
    margin-bottom: 2rem;
    width: fit-content;
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.9s;
}

.featured-product-card.animate-in .calories-badge {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.featured-product-card .calories-text {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.featured-product-card .btn-order-now {
    background: #000000;
    color: white;
    padding: 1.5rem 3rem;
    border-radius: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1.2rem;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    width: fit-content;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(20px) scale(0.9);
}

.featured-product-card.animate-in .btn-order-now {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition-delay: 1.1s;
}

.featured-product-card .btn-order-now:hover {
    background: #333333;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.featured-product-card .product-image {
    position: absolute;
    left: -50px;
    bottom: -100px;
    width: 400px;
    height: 450px;
    z-index: 1;
    overflow: hidden;
    background: transparent;
    background-color: transparent;
    opacity: 0;
    transform: translateX(100px) rotateZ(15deg) scale(0.7);
    transition: all 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.2s;
}

.featured-product-card.animate-in .product-image {
    opacity: 1;
    transform: translateX(0) rotateZ(0deg) scale(1);
}

.featured-product-card .product-image img {
    width: 150%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
    background: transparent !important;
    border-radius: 0;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    background-color: transparent !important;
    background-image: none !important;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.featured-product-card:hover .product-image img {
    transform: scale(1.1) rotateZ(-5deg);
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.2));
}

.burger-calories {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    font-weight: 500;
}



/* Menu Delivery Section */
.menu-delivery-section {
    padding: 8rem 0;
    background: var(--white);
}


.menu-delivery-section .menu-delivery-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.menu-delivery-section .menu-delivery-image {
    opacity: 0;
    transform: translateX(-80px) rotateY(-15deg);
    transition: all 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.menu-delivery-section .menu-delivery-image.animate-in {
    opacity: 1;
    transform: translateX(0) rotateY(0deg);
}

.menu-delivery-section .menu-delivery-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.menu-delivery-section .menu-delivery-image:hover img {
    transform: scale(1.05);
}

.menu-delivery-section .menu-delivery-text {
    opacity: 0;
    transform: translateX(80px) rotateY(15deg);
    transition: all 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.menu-delivery-section .menu-delivery-text.animate-in {
    opacity: 1;
    transform: translateX(0) rotateY(0deg);
}

.menu-delivery-section .menu-section-title {
    font-family: 'Aref Ruqaa', serif;
    font-size: 3.5rem;
    font-weight: 400;
    opacity: 0;
    transform: translateY(40px) scale(0.8);
    transition: all 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.menu-delivery-section .menu-section-title.animate-in {
    opacity: 1;
    transform: translateY(0) scale(1);
}


.menu-delivery-section .menu-delivery-description {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.7;
    margin-bottom: 2rem;
    color: var(--text-color);
    opacity: 0;
    transform: translateY(40px) scale(0.8);
    transition: all 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.menu-delivery-section .menu-delivery-description.animate-in {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.menu-delivery-section .menu-btn-order {
    background: var(--primary-color);
    color: white;
    padding: 1.5rem 3rem;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
    border: none;
    cursor: pointer;
    opacity: 0;
    transform: translateY(40px) scale(0.8);
    transition: all 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.menu-delivery-section .menu-btn-order.animate-in {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.menu-delivery-section .menu-btn-order:hover {
    background: #b91c1c;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .featured-products-section {
        padding: 60px 0;
    }
    
    .featured-products-section .section-title {
        font-size: 2.5rem;
    }
    
    .featured-products-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .featured-product-card {
        height: auto;
        min-height: 350px;
    }
    
    .featured-product-card .card-content {
        flex-direction: column;
    }
    
    .featured-product-card .product-image {
        height: 200px;
    }
    
    .menu-delivery-section {
        padding: 6rem 0;
    }
    
    .menu-delivery-section .menu-delivery-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .menu-delivery-section .menu-section-title {
        font-size: 2.5rem;
    }
    
    .menu-delivery-section .menu-delivery-image img {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .featured-products-section .section-title {
        font-size: 2rem;
    }
    
    .featured-product-card {
        min-height: 300px;
    }
    
    .featured-product-card .card-text {
        padding: 30px 20px;
    }
    
    .featured-product-card .product-name {
        font-size: 2rem;
    }
    
    .menu-delivery-section .menu-section-title {
        font-size: 2rem;
    }
    
    .menu-delivery-section .menu-delivery-description {
        font-size: 1rem;
    }
    
    .menu-delivery-section .menu-btn-order {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

/* Animation for sections */
.featured-products-section,
.menu-delivery-section {
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 0.8s ease forwards;
}

/* Featured Products Animation Keyframes */
@keyframes popularBurgerSlideIn {
    0% {
        opacity: 0;
        transform: translateX(-100px) rotateZ(-10deg) scale(0.8);
    }
    50% {
        opacity: 0.8;
        transform: translateX(-20px) rotateZ(-5deg) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateX(0) rotateZ(0deg) scale(1);
    }
}

@keyframes featuredProductBounce {
    0% {
        transform: translateY(0) scale(1);
    }
    100% {
        transform: translateY(-3px) scale(1.02);
    }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger animation for cards */
.featured-product-card {
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.6s ease forwards;
}

.featured-product-card:nth-child(1) {
    animation-delay: 0.2s;
}

.featured-product-card:nth-child(2) {
    animation-delay: 0.4s;
}
