/* Custom Stadjerspas Styling */

:root {
    --stadjerspas-primary: #0d6efd;
    --stadjerspas-secondary: #6c757d;
    --stadjerspas-success: #198754;
    --stadjerspas-info: #0dcaf0;
    --stadjerspas-warning: #ffc107;
    --stadjerspas-danger: #dc3545;
    --stadjerspas-light: #f8f9fa;
    --stadjerspas-dark: #212529;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f8f9fa;
}

/* Navigation Styling */
.navbar-brand {
    font-size: 1.5rem;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 0.375rem;
    transition: background-color 0.3s ease;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--stadjerspas-primary) 0%, #495057 100%);
    color: white;
    padding: 4rem 0;
    margin-bottom: 2rem;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-section p {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* Filters Section */
.filters-section {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    padding: 2rem;
    margin-bottom: 2rem;
}

.filter-group {
    margin-bottom: 1.5rem;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-label {
    font-weight: 600;
    color: var(--stadjerspas-dark);
    margin-bottom: 0.5rem;
    display: block;
}

/* Actie Cards */
.actie-card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: all 0.3s ease;
    height: 100%;
    overflow: hidden;
}

/* Clickable Card Styling */
.clickable-card {
    cursor: pointer;
    text-decoration: none !important;
    color: inherit;
}

.clickable-card:hover {
    transform: translateY(-0.25rem);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    text-decoration: none !important;
    color: inherit;
}

.clickable-card .card-title,
.clickable-card .card-text {
    color: inherit;
}

.clickable-card:hover .card-title {
    color: var(--stadjerspas-primary);
}

.actie-card .card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.clickable-card:hover .card-img-top {
    transform: scale(1.05);
}

.actie-card .card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.actie-card .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--stadjerspas-dark);
    margin-bottom: 0.75rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

.actie-card .card-text {
    color: #495057; /* Improved from var(--stadjerspas-secondary) for better contrast */
    font-size: 0.9rem;
    flex-grow: 1;
    margin-bottom: 1rem;
}

.actie-card .card-footer {
    background: transparent;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 1.5rem;
}

/* Price Display */
.price-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.regular-price {
    text-decoration: line-through;
    color: #495057; /* Improved contrast from var(--stadjerspas-secondary) */
    font-size: 0.9rem;
}

.stadjerspas-price {
    color: var(--stadjerspas-success);
    font-weight: 700;
    font-size: 1.1rem;
}

.discount-badge {
    background: var(--stadjerspas-success);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Category Badges */
.category-badge {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
    border-radius: 1rem;
    font-weight: 700; /* Improved from 600 for better readability */
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

/* Updated category colors for better contrast compliance */
.category-1 { background-color: #bbdefb; color: #0d47a1; } /* Cursussen & Workshops - improved contrast */
.category-2 { background-color: #c8e6c9; color: #1b5e20; } /* Dier & Natuur - improved contrast */
.category-3 { background-color: #ffe0b2; color: #e65100; } /* Erop uit - activiteiten - improved contrast */
.category-4 { background-color: #e1bee7; color: #4a148c; } /* Erop uit - cultuur - improved contrast */
.category-5 { background-color: #b2dfdb; color: #004d40; } /* Erop uit - recreatie - improved contrast */
.category-6 { background-color: #fff9c4; color: #f57f17; } /* Eten & drinken - good contrast */
.category-7 { background-color: #f8bbd9; color: #880e4f; } /* Media & Lezen - improved contrast */
.category-8 { background-color: #b3e5fc; color: #01579b; } /* Sport - improved contrast */
.category-9 { background-color: #dcedc8; color: #33691e; } /* Verenigingen en buurtcentra - improved contrast */
.category-10 { background-color: #e0e0e0; color: #212121; } /* Winkelen - improved contrast */

/* Age Group Indicators */
.age-group {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    color: #495057; /* Improved contrast from var(--stadjerspas-secondary) */
}

.age-group i {
    font-size: 0.9rem;
}

/* Detail Page Styling */
.detail-hero {
    background: var(--stadjerspas-light);
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.detail-image {
    border-radius: 1rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.detail-card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 2rem;
}

.detail-card .card-header {
    background: var(--stadjerspas-primary);
    color: white;
    border-radius: 1rem 1rem 0 0 !important;
    padding: 1.25rem 1.5rem;
    font-weight: 600;
}

.detail-card .card-body {
    padding: 2rem;
}

/* Info Lists */
.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.info-list li:last-child {
    border-bottom: none;
}

.info-list .label {
    font-weight: 600;
    color: var(--stadjerspas-dark);
    min-width: 180px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    word-wrap: break-word;
    hyphens: auto;
}

.info-list .value {
    color: #495057; /* Improved contrast from var(--stadjerspas-secondary) */
    flex: 1;
    text-align: right;
    min-width: 0; /* Allow text to shrink */
}

/* Responsive adjustments for mobile */
@media (max-width: 576px) {
    .info-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .info-list .label {
        min-width: unset;
        width: 100%;
    }
    
    .info-list .value {
        text-align: left;
        width: 100%;
        margin-left: 1.5rem; /* Indent to align with icon */
    }
}

/* Buttons */
.btn-stadjerspas {
    background: var(--stadjerspas-primary);
    border: var(--stadjerspas-primary);
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.btn-stadjerspas:hover {
    background: #0b5ed7;
    border-color: #0b5ed7;
    color: white;
    transform: translateY(-1px);
}

/* Loading and Empty States */
.loading-state {
    text-align: center;
    padding: 3rem;
    color: var(--stadjerspas-secondary);
}

.loading-spinner {
    width: 3rem;
    height: 3rem;
    margin-bottom: 1rem;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #495057; /* Improved contrast from var(--stadjerspas-secondary) */
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .filters-section {
        padding: 1.5rem;
    }
    
    .actie-card .card-img-top {
        height: 150px;
    }
    
    .detail-image {
        height: 200px;
    }
}

@media (max-width: 576px) {
    .filters-section {
        padding: 1rem;
        margin: 0 0.5rem 2rem 0.5rem;
    }
    
    .actie-card {
        margin-bottom: 1rem;
    }
}
