/* Enhanced Navbar Styles for Ta3mia Restaurant */
.mega-menu-container {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    background-color: rgba(249, 231, 159, 0.95);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    padding: 30px;
    border-radius: 0 0 10px 10px;
    border-top: 3px solid var(--primary-orange);
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.mega-menu-container.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.mega-menu-column h4 {
    color: var(--primary-red);
    font-size: 1.2rem;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-green);
}

.mega-menu-column ul {
    list-style: none;
}

.mega-menu-column li {
    margin-bottom: 10px;
}

.mega-menu-column a {
    color: var(--dark-text);
    font-size: 1rem;
    transition: all 0.2s ease;
    display: block;
    padding: 5px 0;
}

.mega-menu-column a:hover {
    color: var(--primary-orange);
    padding-right: 5px;
}

.mega-menu-featured {
    grid-column: span 4;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
}

.featured-item {
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.featured-item:hover {
    background-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-5px);
}

.featured-item img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    border: 3px solid var(--primary-green);
}

.featured-item h5 {
    color: var(--primary-orange);
    margin-bottom: 5px;
}

.featured-item .price {
    font-weight: bold;
    color: var(--primary-red);
}

/* Enhanced Navbar */
.navbar {
    position: relative;
    padding: 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    z-index: 1001;
}

.logo img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.logo:hover img {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.nav-menu {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
    margin: 0 5px;
}

.nav-link {
    display: flex;
    align-items: center;
    color: var(--dark-text);
    font-weight: 600;
    font-size: 1.1rem;
    padding: 10px 15px;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.nav-link i {
    margin-right: 5px;
    font-size: 1.2rem;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-red);
    background-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.nav-link.has-dropdown::after {
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 5px;
    transition: all 0.3s ease;
}

.nav-link.has-dropdown:hover::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 200px;
    background-color: rgba(249, 231, 159, 0.95);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 8px 20px;
    color: var(--dark-text);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.5);
    color: var(--primary-orange);
    padding-right: 25px;
}

.order-btn {
    background-color: var(--primary-orange);
    color: var(--light-text) !important;
    padding: 10px 20px !important;
    border-radius: 30px;
    margin-right: 10px;
    box-shadow: 0 4px 8px rgba(230, 126, 34, 0.3);
    transition: all 0.3s ease;
}

.order-btn:hover {
    background-color: var(--primary-red);
    color: var(--light-text) !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(231, 76, 60, 0.4);
}

.order-btn i {
    margin-right: 5px;
}

/* Sticky Navbar */
.navbar.sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(249, 231, 159, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

.navbar.sticky .logo img {
    width: 60px;
    height: 60px;
}

.navbar.sticky .nav-container {
    padding: 10px 0;
}

/* Menu Toggle for Mobile */
.menu-toggle {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--dark-text);
    transition: all 0.3s ease;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .mega-menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .mega-menu-featured {
        grid-column: span 2;
        flex-wrap: wrap;
    }
    
    .featured-item {
        flex: 0 0 48%;
        margin-bottom: 15px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        right: -100%;
        top: 0;
        flex-direction: column;
        background-color: rgba(249, 231, 159, 0.98);
        width: 80%;
        height: 100vh;
        text-align: center;
        transition: 0.3s;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        padding: 80px 0 30px;
        overflow-y: auto;
        z-index: 1000;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-item {
        margin: 15px 0;
    }
    
    .nav-link {
        padding: 10px 20px;
        font-size: 1.2rem;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background-color: transparent;
        box-shadow: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .nav-item.active .dropdown-menu {
        max-height: 500px;
    }
    
    .dropdown-item {
        padding: 8px 30px;
    }
    
    .mega-menu-container {
        position: static;
        padding: 15px;
        box-shadow: none;
        border-radius: 0;
        border-top: none;
    }
    
    .mega-menu-grid {
        grid-template-columns: 1fr;
    }
    
    .mega-menu-featured {
        grid-column: span 1;
    }
    
    .featured-item {
        flex: 0 0 100%;
    }
    
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}
