/* =============================================
   EventHub - Custom Stylesheet
   ============================================= */

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #f59e0b;
    --dark: #0f172a;
    --surface: #1e293b;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
}

/* ---- Base ---- */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #f8fafc;
    color: #1e293b;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main { flex: 1; }

/* ---- Admin body (no public nav) ---- */
body.admin-body {
    background: #f1f5f9;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
body.admin-body .admin-layout {
    flex: 1;
    min-height: 100vh;
}

/* ---- Navbar ---- */
#mainNavbar {
    background: #0b1120 !important;
    border-bottom: 2px solid rgba(99,102,241,.4);
    box-shadow: 0 2px 20px rgba(0,0,0,.4);
    z-index: 1040;
    min-height: 64px;
}

#mainNavbar .navbar-brand { color: white !important; font-size: 1.4rem; }
#mainNavbar .nav-link { color: rgba(255,255,255,.75) !important; font-weight: 500; padding: .5rem .85rem; border-radius: 6px; transition: all .2s; }
#mainNavbar .nav-link:hover { color: white !important; background: rgba(255,255,255,.1); }

.avatar-xs {
    width: 30px; height: 30px; border-radius: 50%;
    background: var(--primary); color: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700; flex-shrink: 0;
}

.avatar-sm {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--primary); color: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700; flex-shrink: 0;
}

.notif-dropdown { max-height: 400px; overflow-y: auto; }

/* ---- Hero ---- */
.hero-section {
    min-height: 580px;
    background: linear-gradient(160deg, #1e1b4b 0%, #312e81 40%, #4338ca 75%, #6d28d9 100%);
    position: relative;
    display: flex;
    align-items: center;
    padding: 80px 0 60px;
}

.hero-overlay {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(99,102,241,.2) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(139,92,246,.2) 0%, transparent 50%);
    pointer-events: none;
}
.hero-section::after {
    content: '';
    position: absolute; bottom: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,.1);
    color: #fbbf24;
    font-size: .8rem;
    font-weight: 600;
    padding: .25rem 1rem;
    border-radius: 50px;
    border: 1px solid rgba(251,191,36,.3);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    line-height: 1.2;
    letter-spacing: -.02em;
}

.hero-subtitle { color: rgba(255,255,255,.7); font-size: 1.2rem; }

.hero-search { border-radius: 14px; overflow: hidden; }
.hero-search .form-control, .hero-search .form-select { height: 58px; font-size: 1rem; }
.hero-search .btn { height: 58px; }
.hero-search-form { max-width: 750px; margin: 2rem auto 0; }

.hero-type-pill {
    display: inline-flex; align-items: center;
    background: rgba(255,255,255,.12);
    color: rgba(255,255,255,.9);
    border: 1px solid rgba(255,255,255,.2);
    padding: .3rem .85rem;
    border-radius: 50px;
    font-size: .82rem;
    font-weight: 500;
    text-decoration: none;
    transition: all .2s;
    backdrop-filter: blur(4px);
}
.hero-type-pill:hover {
    background: rgba(255,255,255,.22);
    color: white;
    border-color: rgba(255,255,255,.4);
    transform: translateY(-1px);
}

/* ---- Stats Bar ---- */
.stat-item { padding: 1rem .5rem; }
.stat-number { font-size: 1.8rem; font-weight: 800; color: var(--primary); }
.stat-label { font-size: .8rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); font-weight: 600; }

/* ---- Section Headings ---- */
.section-tag {
    display: inline-block;
    background: rgba(99,102,241,.1);
    color: var(--primary);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: .2rem .75rem;
    border-radius: 50px;
}
.section-title { font-size: 1.8rem; font-weight: 800; color: var(--dark); }

/* ---- Event Cards ---- */
.event-card {
    border-radius: 14px !important;
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
}
.event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,.12) !important;
}

.event-card-img-wrapper { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.event-card-img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.event-card:hover .event-card-img { transform: scale(1.05); }

.event-card-img-placeholder {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, #ddd6fe, #e0e7ff);
    display: flex; align-items: center; justify-content: center;
    font-size: 3rem; color: var(--primary);
}

.event-card-badge { position: absolute; top: 10px; left: 10px; }
.event-card-featured {
    position: absolute; top: 10px; right: 10px;
    background: #fbbf24; color: #1e293b;
    font-size: .7rem; font-weight: 700;
    padding: .2rem .6rem; border-radius: 50px;
}

.event-meta { display: flex; flex-direction: column; gap: 2px; }
.event-meta-item { display: flex; align-items: center; gap: 4px; color: #64748b; }
.event-meta-item i { flex-shrink: 0; }

/* ---- Category Cards ---- */
.category-card {
    border-radius: 14px !important;
    transition: transform .2s, box-shadow .2s;
    cursor: pointer;
}
.category-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,.1) !important; }
.category-icon {
    width: 64px; height: 64px; border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto;
}

