/* Agenda Page Styles */

/* Hero and header styles */
.hero {
    text-align: center;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.logo-badge {
    max-width: 600px;
    margin: 0 auto;
}

.logo-badge img {
    width: 100%;
    height: auto;
}

.breadcrumb {
    margin-bottom: 1.5rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    color: #000;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #ddd;
}

.back-link:hover {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.page-header h1 {
    color: #000 !important;
    margin-bottom: 0.5rem;
}

.lead {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Summit info */
.summit-info {
    text-align: center;
    padding: 1rem;
    background: #2F4E9D;
    color: white;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.summit-dates {
    margin: 0;
    font-weight: 500;
    font-size: 1.1rem;
    color: white;
}

/* Day navigation */
.day-navigation {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    overflow-x: auto;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.day-nav-link {
    flex: 1;
    min-width: 120px;
    padding: 1rem;
    text-align: center;
    text-decoration: none;
    color: #333;
    border-radius: 8px;
    transition: all 0.3s;
    border: 2px solid #e5e5e5;
    background: white;
}

.day-nav-link:hover {
    background: #f5f5f5;
    border-color: #2F4E9D;
}

.day-nav-link.active {
    background: #2F4E9D;
    color: white;
    border-color: #2F4E9D;
}

.day-nav-link strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.day-nav-link small {
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Day sections */
.day-section {
    margin-bottom: 3rem;
}

.day-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--form-element-border-color);
}

.day-header h2 {
    color: #2F4E9D;
    margin-bottom: 0.5rem;
}

.day-date {
    color: #666;
    font-size: 1.1rem;
    margin: 0;
}

.day-location {
    color: #666;
    margin-top: 0.5rem;
}

/* Events list */
.events-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Event cards */
.event-card {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--card-background-color);
    border-radius: 12px;
    border-left: 4px solid var(--primary);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

.event-card:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Event type colors */
.event-session {
    border-left-color: #3b82f6;
}

.event-presentation {
    border-left-color: #8b5cf6;
}

.event-roundtable {
    border-left-color: #06b6d4;
}

.event-activity {
    border-left-color: #10b981;
}

.event-dinner {
    border-left-color: #f59e0b;
}

.event-meal {
    border-left-color: #f97316;
}

.event-transport {
    border-left-color: #6b7280;
}

.event-break {
    border-left-color: #a78bfa;
}

/* Event time */
.event-time {
    flex-shrink: 0;
    min-width: 100px;
}

.event-time .time {
    font-weight: 600;
    color: #2F4E9D;
    font-size: 1rem;
}

/* Event content */
.event-content {
    flex: 1;
}

.event-content header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.event-icon {
    font-size: 1.5rem;
}

.event-content h3 {
    margin: 0;
    color: #333;
    font-size: 1.2rem;
}

.event-content h3 a.event-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.event-content h3 a.event-link:hover {
    color: #2F4E9D;
    text-decoration: underline;
}

.event-card.has-groups {
    cursor: pointer;
}

.event-card.has-groups:after {
    content: "👥";
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.2rem;
    opacity: 0.6;
}

.event-location {
    color: #666;
    margin: 0.5rem 0;
    font-size: 0.95rem;
}

.event-description {
    color: #444;
    margin: 0.75rem 0;
    line-height: 1.6;
}

/* Speakers */
.event-speakers {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--form-element-border-color);
}

.event-speakers strong {
    display: block;
    margin-bottom: 0.5rem;
    color: #2F4E9D;
}

.event-speakers ul {
    margin: 0;
    padding-left: 1.5rem;
}

.event-speakers li {
    margin: 0.25rem 0;
    color: #555;
}

/* Round tables */
.roundtables-container {
    margin-top: 1rem;
    display: grid;
    gap: 1rem;
}

.roundtable-item {
    padding: 1rem;
    background: var(--secondary-background);
    border-radius: 8px;
    border-left: 3px solid var(--primary);
}

.roundtable-item h4 {
    margin: 0 0 0.5rem 0;
    color: #333;
    font-size: 1rem;
}

.roundtable-speakers {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .your-group-badge {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .view-group-link {
        width: 100%;
        text-align: center;
        padding: 0.6rem;
    }
    
    .day-navigation {
        padding: 0.75rem;
        gap: 0.5rem;
    }
    
    .day-nav-link {
        min-width: 100px;
        padding: 0.75rem 0.5rem;
    }
    
    .day-nav-link strong {
        font-size: 1rem;
    }
    
    .day-nav-link small {
        font-size: 0.8rem;
    }
    
    .event-card {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem;
    }
    
    .event-time {
        min-width: auto;
        border-bottom: 1px solid var(--form-element-border-color);
        padding-bottom: 0.5rem;
    }
    
    .event-content h3 {
        font-size: 1.1rem;
    }
}

/* Loading state */
.loading {
    text-align: center;
    padding: 3rem;
    color: #666;
}

/* Error state */
.error {
    text-align: center;
    padding: 2rem;
    color: var(--error);
    background: var(--error-background);
    border-radius: 8px;
}

/* User group assignments */
.user-group-assignment {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e5e5;
}

.your-group-badge {
    background: linear-gradient(135deg, #CBD500 0%, #E9467D 100%);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.95rem;
    box-shadow: 0 2px 6px rgba(233, 70, 125, 0.15);
}

.your-group-badge strong {
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
}

.view-group-link {
    color: white;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
}

.view-group-link:hover {
    background: rgba(255, 255, 255, 0.3);
    text-decoration: none;
}

/* Dark mode adjustments */
@media (prefers-color-scheme: dark) {
    .event-card {
        background: var(--card-background-color);
    }
    
    .day-navigation {
        background: var(--card-background-color);
    }
    
    .roundtable-item {
        background: rgba(255,255,255,0.05);
    }
    
    .page-header h1 {
        color: #000 !important;
    }
}