/* EAFTOS Events Discovery & Detail Pages */

/* ========================================
   EVENT DISCOVERY PAGE
   ======================================== */
.events-page {
    padding-top: 80px;
    min-height: 100vh;
}

/* Sidebar Filters */
.filter-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.filter-sidebar h5 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #1e293b;
}

.filter-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.filter-section:last-child {
    border-bottom: none;
}

.filter-label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.75rem;
    color: #475569;
    font-size: 0.95rem;
}

/* Event Cards Grid */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.event-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
    border-color: #1976d2;
}

.event-card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.event-card-content {
    padding: 1.25rem;
}

.event-industry-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #e3f2fd;
    color: #1976d2;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.event-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #1e293b;
    line-height: 1.4;
}

.event-card-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.event-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    font-size: 0.875rem;
}

.event-meta-item i {
    width: 16px;
    color: #94a3b8;
}

.event-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.event-attendee-count {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: #10b981;
    font-weight: 600;
    font-size: 0.875rem;
}

.bookmark-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 0.375rem;
    transition: all 0.2s ease;
}

.bookmark-btn:hover {
    color: #1976d2;
    transform: scale(1.1);
}

.bookmark-btn.bookmarked {
    color: #fbbf24;
}

/* List View */
.events-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.event-list-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.25rem;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    transition: all 0.2s ease;
}

.event-list-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-color: #1976d2;
}

.event-list-image {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.event-list-content {
    flex: 1;
}

/* View Toggle Buttons */
.view-toggle {
    display: flex;
    gap: 0.5rem;
    background: white;
    padding: 0.375rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.view-toggle-btn {
    padding: 0.5rem 1rem;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #64748b;
    font-weight: 500;
}

.view-toggle-btn.active {
    background: #1976d2;
    color: white;
}

/* ========================================
   EVENT DETAIL PAGE
   ======================================== */
.event-detail-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 0 2rem;
    margin-bottom: 0;
}

.back-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    transition: all 0.2s ease;
}

.back-link:hover {
    color: white;
    gap: 0.5rem;
}

.industry-badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-name {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.95rem;
    opacity: 0.95;
}

.event-meta svg {
    display: inline-block;
    vertical-align: middle;
}

/* Event Detail Content */
.detail-label {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 0.375rem;
}

.detail-value {
    color: #1e293b;
    font-weight: 500;
    font-size: 1rem;
}

.hashtag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.hashtag {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: #e3f2fd;
    color: #1976d2;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Attendee Section */
.attendee-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.25rem;
    transition: all 0.2s ease;
}

.attendee-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-color: #1976d2;
}

.avatar-md {
    width: 56px;
    height: 56px;
    object-fit: cover;
}

.availability-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.topic-tag {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    background: #f1f5f9;
    color: #475569;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-right: 0.375rem;
    margin-bottom: 0.375rem;
}

.topics {
    margin-top: 0.5rem;
}

/* Insights Section */
.insight-item {
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
}

.insight-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.topic-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-top: 0.5rem;
}

.event-header {
    position: relative;
    height: 400px;
    background-size: cover;
    background-position: center;
    background-color: #1e293b;
}

.event-header .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.7));
    display: flex;
    align-items: flex-end;
}

.event-header .container {
    padding-bottom: 2rem;
}

.event-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.event-header .lead {
    font-size: 1.125rem;
    opacity: 0.95;
}

/* Event Sidebar */
.event-sidebar {
    position: sticky;
    top: 100px;
}

.event-info-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.event-info-card h6 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1e293b;
}

.event-info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.event-info-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.event-info-icon {
    color: #1976d2;
    font-size: 1.125rem;
    margin-top: 0.125rem;
}

.event-info-text {
    flex: 1;
}

.event-info-label {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.event-info-value {
    color: #1e293b;
    font-weight: 500;
}

/* People Attending Section */
.attendees-section {
    margin-top: 2rem;
}

.attendee-tier-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e2e8f0;
}

.attendee-tier-icon {
    font-size: 1.5rem;
}

.attendee-tier-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
}

.attendee-tier-count {
    color: #64748b;
    font-size: 1rem;
}

.attendees-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.person-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.2s ease;
}

.person-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    border-color: #1976d2;
}

.person-header {
    display: flex;
    gap: 0.875rem;
    margin-bottom: 1rem;
}

.person-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e2e8f0;
}

.person-info {
    flex: 1;
}

.person-name {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.person-title {
    font-size: 0.875rem;
    color: #64748b;
}

.person-badges {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.person-badge {
    padding: 0.25rem 0.625rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    background: #f1f5f9;
    color: #475569;
}

.person-confidence {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.confidence-score {
    color: #64748b;
}

.evidence-link {
    color: #1976d2;
    text-decoration: none;
    font-weight: 500;
}

.evidence-link:hover {
    text-decoration: underline;
}

.person-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Opt-Out Alert */
.opt-out-alert {
    background: #fef3c7;
    border: 1px solid #fbbf24;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.opt-out-alert-text {
    color: #92400e;
    font-weight: 500;
}

/* Authentication Gate */
.auth-gate {
    background: linear-gradient(to bottom, transparent, white);
    padding: 4rem 2rem 2rem;
    margin-top: -3rem;
    text-align: center;
    border-radius: 12px;
}

.auth-gate h4 {
    margin-bottom: 1rem;
    color: #1e293b;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 768px) {
    .events-grid {
        grid-template-columns: 1fr;
    }
    
    .event-header h1 {
        font-size: 1.75rem;
    }
    
    .event-sidebar {
        position: static;
    }
    
    .attendees-grid {
        grid-template-columns: 1fr;
    }
    
    .event-list-item {
        flex-direction: column;
    }
    
    .event-list-image {
        width: 100%;
        height: 150px;
    }
}

