/* =============================== BAKING PAGE STYLES ================================= */

/* Color Palette - Warm & Cozy */
:root {
    --baking-cream: #FFF8E7;
    --baking-brown: #8B6F47;
    --baking-gold: #D4AF37;
    --baking-pastel-pink: #FFE4E1;
    --baking-pastel-blue: #E6F3FF;
    --baking-warm-orange: #FF9F66;
    --baking-dark-brown: #5D4E37;
}

/* =============================== HERO SECTION ================================= */
.baking-hero {
    background: linear-gradient(135deg, var(--baking-brown) 0%, var(--baking-dark-brown) 100%);
    position: relative;
    overflow: hidden;
}

.baking-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><path d="M50 10 L60 30 L80 30 L65 45 L70 65 L50 50 L30 65 L35 45 L20 30 L40 30 Z" fill="rgba(255,255,255,0.05)"/></svg>');
    opacity: 0.3;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
}

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

.hero-icon i {
    font-size: 80px;
    color: var(--baking-gold);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

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

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

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

.hero-search-form .form-control {
    border: none;
    border-radius: 50px 0 0 50px;
    padding: 15px 25px;
    font-size: 1.1rem;
}

.hero-search-form .btn {
    border-radius: 0 50px 50px 0;
    padding: 15px 30px;
    font-weight: 600;
}

/* =============================== CATEGORY ICONS ================================= */
.baking-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.category-icon-card {
    background: white;
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

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

.category-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, var(--baking-cream), var(--baking-pastel-pink));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

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

.category-icon-wrapper i {
    font-size: 40px;
    color: var(--baking-brown);
}

.category-icon-card h5 {
    color: var(--baking-dark-brown);
    font-weight: 700;
    margin-bottom: 5px;
}

.category-icon-card p {
    color: #999;
    font-size: 0.9rem;
    margin: 0;
}

/* =============================== FEATURED BAKING RECIPE ================================= */
.featured-baking-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.featured-image-container {
    position: relative;
    height: 100%;
    min-height: 400px;
}

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

.featured-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--baking-gold);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.featured-content-wrapper {
    padding: 40px;
}

.category-badge {
    display: inline-block;
    background: var(--baking-pastel-pink);
    color: var(--baking-brown);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.featured-recipe-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--baking-dark-brown);
    margin-bottom: 15px;
}

.featured-recipe-description {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.recipe-meta-info {
    display: flex;
    gap: 25px;
    margin-bottom: 30px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--baking-brown);
    font-weight: 600;
}

.meta-item i {
    font-size: 1.3rem;
}

.featured-actions {
    display: flex;
    gap: 15px;
}

/* =============================== BAKING COLLECTIONS ================================= */
.collection-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    height: 100%;
}

.collection-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.collection-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--baking-gold), var(--baking-warm-orange));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.collection-icon i {
    font-size: 30px;
    color: white;
}

.collection-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--baking-dark-brown);
    margin: 0;
}

.collection-subtitle {
    color: #999;
    margin: 0;
}

.collection-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.collection-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 1;
}

.collection-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.collection-item:hover .collection-image {
    transform: scale(1.1);
}

.collection-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    padding: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.collection-item:hover .collection-overlay {
    opacity: 1;
}

.collection-time,
.collection-badge {
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
}

/* =============================== BAKING TIPS ================================= */
.tip-card {
    background: white;
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

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

.tip-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--baking-cream), var(--baking-pastel-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tip-icon i {
    font-size: 35px;
    color: var(--baking-brown);
}

.tip-card h5 {
    color: var(--baking-dark-brown);
    font-weight: 700;
    margin-bottom: 10px;
}

.tip-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* =============================== CHEF'S PICK ================================= */
.bg-gradient-warm {
    background: linear-gradient(135deg, var(--baking-cream) 0%, var(--baking-pastel-pink) 100%);
}

.chef-spotlight-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    position: relative;
}

.chef-badge {
    position: absolute;
    top: -15px;
    left: 40px;
    background: var(--baking-gold);
    color: white;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.chef-info-wrapper {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-top: 20px;
}

.chef-spotlight-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--baking-cream);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.chef-placeholder {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: var(--baking-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 5px solid var(--baking-pastel-pink);
}

.chef-placeholder i {
    font-size: 60px;
    color: var(--baking-brown);
}

.chef-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--baking-dark-brown);
    margin-bottom: 5px;
}

.chef-title {
    color: var(--baking-brown);
    font-weight: 600;
    margin-bottom: 15px;
}

.chef-bio {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.chef-tip-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.tip-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.tip-header i {
    font-size: 40px;
    color: var(--baking-gold);
}

.tip-header h4 {
    font-weight: 700;
    color: var(--baking-dark-brown);
    margin: 0;
}

.tip-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    font-style: italic;
    margin-bottom: 20px;
}

.tip-signature {
    color: var(--baking-brown);
    font-weight: 600;
    text-align: right;
}

/* =============================== RECIPE CARDS ================================= */
.recipe-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.recipe-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

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

.recipe-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.recipe-card:hover .recipe-card-image {
    transform: scale(1.1);
}

.recipe-actions {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.btn-action {
    width: 40px;
    height: 40px;
    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 10px rgba(0, 0, 0, 0.2);
}

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

.btn-save {
    color: #e74c3c;
}

.btn-share {
    color: #3498db;
}

.recipe-category-badge {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: var(--baking-gold);
    color: white;
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

.recipe-card-body {
    padding: 25px;
}

.recipe-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.recipe-card-title a {
    color: var(--baking-dark-brown);
    text-decoration: none;
    transition: color 0.3s ease;
}

.recipe-card-title a:hover {
    color: var(--baking-brown);
}

.recipe-card-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.recipe-card-meta {
    display: flex;
    gap: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.recipe-card-meta .meta-item {
    font-size: 0.9rem;
}

/* =============================== RESPONSIVE ================================= */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .baking-categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 15px;
    }
    
    .featured-recipe-title {
        font-size: 1.5rem;
    }
    
    .featured-content-wrapper {
        padding: 25px;
    }
    
    .collection-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .chef-info-wrapper {
        flex-direction: column;
        text-align: center;
    }
    
    .tip-signature {
        text-align: center;
    }
}

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

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

/* =============================== HOVER EFFECTS ================================= */
.hover-lift {
    transition: all 0.3s ease;
}

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