/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

/* Enhanced Header Styles */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    color: white;
    text-align: center;
    padding: 4rem 1rem 3rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

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.05'%3E%3Cpath d='M30 30c0-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/g%3E%3C/svg%3E") repeat;
    opacity: 0.1;
}

/* Hero Container */
.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Hero Badge */
.hero-badge {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.5rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.badge-star {
    font-size: 1.2rem;
}

.badge-rating {
    opacity: 0.8;
    font-size: 0.8rem;
}

/* Enhanced Typography */
header h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
    font-weight: 800;
    line-height: 1.1;
    position: relative;
    z-index: 2;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    margin-bottom: 2rem;
    font-weight: 600;
    opacity: 0.95;
    line-height: 1.3;
}

.hero-description {
    font-size: 1.2rem;
    opacity: 0.9;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 3rem auto;
    position: relative;
    z-index: 2;
}

/* Hero Stats */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 600px;
    margin: 0 auto 3rem;
    position: relative;
    z-index: 2;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, #fff, #f093fb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Enhanced CTA Buttons */
.hero-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 3rem auto;
    flex-wrap: wrap;
}

.cta-primary, .cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.cta-primary {
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    color: white;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

.cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(255, 107, 107, 0.5);
}

.cta-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.cta-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.cta-icon {
    font-size: 1.3rem;
}

/* Enhanced Benefits Section */
.hero-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 4rem auto 0;
    position: relative;
    z-index: 2;
}

.benefit-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.benefit-card:hover::before {
    left: 100%;
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.15);
}

.benefit-icon-large {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.benefit-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.benefit-card p {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.5;
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.benefit-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

/* Hero Container */
.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

/* CTA Buttons */
.hero-cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
    position: relative;
    z-index: 2;
}

.cta-btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    display: inline-block;
    text-align: center;
}

.cta-btn.primary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cta-btn.primary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.cta-btn.secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.cta-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Enhanced Benefits */
.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.benefit-content {
    flex: 1;
}

.benefit-content strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    font-weight: 600;
    color: #fff;
}

.benefit-content span {
    font-size: 0.9rem;
    opacity: 0.9;
    line-height: 1.4;
    display: block;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .hero-cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-btn {
        width: 100%;
        max-width: 280px;
    }
    
    .hero-benefits {
        grid-template-columns: 1fr;
    }
    
    .benefit-item {
        text-align: center;
        flex-direction: column;
        align-items: center;
    }
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* View Management */
.view {
    display: none;
}

.view.active {
    display: block;
}

/* Advanced Filter Section */
.filter-section {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.filter-section h2 {
    color: #2d3748;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

/* Search Container */
.search-container {
    position: relative;
    margin-bottom: 2rem;
}

#recipe-search {
    width: 100%;
    padding: 1rem 3rem 1rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8fafc;
}

#recipe-search:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

#clear-search {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: #e2e8f0;
    border: none;
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #718096;
}

#clear-search:hover {
    background: #cbd5e0;
    color: #2d3748;
}

/* Filter Categories */
.filter-categories {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.filter-group h3 {
    color: #4a5568;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-btn {
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 25px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
    color: #4a5568;
}

.filter-btn:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
    transform: translateY(-1px);
}

.filter-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Sort Section */
.sort-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.sort-section label {
    font-weight: 600;
    color: #4a5568;
}

#sort-select {
    padding: 0.5rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

#sort-select:focus {
    outline: none;
    border-color: #667eea;
}

/* Quick Actions */
.quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.action-btn.secondary {
    background: #edf2f7;
    color: #4a5568;
    border: 2px solid #e2e8f0;
}

.action-btn.secondary:hover {
    background: #e2e8f0;
    border-color: #cbd5e0;
}

/* Recipe Cards */
.recipe-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.recipe-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

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

.recipe-card h3 {
    color: #2d3748;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.recipe-card .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.tag {
    background: #e6fffa;
    color: #234e52;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.recipe-card .description {
    color: #718096;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.view-recipe-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
}

