/* Variables */
:root {
    --transition-base: all 0.3s ease;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --transition: transform 0.2s ease, box-shadow 0.2s ease;
    --hover-shadow: 0 6px 20px rgba(0,0,0,0.08);
    --card-bg: rgba(255,255,255,0.8);
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    --gradient-hover: linear-gradient(90deg, var(--primary), var(--primary-light));
}

/* Event Detail Container */
.event-detail-container {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--spacing-xl);
    margin: var(--spacing-xl) 0;
    max-width: 1200px;
    margin: 1rem auto;
    background: rgba(255,255,255,0.98);
    box-shadow: var(--shadow-lg);
    border-radius: 1rem;
    backdrop-filter: blur(12px) saturate(1.2);
    -webkit-backdrop-filter: blur(12px) saturate(1.2);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
}

/* Event Header */
.event-header {
    margin-bottom: var(--spacing-xl);
    text-align: center;
    margin-bottom: 1.5rem;
}

.event-badge-container {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.event-badge, .status-badge {
    padding: 0.35rem 0.75rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0,95,163,0.2);
}

.event-badge {
    background: var(--gradient-primary);
    color: white;
}

.event-badge:hover, .status-badge:hover {
    box-shadow: var(--hover-shadow);
}

.event-badge i, .status-badge i {
    font-size: var(--text-sm);
}

/* Status badges */
.status-badge {
    color: white;
}

.status-badge.upcoming { 
    background: #059669;
}

.status-badge.ongoing { 
    background: #2563eb;
}

.status-badge.completed { 
    background: #6b7280;
}

.event-detail-title {
    font-size: var(--text-4xl);
    font-weight: 700;
    margin: 0.75rem 0;
    background: var(--gradient-hover);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.2;
}

.event-subtitle {
    font-size: var(--text-lg);
    color: var(--text-light);
    margin: 0 auto 0.75rem;
    line-height: 1.5;
    max-width: 800px;
}

/* Event Meta */
.event-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.75rem;
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(255,255,255,0.5);
    border-radius: 0.75rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.meta-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.5rem;
    background: var(--card-bg);
    border-radius: 0.5rem;
    transition: var(--transition);
}

.meta-item:hover {
    box-shadow: var(--hover-shadow);
}

.meta-item i {
    color: var(--primary);
    font-size: 1.25rem;
    margin-top: 0.25rem;
}

.meta-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.meta-label {
    font-size: var(--text-xs);
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Event Content */
.event-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.event-main {
    display: contents;
}

.event-description {
    padding: 1rem;
    background: rgba(255,255,255,0.5);
    border-radius: 0.75rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: var(--transition);
    line-height: 1.6;
    color: var(--text-dark);
}

.event-description h2 {
    font-size: var(--text-2xl);
    margin-bottom: 1rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.event-description h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--gradient-hover);
    border-radius: 4px;
}

.event-description h2 i {
    color: var(--primary);
    font-size: var(--text-xl);
}

.event-description p {
    color: #4b5563;
    line-height: 1.6;
}

/* Event Sidebar */
.event-sidebar {
    position: static;
    margin-top: 0;
}

.sidebar-section {
    background: rgba(255,255,255,0.5);
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.sidebar-section:hover {
    box-shadow: var(--hover-shadow);
}

.sidebar-section h3 {
    font-size: var(--text-lg);
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.sidebar-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--gradient-hover);
    border-radius: 3px;
}

.sidebar-section h3 i {
    color: var(--primary);
    font-size: var(--text-xl);
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: var(--card-bg);
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.detail-label {
    font-weight: 600;
    color: var(--text-dark);
    min-width: 100px;
}

/* Event Actions */
.event-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.event-actions .cta-btn {
    width: 100%;
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition);
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: var(--text-base);
    box-sizing: border-box;
}

.event-actions .cta-btn.prominent {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(0,95,163,0.3);
}

.event-actions .cta-btn.prominent:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,95,163,0.4);
}

.event-actions .cta-btn.secondary {
    background: var(--card-bg);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    box-sizing: border-box;
}

