/* Google Fonts - Must be at the top */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

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

:root {
    /* Primary Colors - Gezond Groen Thema */
    --primary-color: #16a34a;
    --primary-hover: #15803d;
    --primary-light: #22c55e;
    --primary-dark: #14532d;
    
    /* Accent Colors */
    --accent-color: #0d9488;
    --accent-hover: #0f766e;
    
    /* Status Colors */
    --success-color: #10b981;
    --success-light: #d1fae5;
    --warning-color: #f59e0b;
    --warning-light: #fef3c7;
    --danger-color: #ef4444;
    --info-color: #3b82f6;
    --info-light: #dbeafe;
    
    /* Background Colors */
    --bg-color: #ffffff;
    --bg-light: #f8fafc;
    --bg-lighter: #f0fdf4;
    
    /* Text Colors */
    --text-color: #1e293b;
    --text-light: #64748b;
    --text-muted: #94a3b8;
    
    /* Border Colors */
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    
    /* Shadows - Subtieler en professioneler */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    
    /* Border Radius */
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-color);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-color);
    margin-bottom: var(--spacing-md);
}

h1 {
    font-size: 2.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: var(--spacing-md);
    margin-top: var(--spacing-xl);
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    margin-top: var(--spacing-lg);
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

p {
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* Header - Cleaner */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    padding: var(--spacing-md) 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: -0.01em;
}

.nav {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    transition: all 0.2s ease;
}

.nav a:hover {
    color: var(--primary-color);
    background-color: var(--bg-light);
}

/* Main - More spacing */
.main {
    min-height: calc(100vh - 300px);
    padding: var(--spacing-2xl) 0;
}

/* Hero Section - Professional */
.hero {
    text-align: center;
    padding: var(--spacing-2xl) var(--spacing-lg);
    margin-bottom: var(--spacing-2xl);
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--text-color);
    letter-spacing: -0.03em;
}

.hero .lead {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto var(--spacing-xl);
    line-height: 1.6;
}

.hero-cta {
    margin-top: var(--spacing-xl);
}

/* Tools Grid - Better spacing */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-2xl);
}

.tool-card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.tool-card-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
}

.tool-card-icon svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.tool-card h2 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    margin-top: 0;
}

.tool-card h2 a {
    color: var(--text-color);
    text-decoration: none;
}

.tool-card h2 a:hover {
    color: var(--primary-color);
}

.tool-card p {
    color: var(--text-light);
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
    flex: 1;
}

.tool-card .btn {
    margin-top: auto;
    width: 100%;
    justify-content: center;
}

/* Trust Section */
.trust-section {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    margin: var(--spacing-2xl) 0;
    text-align: center;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
}

.trust-icon {
    width: 40px;
    height: 40px;
    color: var(--primary-color);
}

.trust-item h4 {
    font-size: 1rem;
    margin: 0;
    font-weight: 600;
}

.trust-item p {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0;
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
    padding: var(--spacing-xl) 0;
}

.page-header h1 {
    font-size: 2.75rem;
    margin-bottom: var(--spacing-md);
    color: var(--text-color);
}

.page-header .lead {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Calculator Container */
.calculator-container {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-2xl);
    margin-bottom: var(--spacing-2xl);
    box-shadow: var(--shadow);
}

/* Forms - Better spacing */
.calculator-form {
    max-width: 600px;
    margin: 0 auto var(--spacing-xl);
}

.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.9375rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--bg-color);
    color: var(--text-color);
    transition: all 0.2s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

.form-group.error input,
.form-group.error select {
    border-color: var(--danger-color);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-error-message {
    color: var(--danger-color);
    font-size: 0.875rem;
    margin-top: var(--spacing-xs);
    display: none;
}

.form-group.error .form-error-message {
    display: block;
}

.form-actions {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    margin-top: var(--spacing-xl);
}

/* Buttons - Professional */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

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

.btn-primary:hover {
    background: var(--primary-hover);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

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

.btn-secondary {
    background: var(--bg-light);
    color: var(--text-color);
    border: 1.5px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--border-light);
    border-color: var(--text-muted);
}

.btn-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Results - Visual improvement */
.results {
    margin-top: var(--spacing-2xl);
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.results h2 {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.result-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.result-card {
    background: var(--bg-color);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    text-align: center;
    transition: all 0.2s ease;
    position: relative;
}

.result-card.highlight {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.05) 0%, rgba(255, 255, 255, 1) 100%);
    box-shadow: var(--shadow-md);
}

.result-card-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto var(--spacing-md);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-card.maintenance .result-card-icon {
    background: var(--bg-light);
    color: var(--text-color);
}

.result-card.weight-loss .result-card-icon {
    background: var(--success-light);
    color: var(--success-color);
}

.result-card.weight-gain .result-card-icon {
    background: var(--info-light);
    color: var(--info-color);
}

.result-card h3 {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-md);
    margin-top: 0;
    font-weight: 600;
}

.result-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
    letter-spacing: -0.02em;
}

.result-card.weight-loss .result-value {
    color: var(--success-color);
}

.result-card.weight-gain .result-value {
    color: var(--info-color);
}

.result-description {
    color: var(--text-light);
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.5;
}

