@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Lato:wght@300;400;600&display=swap');

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

body {
    font-family: 'Lato', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #4A3728 0%, #5D4037 50%, #8B5A2B 100%);
    min-height: 100vh;
    padding-bottom: 40px;
}

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

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(93, 64, 55, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.nav-brand h1 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    color: #5D4037;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: #3E2723;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    background: #5D4037;
    color: white;
}

/* Header Section */
.header-section {
    text-align: center;
    color: #3E2723;
    padding: 20px 20px 10px;
}

.header-section h1,
.header-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    margin-bottom: 8px;
    color: #3E2723;
}

.subtitle {
    font-size: 16px;
    color: #6D4C41;
}

/* Search Card */
.search-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(93, 64, 55, 0.25);
    margin: 30px auto;
    max-width: 600px;
}

.search-card h2 {
    font-family: 'Playfair Display', serif;
    text-align: center;
    color: #3E2723;
    margin-bottom: 30px;
    font-size: 28px;
}

/* Form Styling */
.serial-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: #3E2723;
    font-size: 16px;
}

.form-group select,
.form-group input {
    padding: 14px;
    border: 2px solid #E8E0D5;
    border-radius: 10px;
    font-size: 16px;
    font-family: 'Lato', sans-serif;
    transition: all 0.3s;
}

.form-group select:focus,
.form-group input:focus {
    outline: none;
    border-color: #CD853F;
    box-shadow: 0 0 0 3px rgba(205, 133, 63, 0.15);
}

.form-group small {
    color: #6D4C41;
    font-size: 13px;
}

/* Loading Spinner */
.loading-spinner {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #6D4C41;
    font-size: 14px;
    margin-top: 5px;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #5D4037;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Buttons */
.btn-primary,
.btn-secondary {
    padding: 16px 32px;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, #5D4037 0%, #8B5A2B 100%);
    color: white;
    margin-top: 10px;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(93, 64, 55, 0.4);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-secondary {
    background: #FAF8F5;
    color: #3E2723;
    border: 2px solid #E8E0D5;
    margin-top: 20px;
}

.btn-secondary:hover {
    background: #E8E0D5;
    color: #3E2723;
}

.btn-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Result Section */
.result-section {
    margin: 30px auto;
    max-width: 700px;
}

.result-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(93, 64, 55, 0.25);
    text-align: center;
}

.result-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.result-card h2 {
    font-family: 'Playfair Display', serif;
    color: #3E2723;
    margin-bottom: 30px;
    font-size: 32px;
}

/* Brand Info Section */
.brand-info-section {
    background: #FAF8F5;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    border: 2px solid #E8E0D5;
}

.brand-header {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 20px;
    align-items: center;
    margin-bottom: 15px;
}

.brand-logo-display {
    width: 120px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #E8E0D5;
}

.brand-logo-display img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.brand-logo-display.no-logo {
    font-size: 40px;
    color: #bdc3c7;
}

.brand-details {
    text-align: left;
}

.brand-details h3 {
    font-family: 'Playfair Display', serif;
    color: #3E2723;
    margin-bottom: 5px;
    font-size: 24px;
}

.brand-details p {
    margin: 0;
    font-size: 14px;
}

.brand-details a {
    color: #5D4037;
    text-decoration: none;
    font-weight: 500;
}

.brand-details a:hover {
    text-decoration: underline;
}

.brand-description {
    color: #6D4C41;
    font-size: 15px;
    line-height: 1.6;
    margin-top: 10px;
    text-align: left;
}

.result-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #FAF8F5;
    border-radius: 10px;
}

.result-item.highlight {
    background: linear-gradient(135deg, #5D4037 0%, #6D4C41 100%);
    color: white;
    padding: 25px;
    font-size: 20px;
}

.result-label {
    font-weight: 600;
}

.result-value {
    font-size: 18px;
}

.result-value.big {
    font-size: 36px;
    font-weight: 700;
}

.result-note {
    background: #FAF0E6;
    border: 1px solid #CD853F;
    padding: 15px;
    border-radius: 10px;
    color: #3E2723;
    margin-top: 20px;
    font-size: 14px;
}

/* Error Section */
.error-section {
    margin: 30px auto;
    max-width: 600px;
}

.error-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(45, 106, 79, 0.2);
    text-align: center;
    border-top: 5px solid #c1121f;
}

