/**
 * Event Agenda Block Frontend Styles
 * Uses the custom Bootstrap Grid system from bootstrap-grid.css
 */

/* Base Agenda Block Styles */
.event-agenda-block {
    margin: 2rem 0;
}

.event-agenda-block.agenda-mode-structured {
    /* Structured agenda styles */
}

.event-agenda-block.agenda-mode-custom {
    /* Custom agenda styles */
}

/* Grid Container - Uses Bootstrap Grid classes */
/* No overrides needed - uses default Bootstrap Grid styling */

/* Agenda Days - Bootstrap Grid Responsive */
.agenda-day {
    margin-bottom: 0;
}

/* Side-by-side layout uses Bootstrap Grid col-md-6 or col-lg-4 classes */
.day-layout-side-by-side_2 .agenda-day {
    margin-bottom: 1.5rem;
    padding-right: 1rem;
    padding-left: 1rem;
}

.day-layout-side-by-side_3 .agenda-day {
    margin-bottom: 1.5rem;
    padding-right: 1rem;
    padding-left: 1rem;
}

/* For stacked layout, add spacing between days */
.day-layout-stacked .agenda-day {
    margin-bottom: 3rem;
}

.day-layout-stacked .agenda-day:last-child {
    margin-bottom: 0;
}

.day-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5e5e5;
}

/* Ensure consistent spacing in side-by-side modes even with empty descriptions */
.day-layout-side-by-side_2 .day-header,
.day-layout-side-by-side_3 .day-header {
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.day-title {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: #333;
}

.day-description {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 1rem;
    color: #666;
    margin: 0;
    font-style: italic;
}

/* Agenda Items - Table Layout (with time column) */
.agenda-table .agenda-item {
    display: flex;
    margin-bottom: 1.5rem;
    align-items: flex-start;
    gap: 2rem;
}

.agenda-table .item-time {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    flex: 0 0 150px;
    font-weight: 600;
    color: #0066cc;
    font-size: 0.95rem;
    padding-top: 0.25rem;
}

.agenda-table .item-content {
    flex: 1;
}

.agenda-table .item-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.agenda-table .item-title {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.agenda-table .item-speaker {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

.agenda-table .item-description {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* Agenda Items - List Layout (inline time) */
.agenda-list .agenda-item {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #0066cc;
}

.agenda-list .item-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.agenda-list .item-time {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-weight: 600;
    color: #0066cc;
    font-size: 0.95rem;
}

.agenda-list .item-title {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.agenda-list .item-speaker {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

.agenda-list .item-description {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* Compact Layout */
.event-agenda-block.compact-layout .agenda-day {
    margin-bottom: 2rem;
}

.event-agenda-block.compact-layout .day-header {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
}

.event-agenda-block.compact-layout .day-title {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.event-agenda-block.compact-layout .agenda-table .agenda-item {
    margin-bottom: 1rem;
}

.event-agenda-block.compact-layout .agenda-list .agenda-item {
    margin-bottom: 1rem;
    padding: 0.75rem;
}

/* Custom Agenda Styles */
.agenda-custom {
    /* Allow full rich text editor styling */
}

/* Custom Agenda Columns */
.custom-agenda-column {
    margin-bottom: 0;
}

.custom-layout-side-by-side_2 .custom-agenda-column {
    margin-bottom: 2rem;
    padding-right: 1rem;
    padding-left: 1rem;
}

.custom-layout-side-by-side_3 .custom-agenda-column {
    margin-bottom: 2rem;
    padding-right: 1rem;
    padding-left: 1rem;
}

.custom-layout-stacked .custom-agenda-column {
    margin-bottom: 3rem;
}

.custom-layout-stacked .custom-agenda-column:last-child {
    margin-bottom: 0;
}

.column-wrapper {
    height: 100%;
}

.column-title {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 1.5rem 0;
    color: #333;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #0066cc;
}

.column-content {
    line-height: 1.6;
}

.column-content.empty {
    padding: 2rem;
    text-align: center;
    background: #f8f9fa;
    border-radius: 6px;
    color: #999;
}

.column-content.empty p {
    margin: 0;
    font-size: 0.95rem;
    font-style: italic;
}

.agenda-custom h1,
.agenda-custom h2,
.agenda-custom h3,
.agenda-custom h4,
.agenda-custom h5,
.agenda-custom h6 {
    color: #333;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

.agenda-custom h1 { font-size: 2rem; }
.agenda-custom h2 { font-size: 1.75rem; }
.agenda-custom h3 { font-size: 1.5rem; }
.agenda-custom h4 { font-size: 1.25rem; }
.agenda-custom h5 { font-size: 1.1rem; }
.agenda-custom h6 { font-size: 1rem; }

.agenda-custom p {
    line-height: 1.6;
    margin-bottom: 1rem;
}

.agenda-custom ul,
.agenda-custom ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.agenda-custom li {
    margin-bottom: 0.5rem;
}

.agenda-custom table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.agenda-custom th,
.agenda-custom td {
    border: 1px solid #ddd;
    padding: 0.75rem;
    text-align: left;
}

.agenda-custom th {
    background-color: #f8f9fa;
    font-weight: 600;
}

/* Empty State */
.agenda-empty {
    text-align: center;
    padding: 3rem 2rem;
    background: #f8f9fa;
    border: 2px dashed #ddd;
    border-radius: 8px;
    color: #666;
}

.agenda-empty p {
    margin: 0;
    font-size: 1.1rem;
}

/* Responsive Design - Mobile First */
@media (max-width: 767px) {
    /* On mobile, items stack vertically */
    .agenda-table .agenda-item {
        flex-direction: column;
        gap: 0.75rem;
    }

    .agenda-table .item-time {
        flex: none;
        margin-bottom: 0.5rem;
    }

    .agenda-table .item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .agenda-list .item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .day-title {
        font-size: 1.25rem;
    }
}

@media (max-width: 575px) {
    .event-agenda-block {
        margin: 1rem 0;
    }

    .agenda-day {
        margin-bottom: 2rem;
    }

    .agenda-table .agenda-item,
    .agenda-list .agenda-item {
        padding: 0.75rem;
    }
}