/* BMI Categories */
.bmi-info {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.bmi-categories {
    list-style: none;
    display: grid;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.bmi-categories li {
    padding: var(--spacing-md);
    border-left: 4px solid var(--border-color);
    padding-left: var(--spacing-md);
    background: var(--bg-color);
    border-radius: var(--radius);
}

/* Alert */
.alert {
    padding: var(--spacing-md);
    border-radius: var(--radius);
    margin-bottom: var(--spacing-lg);
}

.alert-warning {
    background-color: var(--warning-light);
    border: 1.5px solid var(--warning-color);
    color: #92400e;
}

.info-box {
    background: var(--bg-light);
    border-left: 4px solid var(--primary-color);
    padding: var(--spacing-md);
    border-radius: var(--radius);
    margin-top: var(--spacing-lg);
}

/* Content Sections */
.content-section {
    margin-bottom: var(--spacing-2xl);
    line-height: 1.7;
}

.content-section h2:first-child {
    margin-top: 0;
}

.content-section ul,
.content-section ol {
    margin-bottom: var(--spacing-md);
    padding-left: var(--spacing-xl);
}

.content-section li {
    margin-bottom: var(--spacing-xs);
    line-height: 1.7;
}

.content-section a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.content-section a:hover {
    text-decoration: underline;
}

/* FAQ Section */
.faq-section {
    margin-top: var(--spacing-2xl);
    padding-top: var(--spacing-2xl);
    border-top: 1px solid var(--border-color);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.faq-item {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
}

.faq-item h3 {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-sm);
    margin-top: 0;
}

.faq-item p {
    color: var(--text-light);
    margin: 0;
}

/* Footer */
.footer {
    background: #1e293b;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--spacing-2xl) 0 var(--spacing-lg);
    margin-top: var(--spacing-2xl);
    color: #cbd5e1;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-section h3,
.footer-section h4 {
    color: white;
    margin-bottom: var(--spacing-md);
    font-size: 1rem;
    font-weight: 600;
}

.footer-section p {
    color: #94a3b8;
    font-size: 0.9375rem;
    line-height: 1.6;
    margin: 0 0 var(--spacing-md) 0;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer-nav a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color 0.2s ease;
}

.footer-nav a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-lg);
    text-align: center;
}

.footer-bottom p {
    margin-bottom: var(--spacing-xs);
    color: #94a3b8;
    font-size: 0.875rem;
}

.footer-disclaimer {
    font-size: 0.8125rem !important;
    color: #64748b !important;
    font-style: italic;
    margin-top: var(--spacing-sm);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    max-width: 400px;
}

.toast {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-lg);
    border-left: 4px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    animation: slideInRight 0.3s ease-out;
    min-width: 300px;
}

.toast.success { border-left-color: var(--success-color); }
.toast.error { border-left-color: var(--danger-color); }
.toast.warning { border-left-color: var(--warning-color); }

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

.toast-content {
    flex: 1;
    font-size: 0.9375rem;
    color: var(--text-color);
}

.toast-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.toast-close:hover {
    opacity: 1;
}

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

.toast.fade-out {
    animation: slideOutRight 0.3s ease-out forwards;
}

@keyframes slideOutRight {
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Copy Button */
.copy-btn {
    background: var(--bg-light);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius);
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    color: var(--text-color);
    margin-top: var(--spacing-md);
    font-weight: 500;
}

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

.copy-btn.copied {
    background: var(--success-color);
    color: white;
    border-color: var(--success-color);
}

.copy-btn svg {
    width: 16px;
    height: 16px;
}

.result-actions {
    margin-top: var(--spacing-lg);
    text-align: center;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    z-index: 10001;
}

.skip-link:focus {
    top: 0;
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .nav,
    .form-actions,
    .copy-btn,
    .result-actions,
    .toast-container {
        display: none !important;
    }
    
    .calculator-container {
        background: white;
        border: 1px solid #ccc;
        box-shadow: none;
    }
}

/* Breadcrumbs */
.breadcrumbs {
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-sm) 0;
}

.breadcrumbs-list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: var(--spacing-xs);
    align-items: center;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: var(--text-light);
}

.breadcrumb-item:not(:last-child)::after {
    content: '/';
    margin: 0 var(--spacing-xs);
    color: var(--text-muted);
}

.breadcrumb-item a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.breadcrumb-item--current {
    color: var(--text-color);
    font-weight: 500;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Focus Visible */
*:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Responsive */
@media (max-width: 768px) {
    :root {
        --spacing-xl: 2rem;
        --spacing-2xl: 3rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .hero h1 {
        font-size: 2.25rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .container {
        padding: 0 var(--spacing-md);
    }
    
    .main {
        padding: var(--spacing-xl) 0;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .result-cards {
        grid-template-columns: 1fr;
    }
    
    .calculator-container {
        padding: var(--spacing-lg);
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .nav {
        justify-content: center;
        width: 100%;
    }
    
    .header .container {
        flex-direction: column;
        text-align: center;
    }
    
    .toast-container {
        left: var(--spacing-md);
        right: var(--spacing-md);
        max-width: none;
    }
    
    .trust-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 15px;
    }
    
    .hero {
        padding: var(--spacing-xl) var(--spacing-md);
    }
    
    .hero h1 {
        font-size: 1.875rem;
    }
    
    .hero .lead {
        font-size: 1.125rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
}
