/* =============================== SNACK PAGE STYLES ================================= */

/* Color Palette - Fun & Vibrant */
:root {
    --snack-primary: #FFD93D;
    --snack-secondary: #FF9F66;
    --snack-accent: #FF6B6B;
    --snack-dark: #2C3E50;
    --snack-light: #F8F9FA;
    --snack-success: #90EE90;
}

/* Breadcrumb */
.snack-breadcrumb {
    background: linear-gradient(135deg, var(--snack-primary) 0%, var(--snack-secondary) 100%);
    padding: 1rem 0;
}

.snack-breadcrumb .breadcrumb-item a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.snack-breadcrumb .breadcrumb-item a:hover {
    opacity: 0.8;
}

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

/* Hero Section */
.snack-hero {
    background: linear-gradient(135deg, #FFD93D 0%, #FF9F66 50%, #FF6B6B 100%);
    padding: 4rem 0;
    overflow: hidden;
}

.snack-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><circle cx="200" cy="100" r="80" fill="rgba(255,255,255,0.1)"/><circle cx="800" cy="400" r="100" fill="rgba(255,255,255,0.1)"/><circle cx="1000" cy="150" r="60" fill="rgba(255,255,255,0.1)"/></svg>') no-repeat;
    background-size: cover;
    pointer-events: none;
}


.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 400;
}

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

.hero-search-form .input-group-text {
    background: white;
    border: none;
    color: var(--snack-primary);
}

.hero-search-form .form-control {
    border: none;
    padding: 0.75rem 1rem;
    font-size: 1rem;
}

.hero-search-form .form-control:focus {
    box-shadow: none;
    border-color: transparent;
}

.btn-snack {
    background: var(--snack-dark);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-snack:hover {
    background: #1a252f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Featured Snack Carousel */
.featured-snack-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    height: 400px;
}

.featured-snack-card .featured-image {
    width: 100%;
    height: 100%;
    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: 2rem;
    color: white;
}

.featured-overlay h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* Snack Categories Grid */
.snack-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.snack-category-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.snack-category-card:hover {
    transform: translateY(-5px);
    border-color: var(--category-color);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.category-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: var(--category-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.snack-category-card:hover .category-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

.category-icon-wrapper i {
    font-size: 2.5rem;
    color: white;
}

.category-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--snack-dark);
    margin-bottom: 0.5rem;
}

.category-subtitle {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 0;
}

/* Mood Grid */
.mood-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.mood-card {
    background: white;
    border-radius: 15px;
    padding: 2rem 1.5rem;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s;
    border: 2px solid var(--mood-color);
    position: relative;
    overflow: hidden;
}

.mood-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--mood-color);
}

.mood-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.mood-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1rem;
    background: var(--mood-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mood-icon i {
    font-size: 2rem;
    color: white;
}

.mood-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--snack-dark);
    margin-bottom: 0.5rem;
}

.mood-description {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 0;
}

/* Build Your Snack Plate Section */
.bg-build-snack {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    position: relative;
    overflow: hidden;
}

.bg-build-snack::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.build-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.build-snack-container {
    position: relative;
    z-index: 1;
}

.build-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1.5rem;
    height: 100%;
}

.build-section-title {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}

.build-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.build-option-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid transparent;
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
}

.build-option-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(5px);
}

.build-option-btn.active {
    background: white;
    color: #f5576c;
    border-color: white;
}

.build-option-btn i {
    font-size: 1.5rem;
}

.snack-builder-display {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.snack-ingredients {
    font-size: 1.3rem;
    color: white;
    font-weight: 600;
    margin: 0;
}

/* Quick Snacks */
.quick-badge {
    display: inline-block;
    background: var(--snack-primary);
    color: var(--snack-dark);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
}

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

.quick-snack-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

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

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

.quick-time-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--snack-primary);
    color: var(--snack-dark);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
}

.quick-card-body {
    padding: 1.5rem;
}

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

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

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

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

.btn-outline-snack:hover {
    background: var(--snack-primary);
    color: var(--snack-dark);
}

/* Global Snack Grid */
.global-snack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.global-snack-card {
    background: white;
    border-radius: 15px;
    padding: 2rem 1.5rem;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
}

