/* Menu Page Styles */

/* Hero Section */
.menu-hero-section {
    position: relative;
    background: rgb(0, 9, 41);
    background-size: cover;
    padding: 100px 0;
    color: #fff;
    text-align: center;
    overflow: hidden;
}

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

.menu-hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.breadcrumb {
    display: inline-flex;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
}

.breadcrumb-item a {
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--primary-color);
}

.breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

.menu-hero-floating-icons .floating-food-icon {
    color: rgba(255, 255, 255, 0.1);
    z-index: 1;
}

/* Filter Section */
.menu-filter-section {
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.menu-filter-container {
    background-color: #fff;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.form-select, .form-control {
    border-radius: 8px;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.form-select:focus, .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(240, 21, 67, 0.25);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 8px;
    padding: 12px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #d01345;
    border-color: #d01345;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(240, 21, 67, 0.2);
}

/* Menu Items Section */
.menu-items-section {
    position: relative;
    background-color: #fff;
    overflow: hidden;
}

.menu-items-floating-icons .floating-food-icon {
    color: rgba(240, 21, 67, 0.05);
    font-size: 2.5rem;
    position: absolute;
    z-index: 1;
}

.menu-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    background-color: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.menu-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.menu-card-img {
    position: relative;
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
}

.menu-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.menu-card-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: rgba(240, 21, 67, 0.9);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.menu-card-actions {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 2;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
}

.menu-card:hover .menu-card-actions {
    opacity: 1;
    transform: translateX(0);
}

.btn-favorite, .btn-quick-view {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.btn-favorite:hover {
    background-color: #f8d7da;
    color: #dc3545;
}

.btn-quick-view:hover {
    background-color: #e2e3e5;
    color: #0a58ca;
}

.menu-card-body {
    padding: 20px;
    padding-bottom: 70px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    overflow: hidden;
}

.menu-card-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
    flex-shrink: 0;
}

.menu-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
    flex-shrink: 0;
}

.menu-card-desc {
    color: #6c757d;
    font-size: 0.9rem;
    flex-grow: 1;
    overflow: hidden;
}

.menu-card-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px 20px;
    background-color: #fff;
    border-top: 1px solid #eee;
}

.btn-add-to-cart {
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50px;
    padding: 8px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-add-to-cart:hover {
    background-color: #d01345;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(240, 21, 67, 0.2);
}

/* Pagination */
.pagination-container {
    margin-top: 3rem;
}

.pagination .page-link {
    color: #333;
    border: none;
    padding: 10px 15px;
    margin: 0 5px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    color: #fff;
}

.pagination .page-link:hover {
    background-color: #f8f9fa;
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* No Items Found */
.no-items-found {
    padding: 3rem 0;
}

.no-items-icon {
    font-size: 3rem;
    color: #dee2e6;
}

/* Quick View Modal */
.modal-content {
    border-radius: 15px;
    overflow: hidden;
    border: none;
}

.modal-header {
    border-bottom: 1px solid #f8f9fa;
    padding: 1.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.quick-view-img {
    height: 300px;
    overflow: hidden;
    border-radius: 10px;
}

.quick-view-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.quick-view-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.quick-view-category {
    display: inline-block;
    background-color: #f8f9fa;
    color: #6c757d;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.quick-view-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.quick-view-description {
    color: #6c757d;
    margin-top: 15px;
}

/* Price Range Slider */
.noUi-target {
    border-radius: 8px;
    border: none;
    box-shadow: none;
    height: 6px;
    background-color: #e9ecef;
}

.noUi-connect {
    background-color: var(--primary-color);
}

.noUi-handle {
    border: none;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    width: 18px !important;
    height: 18px !important;
    border-radius: 50%;
    right: -9px !important;
    top: -6px !important;
}

.noUi-handle:before, .noUi-handle:after {
    display: none;
}

.price-inputs {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #6c757d;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .menu-hero-title {
        font-size: 2.5rem;
    }
    
    .menu-filter-container {
        padding: 15px;
    }
}

@media (max-width: 767.98px) {
    .menu-hero-title {
        font-size: 2rem;
    }
    
    .menu-card-img {
        height: 180px;
    }
    
    .quick-view-img {
        height: 200px;
        margin-bottom: 20px;
    }
}

@media (max-width: 575.98px) {
    .menu-hero-section {
        padding: 70px 0;
    }
    
    .menu-hero-title {
        font-size: 1.75rem;
    }
    
    .breadcrumb {
        padding: 0.5rem 1rem;
    }
    
    .menu-card-img {
        height: 160px;
    }
}

/* Floating Food Icons Animation */
.floating-food-icon {
    position: absolute;
    font-size: 2rem;
    opacity: 0.5;
    z-index: 1;
    pointer-events: none;
    animation: float 15s infinite ease-in-out;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-15px) rotate(5deg);
    }
    50% {
        transform: translateY(0) rotate(0deg);
    }
    75% {
        transform: translateY(15px) rotate(-5deg);
    }
}

