/* =============================== LUNCH PAGE DYNAMIC STYLES ================================= */

/* Vibrant Lunch Color Palette */
:root {
    --lunch-primary: #FF9F66;
    --lunch-secondary: #FFA07A;
    --lunch-accent: #FFD93D;
    --lunch-green: #4ECDC4;
    --lunch-blue: #95E1D3;
    --lunch-cream: #FFF9E6;
    --lunch-brown: #8B6F47;
    --lunch-dark: #2C3E50;
}

/* =============================== BREADCRUMB ================================= */
.lunch-breadcrumb {
    background: var(--lunch-cream);
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 159, 102, 0.2);
}

.lunch-breadcrumb .breadcrumb-item a {
    color: var(--lunch-brown);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.lunch-breadcrumb .breadcrumb-item.active {
    color: var(--lunch-dark);
    font-weight: 600;
}

/* =============================== HERO SECTION ================================= */
.lunch-hero {
    background: linear-gradient(135deg, #FF9F66 0%, #FFA07A 50%, #FFD93D 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.lunch-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 40% 50%, rgba(255, 255, 255, 0.15), transparent);
}

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

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: white;
    opacity: 0.95;
}

.hero-search-wrapper {
    max-width: 600px;
}

.hero-search-form .input-group-text {
    background: white;
    border: none;
    border-radius: 50px 0 0 50px;
}

.hero-search-form .form-control {
    border: none;
    padding: 12px 20px;
}

.hero-search-form .btn-lunch {
    background: var(--lunch-dark);
    color: white;
    border: none;
    border-radius: 0 50px 50px 0;
    padding: 12px 25px;
    font-weight: 700;
}

/* =============================== CAROUSEL ================================= */
.featured-lunch-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.featured-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 25px;
    color: white;
}

.featured-overlay h4 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    padding: 15px;
}