.global-snack-card:hover {
    transform: translateY(-5px);
    border-color: var(--snack-primary);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.global-flag {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.global-country {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--snack-dark);
    margin-bottom: 0.5rem;
}

.global-dish {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.global-explore {
    color: var(--snack-primary);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Chef Cards */
.chef-snack-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}

.chef-snack-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.chef-image-wrapper {
    height: 200px;
    overflow: hidden;
    background: var(--snack-light);
}

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

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

.chef-placeholder i {
    font-size: 4rem;
    color: white;
}

.chef-card-body {
    padding: 1.5rem;
}

.chef-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--snack-dark);
    margin-bottom: 1rem;
}

.chef-tip {
    font-size: 0.9rem;
    color: #6c757d;
    font-style: italic;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--snack-light);
    border-radius: 10px;
}

/* Party Section */
.bg-party {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.party-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.party-platter-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
}

.party-platter-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.platter-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.platter-icon i {
    font-size: 2.5rem;
    color: white;
}

.platter-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--snack-dark);
    margin-bottom: 1rem;
}

.platter-details {
    display: flex;
    justify-content: space-around;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: #6c757d;
}

.platter-serves, .platter-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Tips Section */
.tip-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    height: 100%;
}

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

.tip-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1rem;
    background: var(--snack-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tip-icon i {
    font-size: 2rem;
    color: white;
}

.tip-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--snack-dark);
    margin-bottom: 1rem;
}

.tip-content {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.6;
}

/* Trending Section */
.trending-badge {
    display: inline-block;
    background: #FF6B6B;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
}

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

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

.trending-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.trending-overlay h6 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

/* Recipe Cards Compact */
.snack-recipe-card-compact {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    height: 100%;
}

.snack-recipe-card-compact:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

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

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

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

.recipe-hover-actions-compact {
    position: absolute;
    top: 10px;
    right: 10px;
    opacity: 0;
    transition: opacity 0.3s;
}

.snack-recipe-card-compact:hover .recipe-hover-actions-compact {
    opacity: 1;
}

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

.hover-action-btn-compact:hover {
    background: var(--snack-primary);
    color: var(--snack-dark);
    transform: scale(1.1);
}

.recipe-time-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: var(--snack-primary);
    color: var(--snack-dark);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.recipe-card-body-compact {
    padding: 1rem;
}

.recipe-title-compact {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
}

.recipe-title-compact a {
    color: var(--snack-dark);
    text-decoration: none;
    transition: color 0.3s;
}

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

/* Empty State */
.empty-state-compact {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state-compact i {
    font-size: 5rem;
    color: var(--snack-primary);
    margin-bottom: 1rem;
}

.empty-state-compact h5 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--snack-dark);
    margin-bottom: 0.5rem;
}

.empty-state-compact p {
    color: #6c757d;
}

/* Pagination */
.snack-pagination .page-link {
    color: var(--snack-primary);
    border: 1px solid #dee2e6;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border-radius: 8px;
    transition: all 0.3s;
}

.snack-pagination .page-link:hover {
    background: var(--snack-primary);
    color: var(--snack-dark);
    border-color: var(--snack-primary);
}

.snack-pagination .page-item.active .page-link {
    background: var(--snack-primary);
    border-color: var(--snack-primary);
    color: var(--snack-dark);
}

.snack-pagination .page-item.disabled .page-link {
    color: #6c757d;
    background: #f8f9fa;
}

/* Floating Top Button */
.floating-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--snack-primary);
    color: var(--snack-dark);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
    z-index: 1000;
}

.floating-top-btn:hover {
    background: var(--snack-dark);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    color: white;
}

.floating-top-btn i {
    font-size: 1.5rem;
}

.floating-top-btn span {
    font-size: 0.7rem;
    font-weight: 600;
    margin-top: 0.25rem;
}

/* Section Titles */
.snack-title {
    color: var(--snack-dark);
}

.section-header {
    margin-bottom: 2rem;
}

/* Animations */
@keyframes pop {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    25% {
        transform: scale(1.1) rotate(-5deg);
    }
    75% {
        transform: scale(1.1) rotate(5deg);
    }
}

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

.snack-category-card,
.mood-card,
.global-snack-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .snack-categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .mood-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .global-snack-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 1rem;
    }
    
    .build-section {
        margin-bottom: 1rem;
    }
    
    .floating-top-btn {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    
    .floating-top-btn i {
        font-size: 1.2rem;
    }
    
    .floating-top-btn span {
        display: none;
    }
}