.view-recipe-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

/* Recipe Detail View */
.recipe-detail-container {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.recipe-header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

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

.icon-btn {
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
    transform: translateY(-2px);
}

.icon-btn.favorited {
    background: #fed7d7;
    border-color: #fc8181;
    color: #e53e3e;
}

.back-btn {
    background: #e2e8f0;
    border: none;
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    color: #4a5568;
}

.back-btn:hover {
    background: #cbd5e0;
    transform: translateY(-1px);
}

.recipe-header {
    margin-bottom: 2rem;
    text-align: center;
}

.recipe-header h2 {
    color: #2d3748;
    font-size: 2.2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.recipe-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f7fafc;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    color: #4a5568;
    font-weight: 500;
}

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

.recipe-tags .tag {
    background: linear-gradient(135deg, #e6fffa 0%, #c6f6d5 100%);
    color: #234e52;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid #b2f5ea;
}

.recipe-header p {
    color: #718096;
    font-size: 1.1rem;
    font-style: italic;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Nutrition & Servings Panel */
.nutrition-servings-panel {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    background: #f7fafc;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 1px solid #e2e8f0;
}

.servings-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.servings-section label {
    font-weight: 600;
    color: #4a5568;
    font-size: 1rem;
}

#servings-input {
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1.2rem;
    width: 100px;
    text-align: center;
    font-weight: 600;
    color: #2d3748;
}

#servings-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

#original-servings {
    color: #718096;
    font-size: 0.85rem;
    font-style: italic;
}

.nutrition-section h4 {
    color: #4a5568;
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
}

.nutrition-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.nutrition-item {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.nutrition-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nutrition-value {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.25rem;
}

.nutrition-label {
    font-size: 0.8rem;
    color: #718096;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.recipe-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.ingredients-section,
.instructions-section {
    background: #f7fafc;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.ingredients-section h3,
.instructions-section h3 {
    color: #2d3748;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ingredients-actions,
.instructions-actions {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.action-btn.small {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    border-radius: 8px;
    background: #e2e8f0;
    color: #4a5568;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.action-btn.small:hover {
    background: #cbd5e0;
    transform: translateY(-1px);
}

#ingredients-list {
    list-style: none;
    display: grid;
    gap: 0.75rem;
}

#ingredients-list li {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#ingredients-list li:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.ingredient-amount {
    font-weight: 700;
    color: #667eea;
    margin-right: 0.5rem;
}

#instructions-list {
    padding-left: 0;
    counter-reset: step-counter;
}

#instructions-list li {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    position: relative;
    counter-increment: step-counter;
    padding-left: 4rem;
    transition: all 0.3s ease;
}

#instructions-list li:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

#instructions-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: 1rem;
    top: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

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

.action-btn {
    background: #4299e1;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: #3182ce;
    transform: translateY(-1px);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    color: #718096;
    background: white;
    margin-top: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    header p {
        font-size: 1rem;
    }
    
    .recipe-cards {
        grid-template-columns: 1fr;
    }
    
    .recipe-sections {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .filter-tags {
        justify-content: center;
    }
    
    .servings-section {
        flex-direction: column;
        text-align: center;
    }
    
    .recipe-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .recipe-detail-container {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    main {
        padding: 1rem 0.5rem;
    }
    
    .filter-section {
        padding: 1rem;
    }
    
    .recipe-card {
        padding: 1rem;
    }
}

/* Print Styles */
@media print {
    header,
    .filter-section,
    .back-btn,
    .recipe-actions,
    footer {
        display: none !important;
    }
    
    .recipe-detail-container {
        box-shadow: none;
        padding: 0;
    }
    
    .recipe-sections {
        grid-template-columns: 1fr;
    }
}

/* Additional Sections */
.additional-info {
    margin: 2rem 0;
    display: grid;
    gap: 1.5rem;
}

.tips-section,
.substitutions-section {
    background: #f0fff4;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #c6f6d5;
}

.tips-section h4,
.substitutions-section h4 {
    color: #22543d;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tips-section ul,
.substitutions-section ul {
    list-style: none;
    padding: 0;
}

.tips-section li,
.substitutions-section li {
    background: white;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    border-left: 4px solid #48bb78;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    color: #2d3748;
    line-height: 1.5;
}

/* Cooking Timer */
.cooking-timer {
    background: #fff5f5;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #fed7d7;
    text-align: center;
    margin: 2rem 0;
}

.cooking-timer h4 {
    color: #c53030;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.timer-display {
    font-size: 3rem;
    font-weight: 700;
    color: #c53030;
    margin-bottom: 1.5rem;
    font-family: 'Courier New', monospace;
}

.timer-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.timer-controls button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

#timer-start {
    background: #48bb78;
    color: white;
}

#timer-pause {
    background: #ed8936;
    color: white;
}

#timer-reset {
    background: #e53e3e;
    color: white;
}

#timer-input {
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    width: 120px;
    text-align: center;
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: white;
    border-radius: 16px;
    padding: 0;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e2e8f0;
    background: #f7fafc;
}

.modal-header h3 {
    color: #2d3748;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
}

.modal-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.modal-close {
    background: #e2e8f0;
    border: none;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    cursor: pointer;
    font-size: 1.2rem;
    color: #4a5568;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #cbd5e0;
    transform: scale(1.1);
}

.favorites-list,
.shopping-list {
    padding: 2rem;
    max-height: 400px;
    overflow-y: auto;
}

.favorite-item,
.shopping-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f7fafc;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    border: 1px solid #e2e8f0;
}

