/* ========================================
   Page-specific Styles
   ======================================== */

/* Single Event */
.hem-event-hero {
    height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
}
.hem-event-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.3));
    display: flex;
    align-items: flex-end;
    padding-bottom: var(--hem-space-8);
    color: var(--hem-white);
}
.hem-event-hero__title {
    color: var(--hem-white);
    font-size: var(--hem-text-4xl);
    margin: var(--hem-space-4) 0 var(--hem-space-2);
}
.hem-event-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--hem-space-6);
    font-size: var(--hem-text-sm);
    opacity: 0.9;
}
.hem-event-meta__item {
    display: inline-flex;
    align-items: center;
    gap: var(--hem-space-2);
}
.hem-event-meta__item svg {
    flex-shrink: 0;
}

.hem-event-header {
    padding: var(--hem-space-16) 0 var(--hem-space-8);
    color: var(--hem-white);
}
.hem-event-header h1 {
    color: var(--hem-white);
    font-size: var(--hem-text-4xl);
    margin: var(--hem-space-4) 0 var(--hem-space-2);
}

.hem-event-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: var(--hem-space-8);
    margin-top: var(--hem-space-8);
}
.hem-event-layout__sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--hem-space-6);
}
.hem-event-sidebar-card {
    position: sticky;
    top: calc(var(--hem-header-height) + var(--hem-space-4));
}

.hem-event-section {
    margin-top: var(--hem-space-8);
}
.hem-event-section h2 {
    margin-bottom: var(--hem-space-4);
}

/* Detail list */
.hem-detail-list {
    margin: 0;
}
.hem-detail-list dt {
    font-size: var(--hem-text-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--hem-gray-500);
    margin-top: var(--hem-space-3);
}
.hem-detail-list dd {
    margin: var(--hem-space-1) 0 0;
    font-weight: 500;
}

/* Status badges */
.hem-status-badge {
    display: inline-block;
    padding: var(--hem-space-1) var(--hem-space-3);
    border-radius: var(--hem-radius-full);
    font-size: var(--hem-text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.hem-status-badge--draft { background: var(--hem-gray-100); color: var(--hem-gray-600); }
.hem-status-badge--upcoming { background: #dbeafe; color: #1e40af; }
.hem-status-badge--live { background: #dcfce7; color: #166534; animation: hem-pulse 2s infinite; }
.hem-status-badge--ended { background: var(--hem-gray-100); color: var(--hem-gray-500); }
.hem-status-badge--cancelled { background: #fee2e2; color: #991b1b; }
.hem-status-badge--confirmed { background: #dcfce7; color: #166534; }
.hem-status-badge--pending { background: #fef3c7; color: #92400e; }

@keyframes hem-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Type badges */
.hem-type-badge {
    display: inline-block;
    padding: var(--hem-space-1) var(--hem-space-3);
    border-radius: var(--hem-radius-full);
    font-size: var(--hem-text-xs);
    font-weight: 600;
}
.hem-type-badge--hybrid { background: #ede9fe; color: #5b21b6; }
.hem-type-badge--online { background: #d1fae5; color: #065f46; }
.hem-type-badge--in-person { background: #ffedd5; color: #9a3412; }

/* Live indicator */
.hem-live-indicator {
    position: absolute;
    top: var(--hem-space-3);
    left: var(--hem-space-3);
    background: #ef4444;
    color: white;
    font-size: var(--hem-text-xs);
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--hem-radius-full);
    animation: hem-pulse 2s infinite;
}

/* Single Session */
.hem-session-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: var(--hem-space-8);
}
.hem-session-player {
    margin-bottom: var(--hem-space-6);
    background: #000;
    border-radius: var(--hem-radius-md);
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hem-gray-400);
}
.hem-session-header h1 {
    margin: var(--hem-space-2) 0;
}
.hem-session-meta {
    display: flex;
    gap: var(--hem-space-4);
    color: var(--hem-gray-500);
    font-size: var(--hem-text-sm);
    margin-bottom: var(--hem-space-4);
}

/* Breadcrumb */
.hem-breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--hem-space-2);
    font-size: var(--hem-text-sm);
    color: var(--hem-gray-500);
    margin-bottom: var(--hem-space-6);
}
.hem-breadcrumb a {
    color: var(--hem-gray-500);
}
.hem-breadcrumb a:hover {
    color: var(--hem-primary);
}

/* Speaker Profile */
.hem-speaker-profile__header {
    display: flex;
    gap: var(--hem-space-8);
    align-items: center;
    margin-bottom: var(--hem-space-8);
}
.hem-speaker-profile__avatar img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
}
.hem-speaker-profile__role {
    font-size: var(--hem-text-lg);
    color: var(--hem-gray-500);
}
.hem-speaker-profile__links {
    display: flex;
    gap: var(--hem-space-4);
    margin-top: var(--hem-space-3);
}
.hem-social-link {
    display: inline-flex;
    align-items: center;
    gap: var(--hem-space-1);
    font-size: var(--hem-text-sm);
    font-weight: 500;
    color: var(--hem-primary);
}

/* Lobby */
.hem-lobby__header {
    background: linear-gradient(135deg, var(--event-color, var(--hem-primary)), var(--hem-secondary));
    color: var(--hem-white);
    padding: var(--hem-space-12) 0;
}
.hem-lobby__header h1 { color: var(--hem-white); }
.hem-lobby__date { opacity: 0.9; }

.hem-lobby__grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--hem-space-8);
    margin-top: var(--hem-space-8);
}
.hem-lobby__nav-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--hem-space-4);
}
.hem-lobby__nav-card {
    text-decoration: none;
    color: inherit;
    transition: transform var(--hem-transition), box-shadow var(--hem-transition);
}
.hem-lobby__nav-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--hem-shadow-lg);
    color: inherit;
}
.hem-lobby__nav-card h3 {
    margin-bottom: var(--hem-space-2);
}

