/* Fork Fanatics - Modern Design Stylesheet */

/* CSS Custom Properties for theming */
:root {
    /* Light theme colors */
    --bg-primary: #fafafa;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f8f9fa;
    --bg-card: #ffffff;
    --bg-overlay: rgba(0, 0, 0, 0.5);
    
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --text-muted: #6b7280;
    --text-inverse: #ffffff;
    
    --border-primary: #e5e7eb;
    --border-secondary: #d1d5db;
    
    --accent-primary: #79974B;
    --accent-secondary: #6b8a3f;
    --accent-light: rgba(121, 151, 75, 0.1);
    --accent-medium: rgba(121, 151, 75, 0.15);
    
    --shadow-light: rgba(0, 0, 0, 0.05);
    --shadow-medium: rgba(0, 0, 0, 0.1);
    --shadow-heavy: rgba(0, 0, 0, 0.15);
    
    --success-bg: #f0fdf4;
    --success-text: #16a34a;
    --success-border: #86efac;
    
    --error-bg: #fef2f2;
    --error-text: #dc2626;
    --error-border: #fca5a5;
    
    --warning-bg: rgba(121, 151, 75, 0.1);
    --warning-text: #6b8a3f;
    --warning-border: rgba(121, 151, 75, 0.2);
}

/* Dark theme colors */
[data-theme="dark"] {
    --bg-primary: #0f0f0f;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #2a2a2a;
    --bg-card: #1f1f1f;
    --bg-overlay: rgba(0, 0, 0, 0.7);
    
    --text-primary: #ffffff;
    --text-secondary: #e5e7eb;
    --text-muted: #9ca3af;
    --text-inverse: #0f0f0f;
    
    --border-primary: #374151;
    --border-secondary: #4b5563;
    
    --accent-primary: #9bbf5f;
    --accent-secondary: #8bc34a;
    --accent-light: rgba(155, 191, 95, 0.15);
    --accent-medium: rgba(155, 191, 95, 0.25);
    
    --shadow-light: rgba(0, 0, 0, 0.3);
    --shadow-medium: rgba(0, 0, 0, 0.4);
    --shadow-heavy: rgba(0, 0, 0, 0.6);
    
    --success-bg: #064e3b;
    --success-text: #34d399;
    --success-border: #059669;
    
    --error-bg: #450a0a;
    --error-text: #f87171;
    --error-border: #dc2626;
    
    --warning-bg: rgba(155, 191, 95, 0.15);
    --warning-text: #9bbf5f;
    --warning-border: rgba(155, 191, 95, 0.3);
}

/* Theme transition */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    font-weight: 400;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: -0.025em;
}

h1 { font-size: 3rem; line-height: 1.2; }
h2 { font-size: 2.25rem; line-height: 1.3; }
h3 { font-size: 1.75rem; line-height: 1.4; }
h4 { font-size: 1.5rem; line-height: 1.4; }

p {
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
}

/* Header and Navigation */
.header {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-primary);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 1px 3px var(--shadow-light);
}

[data-theme="dark"] .header {
    background-color: rgba(26, 26, 26, 0.95);
}

