/* ===== Frontend Theme CSS ===== */
/* --primary and --accent are injected by the PHP layout from the event's theme_color / accent_color.
   Do NOT redeclare them here — any :root block in this file loads after the inline <style>
   and would override the per-event values. */

/* ─── Base ─── */
body { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; color: var(--text, inherit); }
h1, h2, h3, h4, h5, h6 { color: var(--heading, inherit); }

/* ─── Buttons ─── */
.btn-accent {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--btn-text, white);
}
.btn-accent:hover { background: color-mix(in srgb, var(--accent) 85%, black); border-color: color-mix(in srgb, var(--accent) 85%, black); color: var(--btn-text, white); }
.btn-accent-outline { color: var(--accent); border-color: var(--accent); }
.btn-accent-outline:hover { background: var(--accent); color: white; }

/* ─── Navigation ─── */
.event-navbar {
    background: var(--nav-bg, linear-gradient(135deg, var(--primary) 0%, color-mix(in srgb, var(--primary) 80%, black) 100%));
    transition: all 0.3s ease;
    padding: 12px 0;
}
.event-navbar .navbar-brand { font-weight: 800; font-size: 1.2rem; }
.event-navbar .nav-link { font-weight: 500; font-size: 0.9rem; color: rgba(255,255,255,0.85) !important; }
.event-navbar .nav-link:hover,
.event-navbar .nav-link.active { color: white !important; }
.event-navbar.scrolled { background: var(--nav-bg, var(--primary)) !important; box-shadow: 0 4px 20px rgba(0,0,0,0.2); }

/* ─── Hero ─── */
.event-hero { min-height: 500px; position: relative; }
.hero-slide {
    min-height: 500px;
    background-size: cover;
    background-position: center;
}
.hero-overlay {
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--primary) 80%, transparent),
        color-mix(in srgb, var(--accent)  50%, transparent));
    min-height: 500px;
    display: flex;
    align-items: center;
}
.hero-content { padding: 60px 0; }

/* ─── Event Info Bar ─── */
.event-info-bar .smaller { font-size: 0.7rem; }

/* ─── Section Titles ─── */
.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--heading, var(--primary));
    position: relative;
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* ─── Important Dates ─── */
.date-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: white;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border-left: 4px solid var(--primary);
    transition: transform 0.2s;
}
.date-card:hover { transform: translateY(-2px); }
.date-past { border-left-color: #6c757d; opacity: 0.7; }
.date-upcoming { border-left-color: var(--accent); }
.date-icon { color: var(--primary); font-size: 1.2rem; min-width: 24px; }
.date-title { font-weight: 600; font-size: 0.9rem; }
.date-value { color: var(--accent); font-weight: 700; font-size: 1rem; }
.date-badge { margin-left: auto; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; color: #6c757d; }
.date-badge.upcoming { color: var(--accent); }

/* ─── Registration Cards ─── */
.reg-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
    border: 2px solid transparent;
}
.reg-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.reg-card-body { padding: 24px; }
.reg-price { font-size: 2rem; font-weight: 800; color: var(--primary); }

/* Registration Selection Cards */
.reg-card-select {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border: 2px solid #e8ecf0;
    cursor: pointer;
    transition: all 0.25s;
    display: flex;
    flex-direction: column;
}
.reg-card-select:hover { border-color: var(--primary); box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.reg-card-select.selected {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 15%, transparent);
    background: color-mix(in srgb, var(--accent) 3%, white);
}
.reg-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 4px;
    font-size: 0.82rem;
    color: #444;
    flex: 1;
}
.reg-features-list li {
    padding: 3px 0;
    display: flex;
    align-items: flex-start;
    gap: 4px;
    line-height: 1.4;
}
.reg-features-list li .fa-check-circle {
    color: var(--primary);
    margin-top: 2px;
    flex-shrink: 0;
}

/* ─── Speaker Cards ─── */
.speaker-card { padding: 12px; }
.speaker-photo {
    width: 80px; height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
}
.speaker-avatar {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex; align-items: center; justify-content: center;
    color: white;
    margin: 0 auto;
}
.speaker-detail-card {
    background: white;
    border-radius: 16px;
    padding: 24px 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: transform 0.2s;
}
.speaker-detail-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,0.12); }
.speaker-photo-lg {
    width: 120px; height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary);
}
.speaker-avatar-lg {
    width: 120px; height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex; align-items: center; justify-content: center;
    color: white;
    margin: 0 auto;
}