/* =============================== LUNCH CATEGORIES ================================= */
.lunch-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.lunch-category-card {
    background: white;
    border-radius: 15px;
    padding: 25px 20px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.lunch-category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--category-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.lunch-category-card:hover::before {
    transform: scaleX(1);
}

.lunch-category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.category-icon-wrapper {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    background: var(--lunch-cream);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lunch-category-card:hover .category-icon-wrapper {
    background: var(--category-color);
    transform: scale(1.1) rotate(10deg);
}

.category-icon-wrapper i {
    font-size: 35px;
    color: var(--lunch-brown);
    transition: color 0.3s ease;
}

.lunch-category-card:hover .category-icon-wrapper i {
    color: white;
}

.category-name {
    color: var(--lunch-dark);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.category-subtitle {
    color: #999;
    font-size: 0.85rem;
    margin: 0;
}

/* =============================== MOOD CARDS ================================= */
.mood-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.mood-card {
    background: white;
    border-radius: 15px;
    padding: 25px 20px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
}

.mood-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--mood-color);
    text-decoration: none;
}

.mood-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    background: var(--mood-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.mood-card:hover .mood-icon {
    transform: scale(1.1);
}

.mood-icon i {
    font-size: 35px;
    color: white;
}

.mood-name {
    color: var(--lunch-dark);
    font-weight: 700;
    margin-bottom: 5px;
}

.mood-description {
    color: #666;
    font-size: 0.85rem;
    margin: 0;
}

/* =============================== LUNCHBOX SECTION ================================= */
.bg-lunchbox {
    background: linear-gradient(135deg, var(--lunch-primary) 0%, var(--lunch-secondary) 100%);
}

.lunchbox-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
}

.lunchbox-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.lunchbox-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.lunchbox-image-wrapper {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.lunchbox-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.lunchbox-card:hover .lunchbox-image-wrapper img {
    transform: scale(1.1);
}

.lunchbox-badge-overlay {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--lunch-accent);
    color: var(--lunch-dark);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.lunchbox-card-body {
    padding: 20px;
}

.lunchbox-card-body h5 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.lunchbox-card-body h5 a {
    color: var(--lunch-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.lunchbox-card-body h5 a:hover {
    color: var(--lunch-primary);
}

.btn-outline-lunch {
    border: 2px solid var(--lunch-primary);
    color: var(--lunch-primary);
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-outline-lunch:hover {
    background: var(--lunch-primary);
    color: white;
}

/* =============================== GLOBAL LUNCHES ================================= */
.global-lunch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.global-lunch-card {
    background: white;
    border-radius: 15px;
    padding: 25px 20px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
}

.global-lunch-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.global-flag {
    font-size: 50px;
    margin-bottom: 12px;
}

.global-country {
    color: var(--lunch-dark);
    font-weight: 700;
    margin-bottom: 5px;
}

.global-dish {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.global-explore {
    color: var(--lunch-primary);
    font-weight: 700;
    opacity: 0;
    transform: translateY(5px);
    transition: all 0.3s ease;
}

.global-lunch-card:hover .global-explore {
    opacity: 1;
    transform: translateY(0);
}

/* =============================== CHEF CARDS ================================= */
.chef-lunch-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.chef-lunch-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.chef-image-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.chef-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chef-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--lunch-cream), var(--lunch-blue));
    display: flex;
    align-items: center;
    justify-content: center;
}

.chef-placeholder i {
    font-size: 70px;
    color: var(--lunch-brown);
    opacity: 0.3;
}

.chef-card-body {
    padding: 20px;
}

.chef-name {
    color: var(--lunch-dark);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.chef-tip {
    color: #666;
    font-style: italic;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
    padding-left: 12px;
    border-left: 3px solid var(--lunch-primary);
}

.chef-tip i {
    color: var(--lunch-primary);
    margin-right: 5px;
}

/* =============================== TIPS SECTION ================================= */
.bg-tips {
    background: linear-gradient(135deg, var(--lunch-green) 0%, var(--lunch-blue) 100%);
}

.tip-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.tip-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.tip-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
}

.tip-icon i {
    font-size: 30px;
    color: var(--lunch-primary);
}

.tip-title {
    color: var(--lunch-dark);
    font-weight: 700;
    margin-bottom: 10px;
}

.tip-content {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* =============================== TRENDING SECTION ================================= */
.trending-badge {
    display: inline-block;
    background: var(--lunch-primary);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
}

.trending-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 250px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.trending-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

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

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

.trending-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 20px;
    color: white;
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.3s ease;
}

.trending-card:hover .trending-overlay {
    transform: translateY(0);
    opacity: 1;
}

.trending-overlay h6 {
    font-weight: 700;
    margin-bottom: 10px;
}

/* =============================== QUICK LUNCH SECTION ================================= */
.quick-badge {
    display: inline-block;
    background: var(--lunch-accent);
    color: var(--lunch-dark);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
}

.quick-lunch-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.quick-lunch-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.quick-image-wrapper {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.quick-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.quick-lunch-card:hover .quick-image-wrapper img {
    transform: scale(1.1);
}

.quick-time-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--lunch-accent);
    color: var(--lunch-dark);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.quick-card-body {
    padding: 20px;
}

.quick-card-body h5 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.quick-card-body h5 a {
    color: var(--lunch-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.quick-card-body h5 a:hover {
    color: var(--lunch-primary);
}

/* =============================== COMPACT RECIPE CARDS ================================= */
.lunch-recipe-card-compact {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    height: 100%;
}

.lunch-recipe-card-compact:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.recipe-image-wrapper-compact {
    position: relative;
    height: 140px;
    overflow: hidden;
}

.recipe-image-wrapper-compact img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.lunch-recipe-card-compact:hover .recipe-image-wrapper-compact img {
    transform: scale(1.08);
}

.recipe-hover-actions-compact {
    position: absolute;
    top: 8px;
    right: 8px;
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.3s ease;
}

.lunch-recipe-card-compact:hover .recipe-hover-actions-compact {
    opacity: 1;
    transform: translateY(0);
}

.hover-action-btn-compact {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.hover-action-btn-compact:hover {
    transform: scale(1.1);
}

.hover-action-btn-compact i {
    color: var(--lunch-primary);
    font-size: 16px;
}

.recipe-time-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--lunch-dark);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.recipe-card-body-compact {
    padding: 12px;
}

.recipe-title-compact {
    font-size: 0.9rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.recipe-title-compact a {
    color: var(--lunch-dark);
    text-decoration: none;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recipe-title-compact a:hover {
    color: var(--lunch-primary);
}

.empty-state-compact {
    text-align: center;
    padding: 50px 20px;
}

.empty-state-compact i {
    font-size: 70px;
    color: var(--lunch-cream);
    margin-bottom: 15px;
}

.empty-state-compact h5 {
    color: var(--lunch-dark);
    font-weight: 700;
    margin-bottom: 8px;
}

.empty-state-compact p {
    color: #999;
    margin: 0;
}

/* =============================== PAGINATION ================================= */
.lunch-pagination {
    margin: 20px 0 10px;
}

.lunch-pagination .pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
    justify-content: center;
}

.lunch-pagination .page-item {
    margin: 0;
}

.lunch-pagination .page-link {
    background: white;
    border: 2px solid #e8e8e8;
    color: var(--lunch-dark);
    padding: 8px 16px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 44px;
    justify-content: center;
}

.lunch-pagination .page-link:hover {
    background: var(--lunch-primary);
    border-color: var(--lunch-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 159, 102, 0.3);
}

.lunch-pagination .page-item.active .page-link {
    background: linear-gradient(135deg, var(--lunch-primary), var(--lunch-secondary));
    border-color: var(--lunch-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 159, 102, 0.4);
}

.lunch-pagination .page-item.disabled .page-link {
    background: #f5f5f5;
    border-color: #e8e8e8;
    color: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.lunch-pagination .page-item.disabled .page-link:hover {
    transform: none;
    box-shadow: none;
    background: #f5f5f5;
    border-color: #e8e8e8;
    color: #ccc;
}

.lunch-pagination .page-item:first-child .page-link,
.lunch-pagination .page-item:last-child .page-link {
    padding: 8px 20px;
    font-weight: 700;
    background: var(--lunch-cream);
}

.lunch-pagination .page-item:first-child .page-link:hover,
.lunch-pagination .page-item:last-child .page-link:hover {
    background: var(--lunch-primary);
}

/* =============================== FLOATING BUTTON ================================= */
.floating-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, var(--lunch-primary), var(--lunch-secondary));
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    box-shadow: 0 6px 20px rgba(255, 159, 102, 0.4);
    text-decoration: none;
    display: none;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    z-index: 1000;
    transition: all 0.3s ease;
}

.floating-top-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 159, 102, 0.5);
    text-decoration: none;
    color: white;
}

.floating-top-btn i {
    font-size: 20px;
}

/* =============================== SECTION TITLES ================================= */
.lunch-title {
    color: var(--lunch-dark);
}

.lunch-title i {
    color: var(--lunch-primary);
    margin-right: 10px;
}

/* =============================== RESPONSIVE ================================= */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .lunch-categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .lunch-categories-grid {
        grid-template-columns: 1fr;
    }
    
    .mood-grid {
        grid-template-columns: 1fr;
    }
    
    .global-lunch-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .floating-top-btn {
        bottom: 20px;
        right: 20px;
        padding: 12px 20px;
    }
    
    .lunch-pagination .page-item:not(:first-child):not(:last-child) {
        display: none;
    }
    
    .lunch-pagination .page-item.active {
        display: inline-block;
    }
}

/* =============================== SECTION SPACING ================================= */
.section.pt-4 {
    padding-top: 2.5rem !important;
}

.section.pb-4 {
    padding-bottom: 2.5rem !important;
}

/* =============================== SMOOTH SCROLL ================================= */
html {
    scroll-behavior: smooth;
}

/* =============================== ANIMATIONS ================================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section {
    animation: fadeInUp 0.6s ease-out;
}