.nav {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    gap: 1rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.nav-brand img {
    height: 85px;
    width: auto;
}

.nav-brand h1 {
    margin: 0;
    font-size: 1.875rem;
    color: var(--text-primary);
    font-weight: 700;
}

.nav-menu {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 500;
    position: relative;
}

.nav-link:hover {
    color: var(--accent-primary);
    background-color: var(--accent-light);
}

.nav-link.active {
    color: var(--accent-primary);
    background-color: var(--accent-medium);
    font-weight: 600;
}

/* Theme toggle button */
.theme-toggle {
    background: none;
    border: 2px solid var(--border-primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-left: 1rem;
    color: var(--text-primary);
}

.theme-toggle:hover {
    border-color: var(--accent-primary);
    background-color: var(--accent-light);
    transform: scale(1.05);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.theme-toggle:hover svg {
    transform: rotate(15deg);
}

/* Mobile menu toggle button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background: var(--accent-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile menu overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-overlay);
    z-index: 99;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
}

/* Mobile menu panel */
.mobile-menu-panel {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: var(--bg-secondary);
    z-index: 100;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px var(--shadow-medium);
    overflow-y: auto;
}

.mobile-menu-panel.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-primary);
    background: var(--bg-tertiary);
}

.mobile-menu-header h3 {
    margin: 0;
    color: var(--accent-primary);
    font-size: 1.25rem;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.mobile-menu-close:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.mobile-menu-content {
    padding: 1rem 0;
}

.mobile-menu-content .nav-link {
    display: block;
    padding: 1rem 1.5rem;
    border-radius: 0;
    border-bottom: 1px solid var(--border-primary);
    margin: 0;
    font-size: 1.1rem;
}

.mobile-menu-content .nav-link:hover {
    background: var(--accent-light);
    color: var(--accent-primary);
}

.mobile-menu-content .nav-link.active {
    background: var(--accent-medium);
    color: var(--accent-primary);
    font-weight: 600;
    border-left: 4px solid var(--accent-primary);
}

/* Main content */
.main {
    min-height: calc(100vh - 140px);
}

/* Hero section */
.hero {
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
    color: var(--text-primary);
    text-align: center;
    padding: 6rem 0;
    border-bottom: 1px solid var(--border-primary);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--accent-light) 0%, rgba(121, 151, 75, 0.02) 100%);
    pointer-events: none;
}

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

.hero-content h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-weight: 700;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-muted);
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    border: none;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px var(--shadow-light);
}

.btn-primary {
    background-color: var(--accent-primary);
    color: var(--text-inverse);
    box-shadow: 0 4px 12px rgba(121, 151, 75, 0.3);
}

.btn-primary:hover {
    background-color: var(--accent-secondary);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(121, 151, 75, 0.4);
}

.btn-secondary {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-primary);
}

.btn-secondary:hover {
    background-color: var(--border-primary);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-medium);
}

.btn-outline {
    background-color: transparent;
    color: var(--accent-primary);
    border: 2px solid var(--accent-primary);
}

.btn-outline:hover {
    background-color: var(--accent-primary);
    color: var(--text-inverse);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(121, 151, 75, 0.3);
}

/* Forms */
.submit-section {
    padding: 5rem 0;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-primary);
}

.recipe-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--bg-secondary);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px var(--shadow-light), 0 4px 12px var(--shadow-medium);
    border: 1px solid var(--border-primary);
    position: relative;
}

.recipe-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 20px 20px 0 0;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.form-input,
.form-select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-primary);
    border-radius: 10px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(121, 151, 75, 0.1);
    background-color: var(--bg-secondary);
    transform: translateY(-1px);
}

/* Loading and results */
.loading {
    text-align: center;
    padding: 2rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--bg-tertiary);
    border-top: 4px solid var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

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

.hidden {
    display: none;
}

/* Recipe cards */
.featured-section {
    padding: 5rem 0;
    background-color: var(--bg-primary);
}

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

.recipe-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 6px var(--shadow-light), 0 2px 4px var(--shadow-medium);
    transition: all 0.4s ease;
    border: 1px solid var(--border-primary);
    position: relative;
}

.recipe-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.recipe-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px var(--shadow-heavy), 0 10px 20px var(--shadow-medium);
    border-color: var(--border-secondary);
}

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

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

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

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

.recipe-content {
    padding: 2rem;
}

.recipe-content h4 {
    margin-bottom: 1.25rem;
    color: var(--text-primary);
    font-size: 1.375rem;
    line-height: 1.4;
}