.event-actions .cta-btn.secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.event-actions .cta-btn.ongoing {
    background: linear-gradient(135deg, #FFC107, #FFA000);
    color: white;
}

.event-actions .cta-btn.completed {
    background: linear-gradient(135deg, #9E9E9E, #757575);
    color: white;
    cursor: not-allowed;
    opacity: 0.8;
}

.event-actions .share-items {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.event-actions .share-items div {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: var(--transition);
}
.event-actions .share-items div:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

/* Event Sections */
.event-sections {
    grid-column: 1 / -1;
    width: 100%;
}

.event-section {
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(255,255,255,0.5);
    border-radius: 0.75rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.event-section h2 {
    font-size: var(--text-xl);
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.event-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--gradient-hover);
    border-radius: 3px;
}

.event-section h2 i {
    color: var(--primary);
    font-size: var(--text-lg);
}

/* Lists */
.objectives-list,
.audience-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.objectives-list li,
.audience-list li {
    padding: 0.75rem 1rem;
    background: var(--card-bg);
    border-radius: 0.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: var(--text-base);
    line-height: 1.4;
    color: var(--text-dark);
    transition: var(--transition);
    margin-bottom: 0.5rem;
}

.objectives-list li i,
.audience-list li i {
    color: var(--primary);
    font-size: var(--text-base);
    margin-top: 0.25rem;
}

.objectives-list li:hover,
.audience-list li:hover {
    box-shadow: var(--hover-shadow);
    background: rgba(255,255,255,0.95);
}

/* Timeline */
.sessions-timeline {
    position: relative;
    padding-left: 1.5rem;
    margin: 0;
}

.sessions-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gradient-primary);
    border-radius: 3px;
}

.session-item {
    position: relative;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: 0.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
    width: 100%;
    box-sizing: border-box;
}

.session-item:hover {
    box-shadow: var(--hover-shadow);
    transform: translateX(5px);
}

.session-item:last-child {
    margin-bottom: 0;
}

.session-item::before {
    content: '';
    position: absolute;
    left: -2.25rem;
    top: 1.5rem;
    width: 1rem;
    height: 1rem;
    background: var(--primary);
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 0 2px var(--primary-light);
}

.session-item.upcoming::before {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 2px var(--primary-light);
    }
    50% {
        transform: scale(1.2);
        box-shadow: 0 0 0 4px rgba(0,95,163,0.3);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 2px var(--primary-light);
    }
}

.session-time, .session-type, .session-level, .session-room {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    background: rgba(0,95,163,0.1);
    border-radius: 2rem;
    font-weight: 600;
    color: var(--primary);
    font-size: var(--text-sm);
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.session-time {
    margin-bottom: 0.75rem;
    display: block;
}

.session-content {
    margin-top: 0.75rem;
    width: 100%;
}

.session-content h3 {
    font-size: var(--text-lg);
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    word-break: break-word;
}

.session-content p {
    font-size: var(--text-sm);
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.session-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.session-speaker {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: rgba(255,255,255,0.5);
    border-radius: 0.5rem;
    border-left: 3px solid var(--primary);
}

.speaker-avatar-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0,95,163,0.3);
    border: 2px solid rgba(255,255,255,0.1);
}

.speaker-info-small {
    flex: 1;
    min-width: 0;
}

.speaker-name-small {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.speaker-title-small {
    font-size: var(--text-sm);
    color: var(--text-light);
}

.session-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.session-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    background: rgba(0,95,163,0.1);
    border-radius: 2rem;
    font-weight: 600;
    color: var(--primary);
    font-size: var(--text-sm);
    transition: all 0.3s ease;
}

.session-tag:hover {
    background: rgba(0,95,163,0.15);
}

.session-tag i {
    font-size: var(--text-xs);
}

.session-video {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--gradient-primary);
    color: white;
    border-radius: 0.5rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    margin-top: 0.75rem;
    box-shadow: 0 4px 15px rgba(0,95,163,0.3);
}

.session-video:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,95,163,0.4);
}

.session-video i {
    font-size: var(--text-lg);
}

/* Speakers List */
.speakers-list {
    display: block;
    margin-top: 1.5rem;
    width: 100%;
}

.speaker-card {
    background: var(--card-bg);
    padding: 1rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
    margin-bottom: 1rem;
}

.speaker-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-hover);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.speaker-card:hover {
    box-shadow: var(--hover-shadow);
    border-color: rgba(0,95,163,0.2);
}

.speaker-card:hover::before {
    opacity: 1;
}

.speaker-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.speaker-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0,95,163,0.3);
    border: 2px solid rgba(255,255,255,0.1);
    transition: transform 0.3s ease;
}

.speaker-info {
    flex: 1;
    min-width: 0;
}

.speaker-name {
    font-size: var(--text-xl);
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.speaker-name::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gradient-hover);
    opacity: 0.3;
}

.speaker-title {
    color: var(--text-light);
    margin-bottom: 0.35rem;
    font-size: var(--text-base);
    font-weight: 500;
}