.error-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.error-card h3 {
    color: #c1121f;
    margin-bottom: 15px;
    font-size: 28px;
}

.error-card p {
    color: #6D4C41;
    font-size: 16px;
    margin-bottom: 20px;
}

/* Info Section */
.info-section {
    margin-top: 0;
    margin-bottom: 40px;
    color: #5D4037; /* Donkergroene tekst voor lichte achtergrond */
}

.info-section h2,
.info-section h3 {
    font-family: 'Playfair Display', serif;
    text-align: center;
    font-size: 28px;
    margin-bottom: 30px;
    color: #3E2723;
    text-shadow: none;
}

/* Nieuwe stappen layout */
.info-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 600px;
    margin: 0 auto;
}

.info-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #FAF8F5 0%, #F5DEB3 100%);
    border-radius: 10px;
    border-left: 4px solid #5D4037;
}

.step-number {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #5D4037 0%, #6D4C41 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
}

.step-content strong {
    display: block;
    color: #3E2723;
    font-size: 15px;
    margin-bottom: 4px;
}

.step-content p {
    color: #6D4C41;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

/* Oude grid behouden voor backward compatibility */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.info-card {
    background: linear-gradient(135deg, #d8f3dc 0%, #b7e4c7 100%);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #95d5b2;
    box-shadow: 0 2px 8px rgba(45, 106, 79, 0.1);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(45, 106, 79, 0.2);
}

.info-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #5D4037 0%, #3E2723 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 20px;
    box-shadow: 0 2px 8px rgba(27, 67, 50, 0.3);
}

.info-card h3 {
    margin-bottom: 15px;
    font-size: 20px;
    color: #3E2723;
}

.info-card p {
    font-size: 14px;
    color: #5D4037;
    line-height: 1.6;
}

/* Disclaimer */
.disclaimer {
    background: linear-gradient(135deg, #fff3cd 0%, #ffe8a1 100%);
    padding: 30px;
    border-radius: 15px;
    color: #664d03;
    margin-top: 40px;
    border: 1px solid #ffecb5;
    box-shadow: 0 2px 8px rgba(102, 77, 3, 0.1);
}

.disclaimer h3 {
    margin-bottom: 15px;
    font-size: 22px;
    color: #523a02;
}

.disclaimer p {
    line-height: 1.6;
    opacity: 0.9;
}

/* Merk niet gevonden sectie */
.merk-niet-gevonden-section {
    margin: 30px auto;
    max-width: 700px;
}

.help-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(93, 64, 55, 0.15);
    border: 2px dashed #9a6b3d;
}

.help-card .help-icon {
    font-size: 48px;
    text-align: center;
    margin-bottom: 20px;
}

.help-card h3 {
    font-family: 'Playfair Display', serif;
    text-align: center;
    color: #3E2723;
    margin-bottom: 15px;
    font-size: 24px;
}

.help-card > p {
    text-align: center;
    color: #5D4037;
    margin-bottom: 30px;
    line-height: 1.6;
}

.help-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.help-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.help-form .form-group {
    display: flex;
    flex-direction: column;
}

.help-form label {
    font-weight: 600;
    color: #3E2723;
    margin-bottom: 8px;
    font-size: 14px;
}

.help-form input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #d7ccc8;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s;
    background: white;
}

.help-form input:focus {
    outline: none;
    border-color: #9a6b3d;
    box-shadow: 0 0 0 4px rgba(154, 107, 61, 0.15);
}

.help-form input::placeholder {
    color: #a1887f;
}

.help-form .btn-primary {
    margin-top: 10px;
}

.success-message {
    text-align: center;
    padding: 20px;
}

.success-message .success-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.success-message h4 {
    font-family: 'Playfair Display', serif;
    color: #2e7d32;
    font-size: 22px;
    margin-bottom: 10px;
}

.success-message p {
    color: #5D4037;
    line-height: 1.6;
}

@media (max-width: 600px) {
    .help-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .help-card {
        padding: 25px;
    }
}

/* Footer */
.footer {
    background: rgba(27, 67, 50, 0.3);
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 60px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 15px;
    }

    .header-section h1 {
        font-size: 32px;
    }

    .search-card,
    .result-card,
    .error-card {
        padding: 25px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .result-value.big {
        font-size: 28px;
    }
}
