/* CSS for detail template */

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

.detail-hero .breadcrumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    margin-bottom: 0;
}

.detail-hero .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.detail-hero .breadcrumb-item a:hover {
    color: white;
}

.detail-hero .breadcrumb-item.active {
    color: white;
}

/* Detail Cards */
.detail-card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.detail-card .card-header {
    background: var(--bs-primary, #0d6efd);
    color: white;
    font-weight: 600;
    border-bottom: none;
    padding: 1rem 1.5rem;
}

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

/* Detail Image */
.detail-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 0.5rem;
}

/* 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;
    padding-bottom: 0;
}

.info-list li:first-child {
    padding-top: 0;
}

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

.info-list .value {
    flex: 1;
    color: var(--bs-secondary, #6c757d);
    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 */
    }
}

/* Category Badge */
.category-badge {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
    border-radius: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    white-space: nowrap;
}

/* Category Colors */
.category-1 { background-color: #e3f2fd; color: #1565c0; } /* Cursussen & Workshops */
.category-2 { background-color: #e8f5e8; color: #2e7d32; } /* Dier & Natuur */
.category-3 { background-color: #fff3e0; color: #ef6c00; } /* Erop uit - activiteiten */
.category-4 { background-color: #f3e5f5; color: #7b1fa2; } /* Erop uit - cultuur */
.category-5 { background-color: #e0f2f1; color: #00695c; } /* Erop uit - recreatie */
.category-6 { background-color: #fff8e1; color: #f57f17; } /* Eten & drinken */
.category-7 { background-color: #fce4ec; color: #c2185b; } /* Media & Lezen */
.category-8 { background-color: #e1f5fe; color: #0277bd; } /* Sport */
.category-9 { background-color: #f1f8e9; color: #558b2f; } /* Verenigingen en buurtcentra */
.category-10 { background-color: #fafafa; color: #424242; } /* Winkelen */

/* Description Content */
.description-content {
    line-height: 1.6;
}

.description-content h1,
.description-content h2,
.description-content h3,
.description-content h4,
.description-content h5,
.description-content h6 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: var(--bs-dark, #212529);
}

.description-content p {
    margin-bottom: 1rem;
    color: var(--bs-body-color, #212529);
}

.description-content ul,
.description-content ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.description-content li {
    margin-bottom: 0.5rem;
}

.description-content a {
    color: var(--bs-primary, #0d6efd);
    text-decoration: none;
}

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

.description-content blockquote {
    padding: 1rem;
    margin: 1rem 0;
    background: var(--bs-light, #f8f9fa);
    border-left: 4px solid var(--bs-primary, #0d6efd);
    border-radius: 0.25rem;
}

.description-content code {
    background: var(--bs-light, #f8f9fa);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.9em;
}

.description-content pre {
    background: var(--bs-light, #f8f9fa);
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
}

/* Badges and Status */
.badge {
    font-size: 0.75em;
    padding: 0.5em 0.75em;
}

/* Button Improvements */
.btn-outline-secondary:disabled {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    color: #6c757d;
    cursor: not-allowed;
}

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

.regular-price {
    text-decoration: line-through;
    color: var(--bs-secondary, #6c757d);
    font-size: 0.9rem;
}

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

/* Alert Improvements */
.alert.alert-info {
    border-left: 4px solid var(--bs-info, #0dcaf0);
}

.alert.alert-danger {
    border-left: 4px solid var(--bs-danger, #dc3545);
}

/* Card Header Variants */
.detail-card .card-header.bg-primary {
    background-color: var(--bs-primary, #0d6efd) !important;
}

.detail-card .card-header.bg-info {
    background-color: var(--bs-info, #0dcaf0) !important;
    color: var(--bs-dark, #212529) !important;
}

/* Text Color Utilities */
.text-success {
    color: var(--bs-success, #198754) !important;
}

.text-danger {
    color: var(--bs-danger, #dc3545) !important;
}

.text-muted {
    color: var(--bs-secondary, #6c757d) !important;
}

/* Responsive Design */
@media (max-width: 767.98px) {
    .detail-hero {
        padding: 1.5rem 0;
    }
    
    .detail-hero h1 {
        font-size: 1.75rem;
    }
    
    .detail-image {
        height: 200px;
    }
    
    .info-list .label {
        min-width: 120px;
        font-size: 0.9rem;
    }
    
    .info-list .value {
        font-size: 0.9rem;
    }
    
    .detail-card .card-body {
        padding: 1rem;
    }
    
    .detail-card .card-header {
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 575.98px) {
    .info-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .info-list .label {
        min-width: auto;
        width: 100%;
    }
    
    .category-badge {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }
}

.detail-card:last-child {
    margin-bottom: 0;
}