.shopping-item {
    cursor: pointer;
    transition: all 0.3s ease;
}

.shopping-item:hover {
    background: #edf2f7;
}

.shopping-item.completed {
    opacity: 0.6;
    text-decoration: line-through;
}

/* Enhanced Recipe Cards */
.recipe-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.recipe-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.recipe-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.recipe-card h3 {
    color: #2d3748;
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.3;
}

.recipe-card .card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
    color: #718096;
}

.recipe-card .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

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

.view-recipe-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 0.875rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
    font-size: 0.95rem;
}

.view-recipe-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    /* Header Responsive */
    header {
        padding: 2rem 1rem;
        min-height: auto;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .hero-cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .cta-primary, .cta-secondary {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .hero-benefits {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .benefit-card {
        padding: 1.5rem;
    }
    
    .benefit-icon-large {
        font-size: 2.5rem;
    }
    
    /* Other responsive styles */
    .filter-categories {
        grid-template-columns: 1fr;
    }
    
    .nutrition-servings-panel {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .nutrition-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .timer-controls {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .quick-actions {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    /* Mobile Header Adjustments */
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .stat-item {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 1rem;
        text-align: left;
    }
    
    .stat-number {
        font-size: 1.8rem;
        margin-bottom: 0;
    }
    
    .hero-badge {
        flex-direction: column;
        gap: 0.25rem;
        padding: 1rem;
        text-align: center;
    }
    
    .badge-rating {
        font-size: 0.75rem;
    }
    
    /* Other mobile styles */
    .nutrition-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ingredients-actions,
    .instructions-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .filter-tags {
        justify-content: center;
    }
}

/* Enhanced Recipe Scaling Visual System */
.servings-section.enhanced {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9));
    padding: 2rem;
    border: 2px solid rgba(102, 126, 234, 0.2);
}

.servings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.servings-header h4 {
    margin: 0;
    color: #2d3748;
    font-size: 1.2rem;
    font-weight: 700;
}

.servings-note {
    font-size: 0.9rem;
    color: #718096;
    background: rgba(102, 126, 234, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
}

.servings-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.serving-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-size: 1.4rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.serving-btn:hover {
    transform: scale(1.15) translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.servings-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.servings-display input {
    width: 80px;
    height: 60px;
    text-align: center;
    font-size: 1.6rem;
    font-weight: 800;
    border: 3px solid #e2e8f0;
    border-radius: 12px;
    background: white;
    color: #2d3748;
    transition: all 0.3s ease;
}

.servings-display input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
}

.servings-display label {
    font-size: 0.85rem;
    color: #4a5568;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.scaling-info {
    text-align: center;
    color: #4a5568;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.scaling-visual {
    margin-top: 1rem;
}

.scaling-bar {
    width: 100%;
    height: 12px;
    background: linear-gradient(90deg, #e2e8f0, #f1f5f9);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.scaling-fill {
    height: 100%;
    background: linear-gradient(90deg, #66bb6a, #81c784);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
    position: relative;
}

.scaling-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    border-radius: 8px;
}

/* Visual Ingredients Mode */
.ingredients-container {
    transition: all 0.4s ease;
}

.ingredients-container.visual-mode {
    background: linear-gradient(135deg, #f8fafc, #edf2f7);
    border-radius: 16px;
    padding: 1.5rem;
    border: 2px solid rgba(102, 126, 234, 0.1);
}

.ingredient-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.visual-mode .ingredient-item {
    flex-direction: column;
    align-items: stretch;
    padding: 1.75rem;
    margin-bottom: 1.25rem;
    border: 2px solid rgba(102, 126, 234, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.visual-mode .ingredient-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: rgba(102, 126, 234, 0.3);
}

.ingredient-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}

.ingredient-text {
    font-weight: 500;
    color: #2d3748;
    font-size: 1.05rem;
}

.ingredient-amount {
    font-weight: 800;
    color: #667eea;
    font-size: 1.1rem;
}

.ingredient-visual {
    display: none;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.visual-mode .ingredient-visual {
    display: flex;
}

.ingredient-bar {
    width: 100%;
    height: 16px;
    background: linear-gradient(90deg, #e2e8f0, #f1f5f9);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.ingredient-fill {
    height: 100%;
    background: linear-gradient(90deg, #4fd1c7, #38b2ac);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
    position: relative;
}

.ingredient-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    border-radius: 8px;
}

.amount-indicator {
    font-size: 0.9rem;
    color: #4a5568;
    font-weight: 700;
    align-self: flex-end;
    background: rgba(102, 126, 234, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
}

#toggle-visual-mode {
    transition: all 0.3s ease;
}

#toggle-visual-mode.active {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Visual Mode Animation */
@keyframes slideInVisual {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.visual-mode .ingredient-visual {
    animation: slideInVisual 0.4s ease;
}

/* Content Sections */
.content-section {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.content-section h2 {
    color: #2d3748;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.content-section > p {
    color: #718096;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Intro text styling */
.intro-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #4a5568;
    margin: 1.5rem 0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* Unit Converter Styling */
.converter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    max-width: 100%;
}

.converter-card {
    background: #f7fafc;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    max-width: 100%;
    overflow: hidden;
}

.converter-card h3 {
    color: #2d3748;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.converter-inputs {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    width: 100%;
}

.input-group {
    display: flex;
    gap: 0.5rem;
    flex: 1;
    min-width: 140px;
    max-width: 100%;
}

.input-group input {
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    width: 80px;
    min-width: 60px;
}

.input-group select {
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    font-size: 0.9rem;
    cursor: pointer;
    flex: 1;
    min-width: 0;
}

.convert-arrow {
    font-size: 1.5rem;
    color: #667eea;
    font-weight: bold;
    align-self: center;
}

.convert-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
}

.convert-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.converter-tips {
    background: #f0fff4;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #c6f6d5;
}

.converter-tips h4 {
    color: #22543d;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.converter-tips ul {
    list-style: none;
    padding: 0;
}

.converter-tips li {
    background: white;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    border-radius: 6px;
    border-left: 4px solid #48bb78;
    color: #2d3748;
}

/* FAQ Styling */
.faq-container {
    display: grid;
    gap: 1rem;
}

.faq-item {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    background: #f7fafc;
    border: none;
    padding: 1.5rem;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    transition: all 0.3s ease;
    text-align: left;
}

.faq-question:hover {
    background: #edf2f7;
}

.faq-arrow {
    transition: transform 0.3s ease;
    color: #667eea;
    font-size: 1.2rem;
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 1.5rem;
    background: white;
    border-top: 1px solid #e2e8f0;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-question.active + .faq-answer {
    padding: 1.5rem;
    max-height: 1000px;
}

.faq-answer p {
    margin-bottom: 1rem;
    color: #4a5568;
    line-height: 1.6;
}

.faq-answer ul {
    list-style: none;
    padding: 0;
}

.faq-answer li {
    background: #f7fafc;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    border-radius: 6px;
    border-left: 4px solid #667eea;
    color: #2d3748;
    line-height: 1.5;
}

/* How to Make Alfredo Section */
.how-to-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.method-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.method-card.featured {
    border: 2px solid #667eea;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.15);
    transform: scale(1.02);
}

.method-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.method-card h3 {
    color: #2d3748;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 700;
}

/* Removed SEO-specific keyword metadata styles */

.step-instructions ol {
    list-style: none;
    counter-reset: step-counter;
    margin-bottom: 1.5rem;
}

.step-instructions li {
    counter-increment: step-counter;
    background: #f7fafc;
    padding: 1rem;
    margin-bottom: 0.75rem;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    position: relative;
}

.step-instructions li::before {
    content: counter(step-counter);
    background: #667eea;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.8rem;
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
}

.pro-secret {
    background: linear-gradient(45deg, #ffd89b, #19547b);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
}

/* Alfredo Variations Section */
.variations-showcase {
    margin-bottom: 3rem;
}

.variation-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    text-align: center;
}

.variation-hero h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.recipe-popularity {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.popular-badge {
    background: linear-gradient(45deg, #ffd89b, #19547b);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.copycat-recipe {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.ingredients-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 1.5rem 0;
}

.ing-col h4 {
    margin-bottom: 1rem;
    color: #ffd89b;
    font-weight: 700;
    font-size: 1.1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.ing-col ul {
    list-style: none;
    padding: 0;
}

.ing-col li {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    border-left: 4px solid #ffd89b;
    font-size: 0.95rem;
    line-height: 1.4;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.method-highlight {
    background: rgba(255, 216, 155, 0.25);
    padding: 1.25rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 216, 155, 0.4);
    margin-top: 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.5;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

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

.var-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.var-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.var-card h4 {
    color: #2d3748;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
}

/* Removed KD info styles */

.key-points {
    list-style: none;
    padding: 0;
}

.key-points li {
    background: #f7fafc;
    padding: 0.5rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 6px;
    border-left: 3px solid #667eea;
    font-size: 0.9rem;
}

/* Related Recipes Grid */
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.related-card {
    background: #f7fafc;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.related-card h3 {
    color: #2d3748;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.related-card p {
    color: #718096;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.recipe-details {
    margin-bottom: 1.5rem;
}

.recipe-details p {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.technique-tips {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.technique-tips li {
    background: #f8f9fa;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.5rem;
    border-radius: 6px;
    border-left: 3px solid #667eea;
    font-size: 0.9rem;
    line-height: 1.4;
}

.difficulty-badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.difficulty-badge.easy {
    background: #c6f6d5;
    color: #22543d;
}

.difficulty-badge.medium {
    background: #fed7d7;
    color: #c53030;
}

.difficulty-badge.advanced {
    background: #e2e8f0;
    color: #2d3748;
}

.cooking-tips-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e2e8f0;
}

.cooking-tips-section h3 {
    color: #2d3748;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    text-align: center;
}

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

.tip-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    text-align: center;
}

.tip-card h4 {
    color: #2d3748;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.tip-card p {
    color: #4a5568;
    line-height: 1.6;
    font-size: 0.95rem;
}

.related-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.related-link:hover {
    color: #5a67d8;
    transform: translateX(4px);
}

/* Footer Styling */
footer {
    background: #2d3748;
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #cbd5e0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 16px;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-content h2 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin: 0;
    padding: 2rem;
    border-radius: 16px 16px 0 0;
    font-size: 1.8rem;
    font-weight: 700;
}

.modal-body {
    padding: 2rem;
    line-height: 1.6;
    color: #2d3748;
}

.modal-body h3 {
    color: #2d3748;
    margin: 2rem 0 1rem 0;
    font-size: 1.3rem;
    font-weight: 600;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.5rem;
}

.modal-body ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.modal-body li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.contact-info {
    margin: 1.5rem 0;
}

.contact-method {
    background: #f7fafc;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
}

.contact-method strong {
    color: #2d3748;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.5rem;
}

.contact-method p {
    margin: 0.5rem 0;
    color: #4a5568;
}

.response-time {
    background: #edf2f7;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    margin-top: 1.5rem;
}

.close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Enhanced responsive design */
@media (max-width: 768px) {
    .content-section {
        padding: 1.5rem;
        margin: 1rem 0;
    }
    
    .converter-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .converter-inputs {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .input-group {
        flex-direction: column;
        width: 100%;
        min-width: unset;
    }
    
    .input-group input,
    .input-group select {
        width: 100%;
        box-sizing: border-box;
    }
    
    .convert-arrow {
        transform: rotate(90deg);
        align-self: center;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .intro-text {
        font-size: 1rem;
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .content-section {
        padding: 1rem;
        margin: 0.5rem 0;
    }
    
    .content-section h2 {
        font-size: 1.3rem;
    }
    
    .converter-card {
        padding: 1rem;
    }
    
    .converter-inputs {
        gap: 0.75rem;
    }
    
    .input-group input,
    .input-group select {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
    
    .faq-question {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .faq-answer {
        padding: 1rem;
    }
    
    .related-card {
        padding: 1rem;
    }
    
    .recipe-details p {
        font-size: 0.9rem;
    }
    
    .technique-tips li {
        font-size: 0.85rem;
        padding: 0.4rem 0.6rem;
    }
    
    .difficulty-badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .tip-card {
        padding: 1rem;
    }
    
    .tip-card h4 {
        font-size: 1rem;
    }
    
    .tip-card p {
        font-size: 0.9rem;
    }
}

/* Hidden class for filtering */
.hidden {
    display: none !important;
}

/* Add Recipe Form Styles */
.add-recipe-form {
    padding: 1rem;
    max-height: 70vh;
    overflow-y: auto;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2d3748;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    box-sizing: border-box;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}



/* Video Tutorial Section Styles */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.video-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.video-card.featured {
    grid-column: 1 / -1;
}

.video-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-info {
    padding: 1.5rem;
}

.video-info h3 {
    margin: 0 0 0.75rem 0;
    color: #2d3748;
    font-size: 1.25rem;
    font-weight: 700;
}

.video-info p {
    margin: 0 0 1rem 0;
    color: #4a5568;
    line-height: 1.6;
}

.video-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.video-stats .stat {
    background: #f7fafc;
    color: #2d3748;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid #e2e8f0;
}

.video-tips {
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    color: white;
}

.video-tips h3 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.75rem;
    font-weight: 700;
}

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

.tip-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.tip-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.tip-card h4 {
    margin: 0 0 0.75rem 0;
    font-size: 1.125rem;
    font-weight: 700;
}

.tip-card p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Mobile responsiveness for videos */
@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .video-card.featured {
        grid-column: 1;
    }
    
    .video-stats {
        justify-content: center;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .video-tips {
        padding: 1.5rem;
    }
}

