/* Recipes Page Styles for Magpyehub Ltd */
/* Traditional Ghanaian Recipe Collection with Cultural Elements */

:root {
    /* Ghana Flag Colors */
    --ghana-gold: #FFD700;
    --ghana-green: #228B22;
    --ghana-red: #DC143C;
    
    /* Secondary Colors */
    --cream: #FEF7E0;
    --charcoal: #374151;
    --brown: #8B4513;
    --light-brown: #D2B48C;
    --dark-green: #1B5E20;
    --soft-gold: #FFF8DC;
    
    /* Gradients */
    --heritage-gradient: linear-gradient(135deg, var(--ghana-gold) 0%, var(--ghana-red) 50%, var(--ghana-green) 100%);
    --cooking-gradient: linear-gradient(45deg, var(--cream) 0%, var(--soft-gold) 100%);
}

/* Recipes Header Styling */
.recipes-header {
    background: var(--heritage-gradient);
    padding: 120px 0 80px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.recipes-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    opacity: 0.3;
}

.recipes-header .container {
    position: relative;
    z-index: 1;
}

.recipes-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.recipes-hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    font-weight: 300;
}

.recipe-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    min-width: 120px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    display: block;
    color: var(--cream);
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 0.5rem;
}

/* Recipe Search and Filter Section */
.recipe-controls {
    background: var(--cream);
    padding: 3rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.search-filter-container {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: center;
    margin-bottom: 2rem;
}

.recipe-search-box {
    position: relative;
}

.recipe-search-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    font-size: 1.1rem;
    border: 2px solid var(--ghana-gold);
    border-radius: 50px;
    background: white;
    transition: all 0.3s ease;
}

.recipe-search-input:focus {
    outline: none;
    border-color: var(--ghana-green);
    box-shadow: 0 0 20px rgba(34, 139, 34, 0.2);
    transform: translateY(-2px);
}

.recipe-search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ghana-green);
    font-size: 1.2rem;
}

.recipe-view-toggle {
    display: flex;
    background: white;
    border-radius: 50px;
    border: 2px solid var(--ghana-gold);
    overflow: hidden;
}

.view-btn {
    padding: 0.8rem 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    color: var(--charcoal);
}

.view-btn.active {
    background: var(--ghana-gold);
    color: white;
}

.view-btn:hover:not(.active) {
    background: var(--soft-gold);
}

.recipe-filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 0.8rem 1.5rem;
    background: white;
    border: 2px solid var(--ghana-gold);
    border-radius: 25px;
    color: var(--charcoal);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--ghana-gold);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

/* Recipe Grid Layout */
.recipes-main {
    padding: 4rem 0;
    background: linear-gradient(to bottom, var(--cream) 0%, white 100%);
}

.recipes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

/* Recipe Card Styling */
.recipe-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    position: relative;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

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

.recipe-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: all 0.4s ease;
}

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

.recipe-difficulty {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    color: white;
    text-transform: uppercase;
}

.difficulty-easy {
    background: var(--ghana-green);
}

.difficulty-medium {
    background: var(--ghana-gold);
    color: var(--charcoal);
}

.difficulty-hard {
    background: var(--ghana-red);
}

.recipe-content {
    padding: 2rem;
}

.recipe-category {
    color: var(--ghana-green);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.recipe-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.recipe-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.recipe-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--charcoal);
}

.meta-icon {
    color: var(--ghana-gold);
}

.recipe-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.recipe-tag {
    padding: 0.3rem 0.8rem;
    background: var(--soft-gold);
    color: var(--charcoal);
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.recipe-actions {
    display: flex;
    gap: 1rem;
}

.view-recipe-btn {
    flex: 1;
    padding: 1rem;
    background: var(--ghana-green);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
}

.view-recipe-btn:hover {
    background: var(--dark-green);
    transform: translateY(-2px);
    color: white;
}

.save-recipe-btn {
    padding: 1rem;
    background: none;
    border: 2px solid var(--ghana-gold);
    border-radius: 10px;
    color: var(--ghana-gold);
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 50px;
}

.save-recipe-btn:hover {
    background: var(--ghana-gold);
    color: white;
}

/* Featured Recipe Section */
.featured-recipe {
    background: var(--cooking-gradient);
    padding: 4rem 0;
    margin: 4rem 0;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
}

.featured-recipe::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23FFD700' fill-opacity='0.05'%3E%3Cpath d='M20 20c0 11.046-8.954 20-20 20s-20-8.954-20-20 8.954-20 20-20 20 8.954 20 20zm0-20c11.046 0 20 8.954 20 20s-8.954 20-20 20-20-8.954-20-20 8.954-20 20-20z'/%3E%3C/g%3E%3C/svg%3E") repeat;
    animation: float 20s infinite linear;
}

@keyframes float {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(-40px) translateY(-40px); }
}

.featured-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.featured-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--charcoal);
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.featured-text p {
    font-size: 1.2rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.featured-recipe-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 2.5rem;
    background: var(--ghana-red);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(220, 20, 60, 0.3);
}

.featured-recipe-btn:hover {
    background: #B91C3C;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(220, 20, 60, 0.4);
    color: white;
}

.featured-image {
    text-align: center;
}

.featured-image img {
    width: 100%;
    max-width: 400px;
    height: 300px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    border: 3px solid white;
}

/* Cooking Tips Section */
.cooking-tips {
    background: white;
    padding: 4rem 0;
    border-top: 1px solid #eee;
}

.cooking-tips h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    text-align: center;
    color: var(--charcoal);
    margin-bottom: 3rem;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.tip-card {
    background: var(--cream);
    padding: 2rem;
    border-radius: 15px;
    border-left: 4px solid var(--ghana-gold);
    transition: all 0.3s ease;
}

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

.tip-icon {
    font-size: 2rem;
    color: var(--ghana-green);
    margin-bottom: 1rem;
}

.tip-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 1rem;
}

.tip-content {
    color: #666;
    line-height: 1.6;
}

/* Newsletter Section */
.recipe-newsletter {
    background: var(--charcoal);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.newsletter-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--ghana-gold);
}

.newsletter-content p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 1rem;
}

.newsletter-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
}

.newsletter-btn {
    padding: 1rem 2rem;
    background: var(--ghana-gold);
    color: var(--charcoal);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-btn:hover {
    background: #E6C200;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .recipes-header {
        padding: 100px 0 60px;
    }
    
    .recipes-hero-title {
        font-size: 2.5rem;
    }
    
    .recipe-stats {
        gap: 1.5rem;
    }
    
    .search-filter-container {
        grid-template-columns: 1fr;
    }
    
    .recipe-view-toggle {
        justify-self: center;
    }
    
    .recipes-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .featured-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .featured-text h2 {
        font-size: 2.2rem;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
        gap: 1rem;
    }
    
    .recipe-filters {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 1rem;
    }
    
    .filter-btn {
        white-space: nowrap;
        flex-shrink: 0;
    }
}

@media (max-width: 480px) {
    .recipe-content {
        padding: 1.5rem;
    }
    
    .recipe-actions {
        flex-direction: column;
    }
    
    .recipe-meta {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .cooking-tips {
        padding: 3rem 0;
    }
    
    .tip-card {
        padding: 1.5rem;
    }
}

/* Loading States */
.recipe-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--cream);
    border-top: 3px solid var(--ghana-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Empty State */
.recipe-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--charcoal);
}

.recipe-empty i {
    font-size: 4rem;
    color: var(--ghana-gold);
    margin-bottom: 1rem;
}

.recipe-empty h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.recipe-empty p {
    color: #666;
    font-size: 1.1rem;
}