/* Reset en basis */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

/* Navigatie */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

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

.nav-logo {
    color: #8B4513;
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    gap: 1rem;
}

.nav-link {
    color: #1a1a1a;
    text-decoration: none;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 69, 19, 0.1), transparent);
    transition: left 0.5s ease;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover {
    background: rgba(139, 69, 19, 0.1);
    color: #8B4513;
    transform: translateY(-2px);
}

/* Hoofdinhoud */
.main-content {
    min-height: calc(100vh - 80px);
    padding: 2rem;
}

/* Hero sectie */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 6rem 2rem;
    border-radius: 24px;
    margin-bottom: 4rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

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

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
    font-weight: 800;
    background: linear-gradient(45deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Knoppen */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 16px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-align: center;
    justify-content: center;
}

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

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #8B4513, #A0522D);
    color: white;
    box-shadow: 0 8px 32px rgba(139, 69, 19, 0.3);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(139, 69, 19, 0.4);
}

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

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

.btn-danger {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    box-shadow: 0 8px 32px rgba(220, 53, 69, 0.3);
}

.btn-danger:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(220, 53, 69, 0.4);
}

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

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Formulieren */
.auth-container {
    max-width: 450px;
    margin: 2rem auto;
}

.auth-form {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.auth-form h2 {
    text-align: center;
    margin-bottom: 2.5rem;
    color: #8B4513;
    font-size: 2rem;
    font-weight: 700;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #1a1a1a;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8B4513;
    box-shadow: 0 0 0 4px rgba(139, 69, 19, 0.1);
    background: white;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* Alerts */
.alert {
    padding: 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-error {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.3);
}

.alert-success {
    background: linear-gradient(135deg, #51cf66, #40c057);
    color: white;
    box-shadow: 0 4px 20px rgba(81, 207, 102, 0.3);
}

/* Dashboard styling */
.dashboard-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    margin-bottom: 3rem;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}

.dashboard-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.dashboard-welcome {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    gap: 3rem;
    position: relative;
    z-index: 2;
}

.welcome-content h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
    font-weight: 800;
}

.welcome-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.welcome-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.welcome-illustration {
    font-size: 8rem;
    opacity: 0.8;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

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

.stats-section {
    margin-bottom: 4rem;
}

.stats-header {
    text-align: center;
    margin-bottom: 3rem;
}

.stats-header h2 {
    color: #8B4513;
    margin-bottom: 1rem;
    font-size: 2.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.stats-header p {
    color: #6c757d;
    margin: 0;
    font-size: 1.1rem;
}

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

.stat-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #8B4513, #A0522D);
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.stat-card.primary .stat-icon {
    background: linear-gradient(135deg, #007bff, #0056b3);
}

.stat-card.success .stat-icon {
    background: linear-gradient(135deg, #28a745, #1e7e34);
}

.stat-card.info .stat-icon {
    background: linear-gradient(135deg, #17a2b8, #117a8b);
}

.stat-card.warning .stat-icon {
    background: linear-gradient(135deg, #ffc107, #e0a800);
}

.stat-content h3 {
    font-size: 2.5rem;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.stat-content p {
    color: #6c757d;
    margin: 0 0 1rem 0;
    font-weight: 600;
    font-size: 1.1rem;
}

.stat-trend {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #28a745;
    font-weight: 600;
}

.dashboard-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.dashboard-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.section-header {
    margin-bottom: 2.5rem;
    text-align: center;
}

.section-header h2 {
    color: #8B4513;
    margin-bottom: 1rem;
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.section-header p {
    color: #6c757d;
    margin: 0;
    font-size: 1.1rem;
}

.wines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.wine-card {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
}

.wine-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.15);
}

.wine-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

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

.wine-card:hover .wine-image img {
    transform: scale(1.1);
}

.wine-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wine-card:hover .wine-overlay {
    opacity: 1;
}

.wine-actions {
    display: flex;
    gap: 0.75rem;
}

.wine-info {
    padding: 2rem;
}

.wine-info h3 {
    margin-bottom: 1rem;
    color: #8B4513;
    font-size: 1.3rem;
    font-weight: 700;
}

.wine-details {
    color: #6c757d;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.wine-location {
    color: #6c757d;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.wine-user {
    color: #8B4513;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
}

.wine-rating {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

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

.stars i {
    color: #ffc107;
    font-size: 1.1rem;
}

.stars i.filled {
    color: #ffc107;
}

.rating-text {
    font-size: 0.95rem;
    color: #6c757d;
    font-weight: 600;
}

.review-count {
    color: #6c757d;
    font-size: 0.85rem;
}

.wine-meta {
    display: flex;
    gap: 0.75rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.wine-type, .wine-vintage {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 600;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.wine-actions {
    display: flex;
    gap: 0.75rem;
}

/* Reviews styling */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.review-item {
    padding: 1.5rem;
    background: rgba(248, 249, 250, 0.8);
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.review-wine {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.review-wine img {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.review-wine-info h4 {
    margin: 0 0 0.75rem 0;
    color: #8B4513;
    font-weight: 700;
}

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

.review-stars i {
    color: #ffc107;
    font-size: 1rem;
}

.review-text {
    margin: 0 0 1.5rem 0;
    color: #333;
    font-style: italic;
    line-height: 1.6;
}

.review-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
}

.review-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-footer {
    text-align: center;
    margin-top: 2.5rem;
}

.quick-actions-section {
    margin-bottom: 3rem;
}

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

.quick-action-card {
    background: rgba(255, 255, 255, 0.8);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
}

.quick-action-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.15);
    border-color: #8B4513;
}

.action-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #8B4513, #A0522D);
    color: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    transition: transform 0.3s ease;
}

.quick-action-card:hover .action-icon {
    transform: scale(1.1);
}

.quick-action-card h4 {
    color: #8B4513;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 700;
}

.quick-action-card p {
    color: #6c757d;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.feature {
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
}

.feature i {
    font-size: 3.5rem;
    color: #8B4513;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #8B4513, #A0522D);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature h3 {
    margin-bottom: 1rem;
    color: #1a1a1a;
    font-weight: 700;
    font-size: 1.3rem;
}

.feature p {
    color: #6c757d;
    line-height: 1.6;
}

/* Footer */
.footer {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(20px);
    color: white;
    text-align: center;
    padding: 3rem 2rem;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content p {
    opacity: 0.8;
    font-size: 1rem;
}

/* Empty states */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #6c757d;
}

.empty-illustration {
    font-size: 5rem;
    margin-bottom: 2rem;
    opacity: 0.5;
    color: #8B4513;
}

.empty-state h3 {
    margin-bottom: 1rem;
    color: #8B4513;
    font-size: 1.8rem;
    font-weight: 700;
}

.empty-state p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.empty-state.small {
    padding: 3rem 2rem;
}

.empty-state.small i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.empty-state.small h4 {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.empty-state.small p {
    margin-bottom: 0;
}

/* Responsive design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
   
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
   
    .main-content {
        padding: 1rem;
    }
   
    .hero {
        padding: 4rem 1.5rem;
        margin-bottom: 2rem;
    }
   
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
   
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
   
    .dashboard-welcome {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        padding: 0 1rem;
    }
   
    .welcome-illustration {
        font-size: 5rem;
    }
   
    .dashboard-content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
   
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
   
    .wines-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
   
    .quick-actions-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }
   
    .features {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
   
    .filter-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
   
    .search-group {
        grid-column: 1;
    }
   
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
   
    .active-filters {
        flex-direction: column;
        align-items: flex-start;
    }
   
    .setting-item {
        flex-direction: column;
        text-align: center;
    }
   
    .wine-actions {
        flex-direction: column;
    }
   
    .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .auth-form {
        padding: 2rem 1.5rem;
    }
   
    .dashboard-section {
        padding: 2rem 1.5rem;
    }
   
    .wine-info {
        padding: 1.5rem;
    }
   
    .stat-card {
        padding: 2rem 1.5rem;
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
   
    .stat-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}
/* Quiz section */
.quiz-section {
    background: linear-gradient(135deg, #8B5CF6, #EC4899);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    margin-bottom: 3rem;
    color: white;
}

.quiz-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: white;
}

.quiz-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.quiz-content .btn {
    background: white;
    color: #8B5CF6;
    font-weight: 600;
    padding: 12px 32px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.quiz-content .btn:hover {
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}