/* Gezond Leren Eten - Stylesheet */
:root {
    --primary: #22c55e;
    --primary-dark: #16a34a;
    --secondary: #f0fdf4;
    --text: #1f2937;
    --text-light: #6b7280;
    --bg: #ffffff;
    --bg-alt: #f9fafb;
    --border: #e5e7eb;
    --radius: 12px;
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

a { color: var(--primary-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* Header */
.header {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
}

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

.nav-links a {
    color: var(--text-light);
    font-weight: 500;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-dark);
    text-decoration: none;
}

.nav-auth {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius);
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    text-decoration: none;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    text-decoration: none;
}

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

.btn-outline:hover {
    background: var(--secondary);
    text-decoration: none;
}

.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1.1rem;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--secondary) 0%, #dcfce7 100%);
    padding: 4rem 1rem;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

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

/* Sections */
.section {
    padding: 3rem 1rem;
}

.section-alt {
    background: var(--bg-alt);
}

.section h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Cards */
.card {
    background: var(--bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    display: block;
    color: var(--text);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.15);
    text-decoration: none;
}

.card-image {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-body {
    padding: 1.25rem;
}

.card-body h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.card-body p {
    color: var(--text-light);
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    gap: 1rem;
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

.card-category {
    display: inline-block;
    background: var(--secondary);
    color: var(--primary-dark);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Page Header */
.page-header {
    background: var(--secondary);
    padding: 3rem 1rem;
    text-align: center;
}

.page-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--text-light);
}

/* Filters */
.filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    justify-content: center;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--bg);
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Auth Pages */
.auth-page {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.auth-container {
    background: var(--bg);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 400px;
}

.auth-container h1 {
    text-align: center;
    margin-bottom: 1.5rem;
}

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

.auth-form label {
    display: block;
    margin-bottom: 0.375rem;
    font-weight: 500;
}

.auth-form input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--primary);
}

.auth-form small {
    color: var(--text-light);
    font-size: 0.8rem;
}

.auth-form .checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-form .checkbox input {
    width: auto;
}

.form-error, .form-message.error {
    color: #dc2626;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.form-message.success {
    color: var(--primary-dark);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.auth-links {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-light);
}

.auth-links a {
    color: var(--primary-dark);
}

/* Profile */
.profile-page {
    padding: 2rem 1rem;
}

.profile-page h1 {
    text-align: center;
    margin-bottom: 2rem;
}

.profile-sections {
    display: grid;
    gap: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.profile-section {
    background: var(--bg);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.profile-section h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    text-align: left;
}

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

.profile-form label {
    display: block;
    margin-bottom: 0.375rem;
    font-weight: 500;
}

.profile-form input,
.profile-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
}

/* Recipe Detail */
.breadcrumb {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--text-light);
}

.recipe-detail, .blog-detail, .tip-detail {
    padding: 2rem 1rem;
}

.recipe-header h1, .article-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.recipe-description {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.recipe-image, .article-image {
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 2rem;
}

.recipe-image img, .article-image img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
}

.recipe-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--bg-alt);
    border-radius: 8px;
}

.recipe-content {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .recipe-content {
        grid-template-columns: 1fr 2fr;
    }
}

.recipe-ingredients h2,
.recipe-instructions h2,
.recipe-nutrition h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.recipe-ingredients ul {
    list-style: none;
}

.recipe-ingredients li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

.recipe-instructions ol {
    padding-left: 1.5rem;
}

.recipe-instructions li {
    padding: 0.75rem 0;
}

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

.nutrition-item {
    text-align: center;
    padding: 1rem;
    background: var(--bg-alt);
    border-radius: 8px;
}

.nutrition-item .value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.nutrition-item .label {
    color: var(--text-light);
    font-size: 0.85rem;
}

/* Article */
.article-header {
    margin-bottom: 2rem;
}

.article-category {
    display: inline-block;
    background: var(--secondary);
    color: var(--primary-dark);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.article-meta {
    display: flex;
    gap: 1.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.article-share {
    border-top: 1px solid var(--border);
    padding-top: 2rem;
}

.article-share h3 {
    margin-bottom: 1rem;
}

.share-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Content Page */
.content-page {
    max-width: 800px;
    margin: 0 auto;
}

.content-page h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    text-align: left;
}

.content-page p {
    margin-bottom: 1rem;
}

.content-page ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

/* Newsletter */
.section-cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
}

.section-cta h2, .section-cta p {
    color: white;
}

.newsletter-form {
    display: flex;
    gap: 0.75rem;
    max-width: 500px;
    margin: 1.5rem auto 0;
    flex-wrap: wrap;
    justify-content: center;
}

.newsletter-form input {
    flex: 1;
    min-width: 200px;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
}

.newsletter-form .btn {
    background: white;
    color: var(--primary-dark);
}

/* Footer */
.footer {
    background: var(--text);
    color: white;
    padding: 3rem 1rem 1.5rem;
}

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

.footer h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.footer h4 {
    margin-bottom: 0.75rem;
}

.footer ul {
    list-style: none;
}

.footer li {
    margin-bottom: 0.5rem;
}

.footer a {
    color: #d1d5db;
}

.footer a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 1.5rem;
    text-align: center;
    color: #9ca3af;
}

/* Utilities */
.text-center { text-align: center; }
.mt-4 { margin-top: 2rem; }

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .grid {
        grid-template-columns: 1fr;
    }
}
