/* =============================== DESSERT PAGE STYLES ================================= */

/* Color Palette - Sweet & Elegant */
:root {
    --dessert-primary: #FFB6C1;
    --dessert-secondary: #FFA07A;
    --dessert-accent: #DDA0DD;
    --dessert-dark: #2C3E50;
    --dessert-light: #F8F9FA;
    --dessert-chocolate: #8B4513;
}

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

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

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

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

/* Hero Section */
.dessert-hero {
    background: linear-gradient(135deg, #FFB6C1 0%, #FFA07A 50%, #DDA0DD 100%);
    padding: 4rem 0;
    overflow: hidden;
}

.dessert-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"><path d="M0,200 Q200,100 400,200 T800,200 L800,600 L0,600 Z" fill="rgba(255,255,255,0.1)"/></svg>') no-repeat bottom;
    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(--dessert-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-dessert {
    background: var(--dessert-dark);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s;
}

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

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

.featured-dessert-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;
}

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

.dessert-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);
}

.dessert-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;
}

.dessert-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.1rem;
    font-weight: 700;
    color: var(--dessert-dark);
    margin-bottom: 0.5rem;
}

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

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

.seasonal-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;
}

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

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

.seasonal-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;
}

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

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

/* Technique Cards */
.technique-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%;
}

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

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

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

.technique-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dessert-dark);
    margin-bottom: 0.75rem;
}

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

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

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

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

.ingredient-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;
}

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

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

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

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

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

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

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

.quick-dessert-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-dessert-card:hover .quick-image-wrapper img {
    transform: scale(1.1);
}

.quick-time-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--dessert-primary);
    color: white;
    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(--dessert-dark);
    text-decoration: none;
    transition: color 0.3s;
}

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

/* Collections Section */
.bg-collections {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.collection-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;
}

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

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

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

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

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

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

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

.chef-dessert-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(--dessert-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(--dessert-primary), var(--dessert-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(--dessert-dark);
    margin-bottom: 1rem;
}

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

/* Story Cards */
.story-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%;
}

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

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

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

.story-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dessert-dark);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.story-read-time {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

/* 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 */
.dessert-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%;
}

.dessert-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;
}

.dessert-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;
}

.dessert-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(--dessert-primary);
    color: white;
    transform: scale(1.1);
}

.recipe-time-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: var(--dessert-primary);
    color: white;
    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(--dessert-dark);
    text-decoration: none;
    transition: color 0.3s;
}

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

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

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

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

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

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

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

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

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

/* Floating Top Button */
.floating-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--dessert-primary);
    color: white;
    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(--dessert-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 */
.dessert-title {
    color: var(--dessert-dark);
}

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

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

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

.dessert-category-card,
.ingredient-card,
.technique-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .dessert-categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .ingredient-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 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;
    }
    
    .category-name {
        font-size: 1rem;
    }
    
    .category-subtitle {
        font-size: 0.85rem;
    }
}

/* Additional hover effects */
.technique-card:hover .technique-icon,
.story-card:hover .story-icon {
    transform: scale(1.1);
}

.collection-card:hover .collection-icon {
    transform: rotate(360deg);
}

/* Smooth transitions for all interactive elements */
.dessert-category-card,
.ingredient-card,
.technique-card,
.collection-card,
.story-card,
.seasonal-card,
.quick-dessert-card,
.chef-dessert-card,
.trending-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