.recipe-meta {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.cuisine,
.difficulty {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.025em;
}

.cuisine {
    background-color: var(--accent-light);
    color: var(--accent-primary);
    border: 1px solid var(--accent-medium);
}

.difficulty {
    background-color: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}

[data-theme="dark"] .difficulty {
    background-color: #451a03;
    color: #fbbf24;
    border: 1px solid #f59e0b;
}

.recipe-time {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.recipe-servings {
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
}

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

/* Footer */
.footer {
    background-color: var(--bg-secondary);
    color: var(--text-muted);
    text-align: center;
    padding: 3rem 0;
    margin-top: auto;
    border-top: 1px solid var(--border-primary);
}

.footer p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Authentication forms */
.auth-form-container {
    max-width: 500px;
    margin: 2rem auto;
    background-color: var(--bg-secondary);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px var(--shadow-medium);
    border: 1px solid var(--border-primary);
}

.auth-form {
    margin-top: 1.5rem;
}

.btn-block {
    width: 100%;
    margin-top: 1rem;
}

.auth-links {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-primary);
}

.auth-links a {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
}

.auth-links a:hover {
    text-decoration: underline;
    color: var(--accent-secondary);
}

/* Social Login Section */
.social-login-section {
    margin-bottom: 1.5rem;
}

.social-login-divider {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    position: relative;
}

.social-login-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-secondary);
    z-index: 1;
}

.social-login-divider span {
    background: var(--bg-secondary);
    padding: 0 1rem;
    position: relative;
    z-index: 2;
}

.social-login-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-secondary);
    border-radius: 8px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    width: 100%;
}

.btn-social:hover {
    background: var(--bg-tertiary);
    border-color: var(--border-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--shadow-light);
}

.btn-social:active {
    transform: translateY(0);
}

.social-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Social Button Variants */
.btn-google {
    border-color: #dadce0;
}

.btn-google:hover {
    border-color: #c1c1c1;
    background: #f8f9fa;
}

.btn-facebook {
    border-color: #e7f3ff;
    background: #f0f8ff;
}

.btn-facebook:hover {
    border-color: #b3d9ff;
    background: #e6f3ff;
}

.btn-github {
    border-color: #e1e4e8;
    background: #f6f8fa;
}

.btn-github:hover {
    border-color: #c1c1c1;
    background: #f1f3f4;
}

/* Auth Divider */
.auth-divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-secondary);
}

.auth-divider span {
    background: var(--bg-secondary);
    padding: 0 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    position: relative;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    border-left: 4px solid;
}

.alert-error {
    background-color: var(--error-bg);
    color: var(--error-text);
    border-color: var(--error-border);
}

.alert-success {
    background-color: var(--success-bg);
    color: var(--success-text);
    border-color: var(--success-border);
}

/* Form help text */
.form-group small {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

/* Recipe preview and results */
.recipe-preview {
    background-color: var(--bg-tertiary);
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 1rem;
    border: 1px solid var(--border-primary);
}

.recipe-details h5 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.recipe-cost {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

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

.result.success {
    background-color: var(--success-bg);
    color: var(--success-text);
    border: 1px solid var(--success-border);
    padding: 1rem;
    border-radius: 12px;
    margin-top: 1rem;
    border-left: 4px solid var(--success-text);
}

.result.error {
    background-color: var(--error-bg);
    color: var(--error-text);
    border: 1px solid var(--error-border);
    padding: 1rem;
    border-radius: 12px;
    margin-top: 1rem;
    border-left: 4px solid var(--error-text);
}

/* Responsive design */
@media (max-width: 768px) {
    .nav {
        flex-direction: row;
        gap: 1rem;
        padding: 0 20px;
    }
    
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-brand h1 {
        font-size: 1.5rem;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .recipes-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 15px;
    }
    
    /* Hide ad on mobile for better UX */
    .header-ad {
        display: none;
    }
}

/* Header Ad Styles */
.header-ad {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 2rem;
    max-height: 80px;;
}

.ad-placeholder {

    padding: 1rem;
    text-align: center;
    width: 100%;
    max-width: 728px;
    max-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}


.ad-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-height: 80px;
    width: 100%;
}

.ad-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    width: 100%;

}

.ad-slot img {
    width: 100%;
    max-height: 80px;
    object-fit: cover;
    display: block;
}

@media (max-width: 1024px) {
    .header-ad {
        margin: 0 1rem;
    }
    
    .ad-placeholder {
        max-width: 100%;
        min-height: 60px;
    }
}