/* Dashboard */
.hem-dashboard__header {
    margin-bottom: var(--hem-space-8);
}
.hem-dashboard__grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--hem-space-8);
}
.hem-registration-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--hem-space-4) 0;
    border-bottom: 1px solid var(--hem-gray-100);
}
.hem-registration-item:last-child {
    border-bottom: none;
}
.hem-registration-item h4 {
    margin: 0;
}
.hem-registration-item time {
    font-size: var(--hem-text-sm);
    color: var(--hem-gray-500);
}
.hem-quick-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.hem-quick-links li {
    padding: var(--hem-space-2) 0;
    border-bottom: 1px solid var(--hem-gray-100);
}
.hem-quick-links li:last-child {
    border-bottom: none;
}

/* Expo */
.hem-expo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--hem-space-6);
}
.hem-expo-booth__logo {
    text-align: center;
    margin-bottom: var(--hem-space-4);
}
.hem-expo-booth__logo img {
    max-height: 80px;
    object-fit: contain;
}

/* Sponsor booth sidebar */
.hem-sponsor-booth {
    text-align: center;
    padding: var(--hem-space-3) 0;
    border-bottom: 1px solid var(--hem-gray-100);
}
.hem-sponsor-booth:last-child {
    border-bottom: none;
}
.hem-sponsor-booth__logo img {
    max-height: 50px;
    max-width: 140px;
    object-fit: contain;
}

/* Feature preview placeholders */
.hem-placeholder-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--hem-space-6);
    margin-top: var(--hem-space-8);
}
.hem-feature-preview {
    padding: var(--hem-space-6);
    background: var(--hem-gray-50);
    border-radius: var(--hem-radius-md);
}

/* Agenda items in theme */
.hem-agenda-list {
    display: flex;
    flex-direction: column;
    gap: var(--hem-space-3);
}
.hem-agenda-item__inner {
    display: flex;
    gap: var(--hem-space-6);
}
.hem-agenda-item__time {
    flex: 0 0 110px;
    font-weight: 600;
    color: var(--hem-gray-700);
    font-size: var(--hem-text-sm);
}
.hem-agenda-item__content h4 {
    margin: 0 0 var(--hem-space-1);
}
.hem-agenda-item__meta {
    display: flex;
    gap: var(--hem-space-3);
    align-items: center;
    margin-bottom: var(--hem-space-2);
}
.hem-meta-item {
    font-size: var(--hem-text-sm);
    color: var(--hem-gray-500);
}

/* Utility */
.hem-text-muted {
    color: var(--hem-gray-500);
}

/* Badge colors for session types */
.hem-badge--keynote { background: #fef3c7; color: #92400e; }
.hem-badge--presentation { background: #dbeafe; color: #1e40af; }
.hem-badge--workshop { background: #d1fae5; color: #065f46; }
.hem-badge--panel { background: #ede9fe; color: #5b21b6; }
.hem-badge--networking { background: #fce7f3; color: #9d174d; }
.hem-badge--break { background: var(--hem-gray-100); color: var(--hem-gray-600); }

/* Speakers/Sponsors grid from theme */
.hem-speakers-grid,
.hem-events-grid {
    display: grid;
    gap: var(--hem-space-6);
}
.hem-grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.hem-grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.hem-grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

.hem-speaker-card__avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
}
.hem-speaker-card__name {
    margin: var(--hem-space-3) 0 0;
}
.hem-speaker-card__title,
.hem-speaker-card__company {
    margin: var(--hem-space-1) 0 0;
    color: var(--hem-gray-500);
    font-size: var(--hem-text-sm);
}

/* Responsive */
@media (max-width: 1024px) {
    .hem-event-layout,
    .hem-session-layout,
    .hem-lobby__grid,
    .hem-dashboard__grid {
        grid-template-columns: 1fr;
    }
    .hem-event-sidebar-card {
        position: static;
    }
}

@media (max-width: 768px) {
    .hem-event-hero { height: 300px; }
    .hem-event-hero__title { font-size: var(--hem-text-2xl); }
    .hem-speaker-profile__header {
        flex-direction: column;
        text-align: center;
    }
    .hem-speaker-profile__links {
        justify-content: center;
    }
    .hem-lobby__nav-cards {
        grid-template-columns: 1fr;
    }
    .hem-expo-grid {
        grid-template-columns: 1fr;
    }
    .hem-placeholder-features {
        grid-template-columns: 1fr;
    }
    .hem-agenda-item__inner {
        flex-direction: column;
        gap: var(--hem-space-2);
    }
    .hem-agenda-item__time {
        flex: none;
    }
    .hem-grid-cols-3 { grid-template-columns: repeat(2, 1fr); }
    .hem-grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .hem-grid-cols-2,
    .hem-grid-cols-3,
    .hem-grid-cols-4 {
        grid-template-columns: 1fr;
    }
}