/* Hero section floating icons */
.menu-hero-floating-icons .floating-food-icon:nth-child(1) {
    top: 20%;
    left: 10%;
    font-size: 2.5rem;
    animation-duration: 18s;
}

.menu-hero-floating-icons .floating-food-icon:nth-child(2) {
    top: 60%;
    left: 15%;
    font-size: 3rem;
    animation-duration: 22s;
    animation-delay: 1s;
}

.menu-hero-floating-icons .floating-food-icon:nth-child(3) {
    top: 30%;
    right: 10%;
    font-size: 2.8rem;
    animation-duration: 20s;
    animation-delay: 2s;
}

.menu-hero-floating-icons .floating-food-icon:nth-child(4) {
    top: 70%;
    right: 15%;
    font-size: 2.2rem;
    animation-duration: 25s;
    animation-delay: 3s;
}

.menu-hero-floating-icons .floating-food-icon:nth-child(5) {
    top: 40%;
    left: 30%;
    font-size: 2rem;
    animation-duration: 19s;
    animation-delay: 1.5s;
}

.menu-hero-floating-icons .floating-food-icon:nth-child(6) {
    top: 50%;
    right: 30%;
    font-size: 2.4rem;
    animation-duration: 21s;
    animation-delay: 2.5s;
}

.menu-hero-floating-icons .floating-food-icon:nth-child(7) {
    top: 25%;
    left: 40%;
    font-size: 1.8rem;
    animation-duration: 17s;
    animation-delay: 0.5s;
}

.menu-hero-floating-icons .floating-food-icon:nth-child(8) {
    top: 65%;
    right: 40%;
    font-size: 2.1rem;
    animation-duration: 23s;
    animation-delay: 1.2s;
}

/* Menu items section floating icons */
.menu-items-floating-icons .floating-food-icon:nth-child(1) {
    top: 15%;
    left: 5%;
    font-size: 2.2rem;
    animation-duration: 20s;
}

.menu-items-floating-icons .floating-food-icon:nth-child(2) {
    top: 45%;
    left: 8%;
    font-size: 1.8rem;
    animation-duration: 18s;
    animation-delay: 1.5s;
}

.menu-items-floating-icons .floating-food-icon:nth-child(3) {
    top: 75%;
    left: 12%;
    font-size: 2.5rem;
    animation-duration: 22s;
    animation-delay: 2.5s;
}

.menu-items-floating-icons .floating-food-icon:nth-child(4) {
    top: 25%;
    right: 5%;
    font-size: 2rem;
    animation-duration: 19s;
    animation-delay: 0.8s;
}

.menu-items-floating-icons .floating-food-icon:nth-child(5) {
    top: 55%;
    right: 8%;
    font-size: 2.3rem;
    animation-duration: 21s;
    animation-delay: 1.2s;
}

.menu-items-floating-icons .floating-food-icon:nth-child(6) {
    top: 85%;
    right: 12%;
    font-size: 1.9rem;
    animation-duration: 23s;
    animation-delay: 2s;
}

/* Animation for menu items on hover */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.menu-card:hover .menu-card-title {
    color: var(--primary-color);
}

.menu-card:hover .btn-add-to-cart {
    animation: pulse 1s infinite;
}

/* Favorite icon styles */
.btn-favorite i.fas {
    color: #ff3366; /* Bright red color for favorited items */
    animation: heartPulse 0.3s ease-in-out;
}

.btn-favorite-modal i.fas {
    color: #ff3366; /* Matching color for modal favorite button */
    animation: heartPulse 0.3s ease-in-out;
}

/* Animation for when heart is favorited */
@keyframes heartPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* Hover effect */
.btn-favorite:hover i, .btn-favorite-modal:hover i {
    transform: scale(1.1);
}
