/**
 * Modal Event Details Styling
 * Compact and beautiful modal layout for event details
 */

/* Modal body layout - takes full height */
.modal-body--event {
    padding: 0;
    overflow: hidden;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0; /* Allow flex child to shrink */
}

/* Scrollable content container - grows to fill available space */
.modal-scrollable-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 1rem;
    margin: 0;
    box-sizing: border-box;
    min-height: 0; /* Allow flex child to shrink */
}

/* Main content wrapper */
.modal-event-details {
    padding: 1rem 0;
    width: 100%;
    box-sizing: border-box;
}

/* Event info section */
.event-info {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
    width: 100%;
    box-sizing: border-box;
}

/* Two-column layout for event info */
.event-info-two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.event-info-column {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.event-info-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.5rem;
    align-items: start;
}

.event-info-label {
    font-weight: 600;
    color: #475569;
    white-space: nowrap;
}

.event-info-value {
    color: #1e293b;
    word-wrap: break-word;
    overflow-wrap: break-word;
    min-width: 0; /* Allow text to shrink */
}

/* Responsive: stack columns on small screens */
@media (max-width: 480px) {
    .event-info-two-column {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}

/* Description section */
.event-description {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    width: 100%;
    box-sizing: border-box;
}

.event-description h3 {
    margin: 0 0 0.75rem 0;
    color: #1e293b;
    font-size: 1rem;
    font-weight: 600;
}

.event-description p {
    margin: 0;
    color: #475569;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Participants section */
.event-participants {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    width: 100%;
    box-sizing: border-box;
}

.event-participants h3 {
    margin: 0 0 1rem 0;
    color: #1e293b;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.participants-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.participant {
    background: #f8fafc;
    border-radius: 6px;
    padding: 0.75rem;
    border-left: 3px solid var(--color-primary);
    width: 100%;
    box-sizing: border-box;
}

.participant-name {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.participant-bio {
    color: #64748b;
    line-height: 1.4;
    font-size: 0.85rem;
    white-space: pre-line;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Fixed footer - always at the bottom */
.modal-footer {
    flex-shrink: 0; /* Don't shrink */
    border-top: 1px solid #e2e8f0;
    padding: 1rem;
    margin: 0;
    display: flex;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    margin-top: auto; /* Push to bottom if content is short */
}

.modal-favorite-btn {
    min-width: 180px;
    justify-content: center;
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
    box-sizing: border-box;
}

.modal-favorite-btn .btn__icon {
    font-size: 1.1rem;
}

/* Ensure modal content uses full height */
.modal-content {
    display: flex;
    flex-direction: column;
}

.modal-body {
    flex: 1;
    min-height: 0;
    overflow: hidden;
}