@media (max-width: 480px) {
    .nav {
        padding: 0 15px;
    }
    
    .nav-brand h1 {
        font-size: 1.25rem;
    }
    
    .mobile-menu-panel {
        width: 100%;
        right: -100%;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .hero-content h2 {
        font-size: 1.75rem;
    }
    
    .recipe-form {
        padding: 1.5rem;
    }
}
.header{
    margin-bottom: 2rem;
}
/* Recipe View Styles */
.recipe-header {
    display: grid;
    grid-template-columns: 40% 60%;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 2rem;
    background: var(--bg-tertiary);
    border-radius: 16px;
    align-items: start;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.recipe-title {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.recipe-title h1 {
    margin: 0 0 1rem 0;
    color: var(--accent-primary);
    font-size: 2.5rem;
}

.recipe-actions {
    margin-top: 1rem;
}

.recipe-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--accent-primary);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.recipe-actions .btn:hover {
    background: var(--accent-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.recipe-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.cuisine {
    background: #79974B;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.difficulty {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: white;
}

.difficulty-easy { background: #27ae60; }
.difficulty-medium { background: #f39c12; }
.difficulty-hard { background: #e74c3c; }

.recipe-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.recipe-image img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.recipe-content {
    margin-bottom: 2rem;
}

.recipe-info {
    background: var(--bg-tertiary);
    padding: 1.5rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    border: 1px solid var(--border-primary);
}

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

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-primary);
}

.info-item .label {
    font-weight: 600;
    color: var(--text-muted);
}

.info-item .value {
    font-weight: 500;
    color: var(--text-primary);
}

.recipe-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-primary);
}

.recipe-author .label {
    font-weight: 600;
    color: var(--text-muted);
}

/* Recipe Rating Styles */
.recipe-rating {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-primary);
}

.rating-stars {
    display: flex;
    gap: 0.25rem;
}

.star {
    font-size: 1.5rem;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s ease;
    user-select: none;
}

.star:hover,
.star.rated {
    color: #f39c12;
}

.star:hover {
    transform: scale(1.1);
}

.rating-text {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Shopping List Styles */
.shopping-list-toggle {
    font-size: 0.9rem;
    color: #79974B;
    cursor: pointer;
    margin-left: 1rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.shopping-list-toggle:hover {
    background-color: rgba(121, 151, 75, 0.1);
}

.ingredient-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    background: var(--bg-tertiary);
    border-radius: 12px;
    border-left: 4px solid var(--accent-primary);
    position: relative;
    break-inside: avoid;
    page-break-inside: avoid;
    transition: all 0.2s ease;
}

.ingredient-checkbox {
    width: 18px;
    height: 18px;
    accent-color: #79974B;
    cursor: pointer;
}

.ingredient-item label {
    cursor: pointer;
    flex: 1;
    margin: 0;
}

.ingredient-item:has(.ingredient-checkbox:checked) {
    background: var(--accent-light);
    border-left-color: var(--accent-secondary);
}

.ingredient-item:has(.ingredient-checkbox:checked) label {
    color: var(--text-muted);
}

.shopping-list-summary {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(121, 151, 75, 0.1);
    border-radius: 12px;
    text-align: center;
    color: #79974B;
    font-weight: 500;
    border: 1px solid rgba(121, 151, 75, 0.2);
}

.checked-count {
    color: #6b8a3f;
    font-weight: 600;
}

.total-count {
    color: var(--text-primary);
    font-weight: 600;
}

.author-name {
    font-weight: 500;
    color: #79974B;
}

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

.recipe-section h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #79974B;
}

.ingredients-list {
    list-style: none;
    padding: 0;
    margin: 0;
    column-count: 1;
    column-gap: 2rem;
}

/* When there are more than 8 ingredients, use 2 columns */
.ingredients-list:has(li:nth-child(9)) {
    column-count: 2;
}

.ingredients-list li {
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    background: var(--bg-tertiary);
    border-radius: 12px;
    border-left: 4px solid var(--accent-primary);
    position: relative;
    break-inside: avoid;
    page-break-inside: avoid;
    transition: all 0.2s ease;
}

.ingredients-list li:hover {
    background: var(--accent-light);
    transform: translateX(4px);
}

.ingredients-list li:before {
    content: "•";
    color: var(--accent-primary);
    font-weight: bold;
    position: absolute;
    left: 0.5rem;
}

.instructions-list {
    counter-reset: step-counter;
    list-style: none;
    padding: 0;
}

.instructions-list li {
    counter-increment: step-counter;
    padding: 1rem 1rem 1rem 3rem;
    margin-bottom: 1rem;
    background: var(--bg-tertiary);
    border-radius: 12px;
    position: relative;
    border-left: 4px solid var(--accent-primary);
    transition: all 0.2s ease;
}

.instructions-list li:hover {
    background: var(--accent-light);
    transform: translateX(4px);
}

.instructions-list li:before {
    content: counter(step-counter);
    position: absolute;
    left: 0.75rem;
    top: 1rem;
    background: var(--accent-primary);
    color: var(--text-inverse);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

.notes-tips {
    background: var(--warning-bg);
    border: 1px solid var(--warning-border);
    border-radius: 12px;
    padding: 1rem;
    color: var(--warning-text);
    font-style: italic;
}

.recipe-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    padding: 2rem;
    background: var(--bg-tertiary);
    border-radius: 16px;
    flex-wrap: wrap;
    border: 1px solid var(--border-primary);
}

/* Additional responsive styles for recipe view */
@media (max-width: 768px) {
    .recipe-header {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .recipe-image img {
        max-width: 100%;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .recipe-actions {
        flex-direction: column;
        align-items: center;
    }
    
    /* Force single column for ingredients on mobile */
    .ingredients-list {
        column-count: 1 !important;
    }
}

/* Ensure recipe page has proper spacing and layout */
.recipe-page .container {
    padding: 2rem 0;
}

.recipe-page .recipe-header {
    margin-top: 2rem;
}

.recipe-page .recipe-content {
    background: #ffffff;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
    margin-bottom: 2rem;
    border: 1px solid #e5e7eb;
}

/* Modern card improvements */
.recipe-card .recipe-image {
    height: 220px;
    overflow: hidden;
    position: relative;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.recipe-card .recipe-image img[src*="forkfanatics.png"] {
    object-fit: contain;
    padding: 1rem;
    background: #f9fafb;
}

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

/* Fallback image styling */
.recipe-image .fallback-icon {
    width: 80px;
    height: 80px;
    opacity: 0.6;
    color: #9ca3af;
}

.recipe-image .fallback-text {
    position: absolute;
    bottom: 0.75rem;
    left: 0.75rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Improved spacing and typography */
.recipe-time,
.recipe-servings {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.recipe-time span {
    margin-right: 1.5rem;
}

/* Modern loading spinner */
.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #f3f4f6;
    border-top: 4px solid #79974B;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

/* Fix any potential CSS conflicts */
.recipe-page .recipe-section h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid #79974B;
    font-size: 1.75rem;
}

.recipe-page .ingredients-list li,
.recipe-page .instructions-list li {
    margin-bottom: 0.75rem;
}

.recipe-page .notes-tips {
    margin-top: 1rem;
    font-size: 1rem;
    line-height: 1.6;
}

/* Browse Page Styles */
.browse-header {
    text-align: center;
    padding: 3rem 0;
    background: linear-gradient(135deg, #79974B 0%, #6b8a3f 100%);
    color: white;
    margin: -20px -20px 2rem -20px;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 4px 12px rgba(121, 151, 75, 0.3);
}

.browse-header h1 {
    color: white;
    margin-bottom: 1rem;
}

.search-filters {
    background: var(--bg-tertiary);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(121, 151, 75, 0.1);
    position: relative;
    overflow: hidden;
}

.search-filters::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
}

.filters-header {
    text-align: center;
    margin-bottom: 1rem;
}

.filters-header h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.filters-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.filter-form {
    margin: 0;
}

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

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group.search-group {
    grid-column: 1 / -1;
}

.filter-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.input-wrapper,
.select-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon,
.select-icon {
    position: absolute;
    left: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    z-index: 2;
    transition: color 0.3s ease;
}

.input-wrapper .form-input,
.select-wrapper .form-select {
    padding-left: 2.5rem;
}

.input-wrapper .form-input:focus + .search-icon,
.select-wrapper .form-select:focus + .select-icon {
    color: var(--accent-primary);
}

.filter-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.filter-actions .btn {
    min-width: 120px;
    padding: 0.75rem 1.25rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.filter-actions .btn i {
    font-size: 0.9rem;
}

.filter-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .search-filters {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .filter-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .filter-group.search-group {
        grid-column: 1;
    }
    
    .filter-actions {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }
    
    .filter-actions .btn {
        width: 100%;
        min-width: auto;
        padding: 0.625rem 1rem;
    }
}

.results-info {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(121, 151, 75, 0.1);
    border-radius: 12px;
    color: #79974B;
    border: 1px solid rgba(121, 151, 75, 0.2);
}

.no-results {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    border: 1px solid #e5e7eb;
}

.no-results h3 {
    color: #6c757d;
    margin-bottom: 1rem;
}

.no-results a {
    color: #79974B;
    text-decoration: none;
    font-weight: 500;
}

.no-results a:hover {
    text-decoration: underline;
    color: #6b8a3f;
}

/* Recipe card improvements for browse page */
.recipe-card .recipe-author {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.recipe-card .recipe-actions {
    margin-top: 1rem;
}

.recipe-card .recipe-actions .btn {
    width: 100%;
}

/* Profile Page Styles */
.profile-header {
    text-align: center;
    padding: 3rem 0;
    background: linear-gradient(135deg, #79974B 0%, #6b8a3f 100%);
    color: white;
    margin: -20px -20px 2rem -20px;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 4px 12px rgba(121, 151, 75, 0.3);
}

.profile-header h1 {
    color: white;
    margin-bottom: 1rem;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
    border: 1px solid #e5e7eb;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: #79974B;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: #6c757d;
    font-weight: 500;
}

.profile-section {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
    border: 1px solid #e5e7eb;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.section-header h2 {
    margin: 0;
    color: #2c3e50;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

.empty-state p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.cooked-date {
    font-size: 0.875rem;
    color: var(--success-text);
    font-weight: 500;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background: var(--success-bg);
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--success-border);
}

/* Button variations */
.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-success {
    background-color: #28a745;
    color: white;
}

.btn-success:hover {
    background-color: #218838;
}

/* Cooked Recipe Indicators */
.cooked-indicator {
    display: inline-block;
    margin-left: 0.5rem;
    font-size: 1.2rem;
    animation: fadeIn 0.3s ease;
}

.recipe-card h4 {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.recipe-card h4 a {
    flex: 1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 1000;
    animation: slideIn 0.3s ease;
    max-width: 300px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.notification-success {
    background-color: var(--success-text);
    border-left: 4px solid var(--success-border);
}

.notification-error {
    background-color: var(--error-text);
    border-left: 4px solid var(--error-border);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

a:active {
    color: var(--shadow-heavy);
}

a:hover {
    color: var(--shadow-heavy);
}
a:focus {
    color: var(--shadow-heavy);
}
a:focus-visible {
    color: var(--shadow-heavy);
}
a:focus-within {
    color: var(--shadow-heavy);
}
a {
    color: var(--shadow-heavy);
    text-decoration: none;
}
a:hover {
    color: var(--shadow-heavy);
    text-decoration: none;
}
a:visited {
    color: var(--accent-primary);
    text-decoration: none;
}
.empty-state a:visited {
    color: var(--bg-secondary);
    text-decoration: none;
}
h4 a{
    color: var(--accent-primary)!important;
    text-decoration: none;
}

h4 a:hover{
    color: var(--accent-primary)!important;
    text-decoration: none;
}

.nav-menu a{
    color: var(--accent-primary)!important;
    text-decoration: none;
}

.nav-menu a:hover{
    color: var(--accent-primary)!important;
    text-decoration: none;
}

.hero-buttons a:visited{
    color: #ffffff!important;
    text-decoration: none;
}