/* ─── Testimonials ─── */
.testimonial-card {
    background: white;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    position: relative;
}
.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 16px; left: 24px;
    font-size: 4rem; line-height: 1;
    color: var(--primary);
    opacity: 0.15;
    font-family: serif;
}
.stars { color: #ffc107; font-size: 1rem; }

/* ─── Schedule ─── */
.schedule-day-header .badge { font-size: 1rem; }
.schedule-time .fw-bold { font-size: 1rem; }

/* ─── Partner Cards ─── */
.partner-card { transition: transform 0.2s; }
.partner-card:hover { transform: scale(1.05); }

/* ─── Gallery ─── */
.gallery-item { transition: transform 0.2s; cursor: pointer; }
.gallery-item:hover { transform: scale(1.02); }

/* ─── Registration Steps ─── */
.registration-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}
.step-item { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.step-circle {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: #dee2e6;
    color: #666;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s;
}
.step-item.active .step-circle { background: var(--primary); color: white; }
.step-label { font-size: 0.78rem; color: #666; font-weight: 500; }
.step-item.active .step-label { color: var(--primary); font-weight: 700; }
.step-divider { width: 80px; height: 2px; background: #dee2e6; margin-bottom: 20px; }

/* ─── Footer ─── */
.event-footer {
    background: var(--footer-bg, linear-gradient(180deg, #1a1a2e 0%, #0d0d1a 100%));
    color: white;
    padding: 50px 0 30px;
}
.event-footer .text-muted { color: rgba(255,255,255,0.5) !important; }
.footer-link { color: rgba(255,255,255,0.7); text-decoration: none; display: block; margin-bottom: 6px; font-size: 0.9rem; }
.footer-link:hover { color: white; }

/* ─── Countdown Timer ─── */
.countdown-section { border-top: 1px solid rgba(255,255,255,0.15); }
.letter-spacing-1 { letter-spacing: 1px; }
.countdown-timer { align-items: flex-end; }
.countdown-unit { text-align: center; min-width: 60px; }
.countdown-num {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1;
    color: white;
    background: rgba(255,255,255,0.15);
    border-radius: 10px;
    padding: 8px 14px;
    display: block;
    margin-bottom: 4px;
    min-width: 70px;
    text-align: center;
}
.countdown-label { font-size: 0.7rem; opacity: 0.75; text-transform: uppercase; letter-spacing: 1px; }
.countdown-sep { font-size: 2rem; font-weight: 900; color: white; opacity: 0.5; padding-bottom: 20px; }

/* ─── Stats Strip ─── */
.stat-item { padding: 8px; }
.stat-icon { font-size: 1.5rem; color: var(--primary); opacity: 0.8; margin-bottom: 6px; display: block; }
.stat-num { font-size: 2rem; font-weight: 800; color: var(--primary); line-height: 1; }
.stat-label { font-size: 0.8rem; color: #6c757d; font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; margin-top: 2px; }

/* ─── Early Bird Badge ─── */
.early-bird-badge {
    display: inline-block;
    font-size: 0.72rem;
    color: #198754;
    background: #d1e7dd;
    border-radius: 20px;
    padding: 2px 10px;
    font-weight: 600;
}

/* ─── Filter Tabs ─── */
.btn-filter {
    padding: 6px 18px;
    border-radius: 20px;
    border: 2px solid var(--primary);
    color: var(--primary);
    background: white;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
}
.btn-filter:hover { background: color-mix(in srgb, var(--primary) 10%, white); }
.btn-filter.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

/* ─── Misc ─── */
.hover-shadow:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.12) !important; transition: box-shadow 0.2s; }
.rich-content img { max-width: 100%; height: auto; border-radius: 8px; }
.rich-content h1, .rich-content h2, .rich-content h3 { color: var(--primary); margin-top: 1.5rem; }
.rich-content ul, .rich-content ol { padding-left: 1.5rem; }
.rich-content p { line-height: 1.8; }
.page-header { padding: 60px 0; }
.text-accent { color: var(--accent); }
.speaker-bio { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

@media (max-width: 768px) {
    .event-hero, .hero-slide, .hero-overlay { min-height: 320px; }
    .section-title { font-size: 1.6rem; }
    .registration-steps .step-divider { width: 40px; }
    .countdown-num { font-size: 1.8rem; min-width: 54px; padding: 6px 10px; }
    .countdown-sep { font-size: 1.5rem; }
    .stat-num { font-size: 1.6rem; }
}

/* ─── Event Type Badges ─────────────────────────────────────────── */
/* Base */
.et-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 50px;
    padding: 4px 12px;
    white-space: nowrap;
    line-height: 1;
}

/* Dark context – glass pill for gradient/dark headers */
.et-badge-dark {
    background: rgba(255,255,255,0.18);
    border: 1.5px solid rgba(255,255,255,0.45);
    color: #fff;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* Light context – solid colored pill for white/light backgrounds */
.et-badge-light.et-conference { background: #e8eaf6; color: #1a237e; border: 1.5px solid #c5cae9; }
.et-badge-light.et-virtual    { background: #e1f5fe; color: #0277bd; border: 1.5px solid #b3e5fc; }
.et-badge-light.et-webinar    { background: #fff3e0; color: #e65100; border: 1.5px solid #ffe0b2; }

/* Card context – vivid colored pill for event listing cards */
.et-badge-card.et-conference { background: #1a237e; color: #fff; }
.et-badge-card.et-virtual    { background: #0288d1; color: #fff; }
.et-badge-card.et-webinar    { background: #e65100; color: #fff; }

/* Hover animation */
.et-badge { transition: transform 0.15s ease, box-shadow 0.15s ease; }
.et-badge:hover { transform: translateY(-1px); box-shadow: 0 3px 10px rgba(0,0,0,0.15); }