.speaker-org {
    color: var(--primary);
    font-weight: 600;
    font-size: var(--text-sm);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.speaker-bio {
    font-size: var(--text-base);
    line-height: 1.5;
    color: var(--text-light);
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: rgba(255,255,255,0.5);
    border-radius: 0.5rem;
    border-left: 3px solid var(--primary);
}

.speaker-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.topic-tag {
    padding: 0.35rem 0.75rem;
    border-radius: 2rem;
    background: rgba(255,255,255,0.5);
    font-size: var(--text-sm);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.topic-tag:hover {
    background: rgba(0,95,163,0.1);
    border-color: rgba(0,95,163,0.2);
}

/* Error state */
.error-message {
    text-align: center;
    padding: 3rem;
    background: var(--card-bg);
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.error-message h2 {
    font-size: var(--text-3xl);
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.error-message p {
    font-size: var(--text-lg);
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 1.5rem;
    color: var(--text-light);
    font-style: italic;
    background: rgba(255,255,255,0.5);
    border-radius: 0.5rem;
    border: 1px dashed var(--border-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 2rem 1rem;
}

.gallery-grid .gallery-item {
    position: relative;
    overflow: hidden;
    max-width: 50%;
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    background: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-grid .gallery-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.gallery-grid .gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    border-top-left-radius: 0.75rem;
    border-top-right-radius: 0.75rem;
}

.gallery-grid .gallery-caption {
    padding: 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #333;
    background-color: #fafafa;
    border-bottom-left-radius: 0.75rem;
    border-bottom-right-radius: 0.75rem;
    font-family: system-ui, sans-serif;
    text-align: left;
}

@media (max-width: 480px) {
    .gallery-item {
        max-width: 100%;
    }
    .gallery-caption {
        font-size: 0.85rem;
        padding: 0.75rem;
    }
    .gallery-item img {
        height: 180px;
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .event-detail-container { margin: 1rem; }
}

@media (max-width: 1024px) {
    .event-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .event-sidebar { margin-top: 1.5rem; }
}

@media (max-width: 768px) {
    .event-detail-container {
        margin: 0.75rem;
        padding: 1rem;
    }
    .event-detail-title { font-size: var(--text-3xl); }
    .event-meta { grid-template-columns: 1fr; }
    .event-section { padding: 1rem; }
    .sessions-timeline {
        padding-left: 1.25rem;
    }
    .session-item::before {
        left: -1.5rem;
    }
    .session-time {
        padding: 0.25rem 1rem;
        font-size: var(--text-sm);
    }
    .session-type, .session-level, .session-room {
        font-size: var(--text-sm);
        padding: 0.25rem 0.5rem;
    }
    .session-content h3 {
        font-size: var(--text-base);
    }
    .event-description h2 { font-size: var(--text-xl); }
    .sidebar-section h3 { font-size: var(--text-base); }
    .event-section h2 { font-size: var(--text-lg); }
    .session-content h3 { font-size: var(--text-base); }
    .speaker-name { font-size: var(--text-lg); }
    .speaker-title { font-size: var(--text-sm); }
    .speaker-org { font-size: var(--text-xs); }
    .speaker-bio { font-size: var(--text-sm); }
    .topic-tag { font-size: var(--text-xs); }
    .event-actions .cta-btn { font-size: var(--text-sm); }
    .session-item {
        padding: 0.75rem;
    }
    .session-content h3 {
        font-size: var(--text-base);
    }
    .speaker-avatar-small {
        width: 35px;
        height: 35px;
        font-size: 0.875rem;
    }
    .speaker-name-small {
        font-size: var(--text-sm);
    }
    .speaker-title-small {
        font-size: var(--text-xs);
    }
    .session-tag {
        font-size: var(--text-xs);
        padding: 0.25rem 0.5rem;
    }
    .session-video {
        font-size: var(--text-sm);
        padding: 0.4rem 0.75rem;
    }
}

@media (max-width: 480px) {
    .event-detail-container {
        margin: 0.5rem;
        padding: 0.75rem;
    }
    .event-detail-title { font-size: var(--text-2xl); }
    .event-subtitle { font-size: var(--text-sm); }
    .event-section { padding: 0.75rem; }
    .speaker-card { padding: 1rem; }
    .speaker-avatar {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    .event-description h2 { font-size: var(--text-lg); }
    .sidebar-section h3 { font-size: var(--text-sm); }
    .event-section h2 { font-size: var(--text-base); }
    .session-content h3 { font-size: var(--text-sm); }
    .speaker-name { font-size: var(--text-base); }
    .speaker-title { font-size: var(--text-xs); }
    .speaker-org { font-size: var(--text-xs); }
    .speaker-bio { font-size: var(--text-xs); }
    .topic-tag { font-size: var(--text-xs); }
    .event-actions .cta-btn { font-size: var(--text-xs); }
    .session-item {
        padding: 0.75rem;
    }
    .session-content h3 {
        font-size: var(--text-base);
    }
    .speaker-avatar-small {
        width: 30px;
        height: 30px;
        font-size: 0.75rem;
    }
    .session-speaker {
        padding: 0.5rem;
    }
    .session-tag {
        font-size: var(--text-xs);
        padding: 0.2rem 0.4rem;
    }
    .session-video {
        font-size: var(--text-xs);
        padding: 0.35rem 0.6rem;
    }
}
