/* Reservation Details Modal Styles (Feature 009 - Phase 5)
 * Read-only details view for reservation information
 * Displays all fields in organized sections with proper formatting
 */

/* ========================================
   MODAL BODY & DETAILS GRID
   ======================================== */
.modal__body.details-grid {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-6);
    padding: var(--spacing-6);
    max-height: 70vh;
    overflow-y: auto;
    background-color: #fafafa;
}

/* ========================================
   DETAILS SECTIONS
   ======================================== */
.details-section {
    background-color: #ffffff !important;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: var(--spacing-4);
}

.details-section__title {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-bold);
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 var(--spacing-4) 0;
    padding-bottom: var(--spacing-3);
    border-bottom: 2px solid #e0e0e0;
}

/* ========================================
   DETAIL ROWS
   ======================================== */
.detail-row {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-1);
    margin-bottom: var(--spacing-4);
}

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

.detail-label {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--color-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.detail-value {
    font-size: var(--font-size-base);
    color: #1a1a1a;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Special value styles */
.detail-value--mono {
    font-family: 'Courier New', monospace;
    font-size: var(--font-size-sm);
    color: #666666;
}

.detail-value--warning {
    color: var(--color-red);
    font-weight: var(--font-weight-bold);
}

/* ========================================
   BADGES FOR BRANCHES
   ======================================== */
.badge {
    display: inline-block;
    padding: var(--spacing-1) var(--spacing-3);
    border-radius: 20px;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-bold);
    text-align: center;
}

.badge--scouts {
    background-color: #e3f2fd;
    color: #1565c0;
    border: 1px solid #1565c0;
}

.badge--guides {
    background-color: #f3e5f5;
    color: #6a1b9a;
    border: 1px solid #6a1b9a;
}

.badge--louveteaux {
    background-color: #fff3e0;
    color: #e65100;
    border: 1px solid #e65100;
}

.badge--louvettes {
    background-color: #fce4ec;
    color: #c2185b;
    border: 1px solid #c2185b;
}

.badge--famille {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #2e7d32;
}

/* ========================================
   MODAL FOOTER
   ======================================== */
.details-footer {
    padding: var(--spacing-4);
    border-top: 1px solid #e0e0e0;
    background-color: #f5f5f5;
    display: flex;
    justify-content: flex-end;
    gap: var(--spacing-3);
}

.details-footer .btn {
    min-width: 100px;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablet (768px and up) */
@media (min-width: 768px) {
    .details-section {
        padding: var(--spacing-6);
    }

    .detail-row {
        display: grid;
        grid-template-columns: 200px 1fr;
        gap: var(--spacing-4);
        align-items: center;
    }

    .detail-label {
        font-size: var(--font-size-sm);
    }

    .detail-value {
        font-size: var(--font-size-base);
    }
}

/* Desktop (1024px and up) */
@media (min-width: 1024px) {
    .modal__body.details-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: var(--spacing-8);
        max-height: 80vh;
    }

    .detail-row {
        grid-template-columns: 180px 1fr;
    }
}

/* ========================================
   SCROLLBAR STYLING
   ======================================== */
.modal__body.details-grid::-webkit-scrollbar {
    width: 8px;
}

.modal__body.details-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.modal__body.details-grid::-webkit-scrollbar-thumb {
    background: #cccccc;
    border-radius: 4px;
}

.modal__body.details-grid::-webkit-scrollbar-thumb:hover {
    background: #999999;
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

/* Focus visible for keyboard navigation */
.modal--details:focus {
    outline: 2px solid var(--color-green);
    outline-offset: 2px;
}

.details-footer .btn:focus-visible {
    outline: 2px solid var(--color-green);
    outline-offset: 2px;
}

/* Dark mode disabled - force light mode */
/* Note: Dark mode support removed to ensure readability */