/* ---- Organizer CTA ---- */
.organizer-cta {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    position: relative;
    overflow: hidden;
}
.organizer-cta::before {
    content: '';
    position: absolute; top: -50%; right: -50%;
    width: 100%; height: 200%;
    background: rgba(255,255,255,.04);
    border-radius: 50%;
}

/* ---- Admin / Organizer Layout ---- */
.admin-layout {
    display: flex;
    flex: 1;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    flex-shrink: 0;
    background: var(--dark);
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1rem;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-brand { padding: .5rem .75rem 1.5rem; border-bottom: 1px solid rgba(255,255,255,.05); margin-bottom: 1rem; }
.sidebar-section { margin-bottom: 1.5rem; }
.sidebar-label { font-size: .65rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,.35); padding: 0 .75rem .5rem; }
.sidebar-link {
    display: flex; align-items: center; gap: .75rem;
    color: rgba(255,255,255,.6) !important;
    text-decoration: none; font-size: .9rem; font-weight: 500;
    padding: .6rem .75rem; border-radius: 8px;
    transition: all .2s; margin-bottom: 2px;
}
.sidebar-link i { font-size: 1.1rem; }
.sidebar-link:hover { color: white !important; background: rgba(255,255,255,.08); }
.sidebar-link.active { color: white !important; background: var(--primary); }
.sidebar-link.text-danger-emphasis { color: rgba(248,113,113,.8) !important; }
.sidebar-link.text-danger-emphasis:hover { color: #f87171 !important; background: rgba(248,113,113,.1); }

.admin-content { flex: 1; overflow-x: hidden; }

/* ---- Stat Cards ---- */
.stat-card .stat-label { font-size: .8rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: .25rem; }
.stat-card .stat-number { font-size: 2rem; font-weight: 800; color: var(--dark); line-height: 1; }
.stat-card .stat-sub { margin-top: .25rem; }
.stat-icon {
    width: 52px; height: 52px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; flex-shrink: 0;
}

/* ---- Multi-step form ---- */
.multi-step-item { display: flex; align-items: center; gap: .5rem; }
.multi-step-item .step-num {
    width: 36px; height: 36px; border-radius: 50%;
    background: #e2e8f0; color: #64748b;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: .9rem; transition: all .3s;
}
.multi-step-item.active .step-num { background: var(--primary); color: white; }
.multi-step-item span { font-size: .85rem; font-weight: 600; color: var(--text-muted); }
.multi-step-item.active span { color: var(--primary); }
.step-connector { flex: 1; height: 2px; background: #e2e8f0; max-width: 80px; }

/* ---- Step indicator for register ---- */
.step-indicator { display: flex; align-items: center; }
.step-circle {
    width: 32px; height: 32px; border-radius: 50%;
    background: #e2e8f0; color: #64748b;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: .85rem;
}
.step-indicator.active .step-circle { background: var(--primary); color: white; }
.step-line { height: 2px; background: #e2e8f0; }

/* ---- Role Cards ---- */
.role-card { border-color: #e2e8f0 !important; cursor: pointer; transition: all .2s; }
.role-card:hover, .role-card.selected { border-color: var(--primary) !important; background: rgba(99,102,241,.04); }

/* ---- OTP Input ---- */
.otp-input { border-radius: 10px !important; font-size: 1.5rem !important; border: 2px solid #e2e8f0 !important; }
.otp-input:focus { border-color: var(--primary) !important; box-shadow: 0 0 0 3px rgba(99,102,241,.15) !important; }

/* ---- Event Hero ---- */
.event-hero { position: relative; min-height: 380px; overflow: hidden; }
.event-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.event-hero-bg-placeholder { position: absolute; inset: 0; background: linear-gradient(135deg, #1e293b, #312e81); }
.event-hero-overlay {
    position: relative;
    background: linear-gradient(to top, rgba(0,0,0,.9) 0%, rgba(0,0,0,.5) 50%, rgba(0,0,0,.2) 100%);
    min-height: 380px; display: flex; align-items: flex-end;
}
.event-hero-meta { display: flex; flex-wrap: wrap; gap: .75rem; color: rgba(255,255,255,.8); font-size: .9rem; }

/* ---- Booking Sidebar ---- */
.booking-sidebar { border-radius: 14px !important; }

/* ---- Ticket Cards ---- */
.tier-card { border-radius: 12px !important; }
.ticket-mini-card { border-radius: 12px !important; transition: transform .2s, box-shadow .2s; }
.ticket-mini-card:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,.1) !important; }
.ticket-mini-header { background: linear-gradient(135deg, #f8fafc, #f1f5f9); }
.qr-mini-container { width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; }
.qr-mini-container canvas { max-width: 100%; max-height: 100%; }

/* ---- QR Containers ---- */
.qr-container canvas, .qr-large canvas { max-width: 100%; }
.qr-large { width: 150px; height: 150px; display: flex; align-items: center; justify-content: center; }

/* ---- Scanner ---- */
.scanner-placeholder { text-align: center; padding: 3rem 2rem; border: 2px dashed #e2e8f0; border-radius: 12px; }
.scanner-container #reader { border-radius: 12px; overflow: hidden; }

/* ---- Maps placeholder ---- */
.map-placeholder {
    height: 200px; background: #f1f5f9;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
}

/* ---- Star Rating ---- */
.star-rating { display: flex; flex-direction: row-reverse; gap: 4px; }
.star-rating input { display: none; }
.star-rating label { cursor: pointer; color: #cbd5e1; font-size: 1.5rem; }
.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label { color: #fbbf24; }

/* ---- Prose ---- */
.prose { line-height: 1.8; color: #475569; font-size: 1rem; }
.prose p { margin-bottom: 1rem; }

/* ---- Review Cards ---- */
.review-card { border-radius: 12px !important; }

/* ---- Footer ---- */
.footer a { transition: color .2s; }
.footer a:hover { color: white !important; }

/* ---- Pagination ---- */
.page-link { border-radius: 8px !important; margin: 0 2px; border: none; color: var(--primary); }
.page-item.active .page-link { background: var(--primary); }

/* ---- Badges override ---- */
.badge { font-weight: 600; }

/* ---- Hover BG ---- */
.hover-bg { transition: background .15s; }
.hover-bg:hover { background: #f1f5f9; }

/* ---- Custom Scrollbar ---- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ---- Loading Spinner ---- */
.spinner-overlay {
    position: fixed; inset: 0;
    background: rgba(255,255,255,.8);
    display: flex; align-items: center; justify-content: center;
    z-index: 9999;
}

/* ---- Letter Spacing ---- */
.letter-spacing-2 { letter-spacing: .25rem; }

/* ---- Navbar brand emphasis ---- */
#mainNavbar .navbar-brand {
    letter-spacing: -.5px;
    font-size: 1.35rem !important;
}

/* ---- Page header accent ---- */
.page-header {
    background: linear-gradient(135deg, var(--dark), var(--surface));
    color: white;
    padding: 2.5rem 0 2rem;
}

/* ---- Card hover ---- */
.card { border-radius: 12px !important; }

/* ---- Stat card numbers ---- */
.stat-card { border-radius: 14px !important; }
.stat-card .card-body { padding: 1.25rem; }

/* ---- Table improvements ---- */
.table th { font-size: .75rem; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--text-muted); }
.table td { vertical-align: middle; }

/* ---- Form controls ---- */
.form-control, .form-select {
    border-color: #e2e8f0;
    border-radius: 8px !important;
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99,102,241,.15);
}
.form-label { font-weight: 600; font-size: .875rem; color: #374151; }

/* ---- Buttons ---- */
.btn { border-radius: 8px !important; font-weight: 500; }
.btn-primary { background: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }

/* ---- Badge sizes ---- */
.badge { font-size: .72rem; padding: .3em .6em; }

/* ---- Alert improvements ---- */
.alert { border-radius: 10px !important; border: none; }

/* ---- Event type filters active ---- */
.type-filter-btn.active { background: var(--primary) !important; color: white !important; border-color: var(--primary) !important; }

/* ---- Organizer/Attendee page wrappers (non-sidebar pages) ---- */
.page-content { max-width: 1200px; margin: 0 auto; padding: 2rem 1.5rem; }

/* ---- Ticket stub ---- */
.ticket-stub {
    border-radius: 16px !important;
    overflow: hidden;
    border: 2px solid #e2e8f0;
}
.ticket-stub .ticket-left {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 2rem;
}
.ticket-stub .ticket-right {
    background: white;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-left: 3px dashed #e2e8f0;
}
.ticket-stub .ticket-code {
    font-family: monospace;
    font-size: .8rem;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-top: 1rem;
}

/* ---- Browse sidebar ---- */
.filter-sidebar {
    background: white;
    border-radius: 14px;
    padding: 1.5rem;
    border: 1px solid var(--border);
}

/* ---- Empty states ---- */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}
.empty-state i { font-size: 3.5rem; opacity: .3; display: block; margin-bottom: 1rem; }
.empty-state h5 { color: #64748b; }

/* ---- Responsive ---- */
@media (max-width: 991.98px) {
    .admin-sidebar {
        position: fixed;
        left: -260px;
        top: 0;
        height: 100vh;
        transition: left .3s;
        z-index: 1045;
    }
    .admin-sidebar.open { left: 0; }
    .admin-content { width: 100%; }
    .hero-title { font-size: 2.2rem; }
    .admin-layout { min-height: auto; }
}

@media (max-width: 767.98px) {
    .hero-title { font-size: 1.8rem; }
    .hero-search .btn { padding: .5rem 1rem; }
    .hero-search .form-select { display: none; }
    .stat-number { font-size: 1.5rem; }
}

@media print {
    .navbar, .footer, .btn, .breadcrumb, .pagination { display: none !important; }
    body { background: white; }
    .card { box-shadow: none !important; border: 1px solid #dee2e6 !important; }
}

/* ============================================
   Footer — Complete Design
   ============================================ */

.site-footer {
    background: #0f0c29;
    color: #cbd5e1;
    position: relative;
    margin-top: auto;
}

/* Wave SVG separator */
.footer-wave {
    line-height: 0;
    overflow: hidden;
    background: #f8fafc; /* matches page bg above */
}
body.admin-body + .site-footer .footer-wave,
.footer-wave { background: #f8fafc; }
.footer-wave svg { display: block; width: 100%; height: 60px; }

/* Main body padding */
.footer-body {
    padding: 3.5rem 0 2rem;
    background: linear-gradient(135deg, #0f0c29 0%, #1a1040 50%, #0d1b2a 100%);
}

/* Brand */
.footer-logo-icon {
    width: 42px; height: 42px;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; color: white;
    box-shadow: 0 4px 14px rgba(99,102,241,.4);
}
.footer-logo-text {
    font-size: 1.3rem;
    font-weight: 800;
    color: white;
    letter-spacing: -.3px;
}
.footer-tagline {
    font-size: .85rem;
    color: #94a3b8;
    line-height: 1.65;
    max-width: 320px;
}

/* App badges */
.footer-app-badge {
    display: inline-flex;
    align-items: center;
    padding: .45rem .9rem;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 8px;
    color: white;
    text-decoration: none;
    font-size: .8rem;
    font-weight: 600;
    background: rgba(255,255,255,.06);
    backdrop-filter: blur(8px);
    transition: all .2s;
}
.footer-app-badge:hover {
    background: rgba(99,102,241,.25);
    border-color: rgba(99,102,241,.5);
    color: white;
    transform: translateY(-2px);
}
.footer-app-badge i { font-size: 1.2rem; }

/* Social */
.footer-socials { display: flex; gap: .5rem; flex-wrap: wrap; }
.footer-social-btn {
    width: 38px; height: 38px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.15);
    display: flex; align-items: center; justify-content: center;
    color: #94a3b8;
    font-size: 1rem;
    text-decoration: none;
    background: rgba(255,255,255,.05);
    transition: all .25s;
}
.footer-social-btn:hover {
    background: linear-gradient(135deg, #6366f1, #a855f7);
    border-color: transparent;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(99,102,241,.4);
}

/* Section headings */
.footer-heading {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: #f1f5f9;
    margin-bottom: 1.1rem;
    padding-bottom: .5rem;
    border-bottom: 2px solid rgba(99,102,241,.35);
    display: inline-block;
}

/* Links */
.footer-links {
    list-style: none;
    padding: 0; margin: 0;
}
.footer-links li { margin-bottom: .55rem; }
.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: .845rem;
    transition: all .2s;
    display: inline-flex;
    align-items: center;
    gap: .3rem;
}
.footer-links a::before {
    content: '';
    width: 0; height: 2px;
    background: linear-gradient(90deg, #6366f1, #a855f7);
    border-radius: 2px;
    transition: width .2s;
    display: inline-block;
}
.footer-links a:hover {
    color: #e2e8f0;
    padding-left: 4px;
}
.footer-links a:hover::before { width: 10px; }

/* Contact list */
.footer-contact-list {
    list-style: none;
    padding: 0; margin: 0;
}
.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    margin-bottom: .85rem;
    font-size: .835rem;
    color: #94a3b8;
    line-height: 1.5;
}
.footer-contact-list li i {
    color: #6366f1;
    margin-top: .15rem;
    flex-shrink: 0;
    font-size: .95rem;
}
.footer-contact-list a {
    color: #94a3b8;
    text-decoration: none;
    transition: color .2s;
}
.footer-contact-list a:hover { color: #c7d2fe; }

/* Newsletter */
.footer-newsletter-label {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #a5b4fc;
    margin-bottom: .55rem;
}
.footer-newsletter-form {
    display: flex;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(99,102,241,.35);
    background: rgba(255,255,255,.05);
}
.footer-newsletter-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: .5rem .75rem;
    color: white;
    font-size: .82rem;
}
.footer-newsletter-input::placeholder { color: #64748b; }
.footer-newsletter-btn {
    background: linear-gradient(135deg, #6366f1, #a855f7);
    border: none;
    color: white;
    padding: .5rem .85rem;
    cursor: pointer;
    font-size: .9rem;
    transition: opacity .2s;
}
.footer-newsletter-btn:hover { opacity: .85; }

/* Payments bar */
.footer-payments {
    margin-top: 2.5rem;
    padding: 1.1rem 1.5rem;
    border-radius: 12px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.footer-payments-label {
    font-size: .75rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .8px;
    white-space: nowrap;
}
.footer-payment-badges { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.footer-payment-badge {
    display: inline-flex;
    align-items: center;
    padding: .3rem .75rem;
    border-radius: 6px;
    font-size: .75rem;
    font-weight: 600;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    color: #cbd5e1;
}
.footer-payment-badge--secure {
    background: rgba(16,185,129,.15);
    border-color: rgba(16,185,129,.3);
    color: #34d399;
}

/* Bottom bar */
.footer-bottom {
    background: rgba(0,0,0,.35);
    border-top: 1px solid rgba(255,255,255,.07);
    padding: .9rem 0;
    font-size: .8rem;
    color: #64748b;
}
.footer-bottom p { color: #64748b; }

/* Override wave bg when body is dark (event detail pages etc.) */
.dark-page .footer-wave { background: #0f172a; }

/* ============================================
   Media Gallery & Upload UI
   ============================================ */

/* --- Upload drop zones --- */
.media-drop-zone {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 2rem 1rem;
    text-align: center;
    cursor: pointer;
    background: #f8fafc;
    transition: all .2s;
    user-select: none;
}
.media-drop-zone:hover,
.media-drop-zone.dragging {
    border-color: #6366f1;
    background: #eef2ff;
    color: #4f46e5;
}
.media-drop-zone.dragging { transform: scale(1.01); }

/* --- File preview thumbnails --- */
.media-preview-row {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
}
.media-thumb {
    position: relative;
    width: 90px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #e2e8f0;
    background: #f1f5f9;
    flex-shrink: 0;
}
.media-thumb img,
.media-thumb video {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.media-thumb-label {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: rgba(0,0,0,.55);
    color: white;
    font-size: 9px;
    padding: 2px 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.media-thumb--video .media-thumb-play {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%,-55%);
    color: white;
    font-size: 1.6rem;
    text-shadow: 0 2px 8px rgba(0,0,0,.6);
    pointer-events: none;
}

/* --- Gallery grid (detail page) --- */
.media-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: .75rem;
}
.media-gallery-item {
    position: relative;
    display: block;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: #f1f5f9;
    text-decoration: none;
    cursor: zoom-in;
}
.media-gallery-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s;
}
.media-gallery-item:hover img { transform: scale(1.05); }
.media-gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15,23,42,.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .25s;
    color: white;
    font-size: 1.6rem;
}
.media-gallery-item:hover .media-gallery-overlay { opacity: 1; }

/* Lightbox overlay (pure CSS + JS) */
#mediaLightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,.92);
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
#mediaLightbox.open { display: flex; }
#mediaLightbox img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,.6);
    object-fit: contain;
}
#mediaLightbox .lb-close {
    position: absolute;
    top: 1.2rem; right: 1.5rem;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    opacity: .8;
    transition: opacity .2s;
}
#mediaLightbox .lb-close:hover { opacity: 1; }
#mediaLightbox .lb-nav {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    opacity: .7;
    transition: opacity .2s;
    padding: 0 1rem;
    user-select: none;
}
#mediaLightbox .lb-nav:hover { opacity: 1; }
#mediaLightbox .lb-prev { left: 0; }
#mediaLightbox .lb-next { right: 0; }
#mediaLightbox .lb-counter {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,.6);
    font-size: .85rem;
}
