/* srtx-conference-frontend.css */
:root {
    --srtx-primary-color: #1a365d;
    --srtx-secondary-color: #2b6cb0;
    --srtx-accent-color: #3182ce;
    --srtx-bg-color: #f7fafc;
    --srtx-text-color: #2d3748;
    --srtx-border-color: #e2e8f0;
    --srtx-font-family: inherit;
    --srtx-border-radius: 8px;
    --srtx-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    --srtx-transition: all 0.2s ease;
    
    /* Tag colors based on screenshot */
    --srtx-color-blue: #3182ce;
    --srtx-color-red: #e53e3e;
    --srtx-color-green: #38a169;
    --srtx-color-orange: #ed8936;
}

.srtx-schedule-container {
    font-family: var(--srtx-font-family);
    color: var(--srtx-text-color);
    background: transparent;
    box-sizing: border-box;
    max-width: 1200px;
    margin: 0 auto;
}

.srtx-schedule-container * {
    box-sizing: border-box;
}

/* Header & Filters */
.srtx-schedule-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.srtx-schedule-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    width: 100%;
    padding: 15px;
    background: #fff;
    border-radius: var(--srtx-border-radius);
    border: 1px solid var(--srtx-border-color);
}

.srtx-filter-select, .srtx-filter-input {
    padding: 8px 12px;
    border: 1px solid var(--srtx-border-color);
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    flex: 1;
    min-width: 150px;
}

.srtx-filter-select:focus, .srtx-filter-input:focus {
    border-color: var(--srtx-accent-color);
}

/* Day Header */
.srtx-day-section {
    margin-bottom: 40px;
}

.srtx-day-header {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--srtx-primary-color);
    text-transform: uppercase;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 2px solid var(--srtx-border-color);
}

/* Day Grid */
.srtx-day-grid {
    display: grid;
    /* First column is time cell (e.g. 100px), rest are groups */
    grid-template-columns: 100px repeat(var(--group-count, 1), 1fr);
    gap: 15px;
    align-items: stretch;
}

/* Group Headers */
.srtx-group-headers {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: inherit;
    gap: inherit;
    margin-bottom: -5px;
}

.srtx-group-header-corner {
    /* Empty space above the time column */
}

.srtx-group-header-item {
    background: #eef2f7;
    color: var(--srtx-primary-color);
    font-weight: bold;
    font-size: 0.85rem;
    padding: 10px 15px;
    border-radius: 6px;
    text-transform: uppercase;
    text-align: center;
}

/* Time Cell */
.srtx-time-cell {
    grid-column: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    color: var(--srtx-primary-color);
    font-size: 0.9rem;
    background: #f7fafc;
    border-radius: 6px;
    padding: 10px;
    text-align: center;
}

/* Event Card */
.srtx-event-card {
    background: #fff;
    border: 1px solid var(--srtx-border-color);
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: var(--srtx-transition);
    display: flex;
    align-items: center;
    gap: 15px;
}

.srtx-event-card.general {
    /* Spans all group columns, skipping the time column */
    grid-column: 2 / -1;
}

.srtx-event-card:hover {
    box-shadow: var(--srtx-shadow);
    border-color: #cbd5e0;
}

.srtx-event-main-logo {
    flex: 0 0 80px; /* Fixed width for logo */
    display: flex;
    justify-content: center;
    align-items: center;
}

.srtx-event-main-logo img {
    max-width: 100%;
    max-height: 60px;
    object-fit: contain;
}

.srtx-event-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.srtx-event-title {
    font-size: 1rem;
    font-weight: 800;
    color: #000;
    margin: 0;
    text-transform: uppercase;
}

.srtx-event-title-wrapper {
    flex: 1;
    margin-bottom: 8px;
}

.srtx-event-lugar {
    font-size: 0.85rem;
    color: #4a5568;
    font-weight: bold;
    margin-top: 4px;
    text-align: left;
    text-transform: uppercase;
}

.srtx-event-desc-snippet {
    font-size: 0.85rem;
    color: #4a5568;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.srtx-event-speaker-line {
    font-size: 0.8rem;
    color: #4a5568;
    font-weight: bold;
    margin-top: auto; /* Push speaker to bottom if card is tall */
    text-transform: uppercase;
}

.srtx-event-companies {
    display: flex;
    gap: 5px;
    margin-top: 8px;
}

.srtx-event-company-logo {
    height: 20px;
    width: auto;
    object-fit: contain;
}

/* Modal */
.srtx-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: var(--srtx-transition);
}

.srtx-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.srtx-modal-content {
    background: #fff;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: var(--srtx-border-radius);
    padding: 30px;
    position: relative;
    transform: translateY(20px);
    transition: var(--srtx-transition);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.srtx-modal-overlay.active .srtx-modal-content {
    transform: translateY(0);
}

.srtx-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.srtx-modal-close:hover {
    color: #000;
}

.srtx-modal-header {
    margin-bottom: 20px;
    border-bottom: 1px solid var(--srtx-border-color);
    padding-bottom: 15px;
}

.srtx-modal-title {
    font-size: 1.5rem;
    color: var(--srtx-primary-color);
    margin: 0 0 10px 0;
}

.srtx-modal-body h4 {
    color: var(--srtx-secondary-color);
    margin-top: 20px;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.srtx-modal-speaker {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    align-items: flex-start;
}

.srtx-modal-speaker-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.srtx-modal-speaker-info h5 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
}

.srtx-modal-speaker-bio {
    font-size: 0.9rem;
    color: #555;
    margin: 0;
}

.srtx-modal-company {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    align-items: center;
}

.srtx-modal-company-logo {
    max-width: 100px;
    max-height: 50px;
    object-fit: contain;
}

/* Responsive */
@media (max-width: 768px) {
    .srtx-day-grid {
        grid-template-columns: 60px repeat(var(--group-count, 1), 1fr);
        gap: 10px;
    }
    .srtx-schedule-header {
        flex-direction: column;
        align-items: stretch;
    }
    .srtx-time-cell {
        padding: 8px 4px;
        font-size: 0.75rem;
    }
    .srtx-event-card {
        padding: 10px;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
    }
    .srtx-event-card.general {
        flex-direction: row;
        text-align: left;
        align-items: flex-start;
    }
    .srtx-event-card.general .srtx-event-lugar {
        text-align: left;
    }
    .srtx-event-main-logo {
        flex: 0 0 auto;
        margin-bottom: 5px;
    }
    .srtx-event-main-logo img {
        max-height: 50px;
    }
    .srtx-event-time {
        font-size: 0.75rem;
    }
    .srtx-event-title {
        font-size: 0.9rem;
    }
    .srtx-group-header-item {
        padding: 8px 4px;
        font-size: 0.7rem;
    }
}
