/* Full-page background + layout */
.events-page {
    min-height: 100vh;
    padding: 3rem 1.5rem 4rem;
    background: radial-gradient(circle at top left, #1e66da 0, #020617 55%, #020617 100%);
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    color: #e5e7eb;
    overflow-x: hidden;
}

/* Constrain inner content */
.events-hero,
.events-grid {
    max-width: 1120px;
    margin: 0 auto;
}

/* Hero section */
.events-hero {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
}

.events-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(248, 250, 252, 0.3);
    background: radial-gradient(circle at top left, rgba(59,130,246,0.55), rgba(15,23,42,0.95));
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #e5e7eb;
    margin-bottom: 0.8rem;
}

.events-hero-title {
    font-size: 2.3rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #f9fafb;
    margin-bottom: 0.5rem;
}

.events-hero-subtitle {
    font-size: 0.98rem;
    color: #9ca3af;
    max-width: 540px;
    margin: 0 auto;
}

/* Grid */
.events-grid {
    margin-top: 1rem;
}

/* Entrance animation for cards */
@keyframes eventFadeUp {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.97);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.events-grid .col-md-4 {
    animation: eventFadeUp 0.6s ease-out both;
}

.events-grid .col-md-4:nth-child(1) { animation-delay: 0.05s; }
.events-grid .col-md-4:nth-child(2) { animation-delay: 0.12s; }
.events-grid .col-md-4:nth-child(3) { animation-delay: 0.2s; }
.events-grid .col-md-4:nth-child(4) { animation-delay: 0.28s; }
.events-grid .col-md-4:nth-child(5) { animation-delay: 0.36s; }
.events-grid .col-md-4:nth-child(6) { animation-delay: 0.44s; }

/* Card styling */
.futuristic-card {
    position: relative;
    border-radius: 1.3rem;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: radial-gradient(circle at top left, rgba(30,64,175,0.9), rgba(15,23,42,0.98));
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.8);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    backdrop-filter: blur(12px);
    cursor: pointer;
}

/* Glow edge on hover */
.futuristic-card::before {
    content: "";
    position: absolute;
    inset: -40%;
    background: conic-gradient(
        from 210deg,
        rgba(96,165,250,0.35),
        rgba(236,72,153,0.4),
        rgba(34,197,94,0.35),
        rgba(96,165,250,0.35)
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.futuristic-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.95);
    border-color: rgba(191, 219, 254, 0.8);
}

.futuristic-card:hover::before {
    opacity: 0.85;
}

/* Media area */
.event-card-media {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(15,23,42,0.9);
}

.event-card-media img {
    display: block;
    width: 100%;
    height: 210px;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform 0.6s ease;
}

/* Slight image zoom on hover */
.futuristic-card:hover .event-card-media img {
    transform: scale(1.08);
}

/* Gradient overlay at bottom of the image */
.event-card-gradient {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 40%;
    background: linear-gradient(to top, rgba(15,23,42,0.9), transparent);
    pointer-events: none;
}

/* Date tag on image */
.event-card-tag {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
}

.event-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.7rem;
    font-size: 0.75rem;
    border-radius: 999px;
    background: rgba(15,23,42,0.85);
    border: 1px solid rgba(209,213,219,0.4);
    color: #e5e7eb;
}

/* Card body */
.event-card-body {
    padding: 1.15rem 1.3rem 1.2rem;
}

.event-card-body .card-title {
    color: #f9fafb;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.event-location {
    font-size: 0.9rem;
    color: #9ca3af;
}

.event-location i {
    font-size: 0.9rem;
    margin-right: 0.25rem;
}

/* Tickets badges */
.event-ticket-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.ticket-badge-available,
.ticket-badge-soldout {
    border-radius: 999px;
    font-size: 0.72rem;
    padding: 0.2rem 0.6rem;
    border: 1px solid transparent;
}

.ticket-badge-available {
    background: radial-gradient(circle at top left, #10b981, #065f46);
    border-color: rgba(34,197,94,0.85);
    color: #ecfdf5;
}

.ticket-badge-soldout {
    background: radial-gradient(circle at top left, #b91c1c, #450a0a);
    border-color: rgba(248,113,113,0.9);
    color: #fee2e2;
}

/* Primary button */
.event-btn-primary {
    border-radius: 999px;
    padding: 0.45rem 1.2rem;
    font-size: 0.85rem;
    border: none;
    background: linear-gradient(135deg, #6366f1, #ec4899);
    color: #f9fafb;
    box-shadow: 0 0 16px rgba(129,140,248,0.7);
    transition: transform 0.18s ease, box-shadow 0.2s ease, filter 0.18s ease;
}

.event-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 24px rgba(129,140,248,0.95);
    filter: brightness(1.05);
    color: #f9fafb;
}

/* Small animated status dot on card footer */
@keyframes pulseDot {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(52,211,153,0.6);
    }
    70% {
        transform: scale(1.15);
        box-shadow: 0 0 0 10px rgba(52,211,153,0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(52,211,153,0);
    }
}

.event-card-pulse-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 12px rgba(34,197,94,0.95);
    animation: pulseDot 2.8s ease-out infinite;
}

/* Empty state */
.no-events-copy {
    margin-top: 3rem;
    color: #9ca3af;
}

/* Responsive tweaks */
@media (max-width: 767.98px) {
    .events-page {
        padding-top: 5.5rem;
        padding-bottom: 3rem;
    }

    .event-card-media img {
        height: 190px;
    }

    .futuristic-card {
        border-radius: 1.1rem;
    }
}

/* ========== FILTER BAR (Compact Modern UI) ========== */

.filter-bar {
    background: rgba(255,255,255,0.65);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0,0,0,0.06);
    padding: 1rem 1.4rem;
    border-radius: 16px;
    margin: 1.5rem auto 2rem;
    max-width: 1200px;
}

/* Darker text for Ticket Type labels */
.filter-bar .form-check-inline .form-check-label {
    color: #1f2937 !important; /* darker gray (Tailwind gray-800) */
    font-weight: 500;
}

.filter-bar .form-label {
    font-size: 0.82rem;
    color: #4b5563;
    margin-bottom: 0.25rem;
}

.filter-bar .form-select,
.filter-bar .form-control {
    padding: 0.35rem 0.6rem;
    font-size: 0.85rem;
    border-radius: 10px;
}

.filter-bar .form-check-label {
    font-size: 0.82rem;
}

.filter-bar .form-check-input {
    width: 0.9rem;
    height: 0.9rem;
}

.filter-bar .btn {
    font-size: 0.85rem;
    border-radius: 10px;
    padding: 0.45rem 1rem;
}

/* Make entire filter bar feel tighter */
.filter-bar .row {
    row-gap: 0.6rem !important;
}

@media (max-width: 768px) {
    .filter-bar {
        padding: 1rem;
        border-radius: 12px;
    }
}

.event-card-status-cancelled {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.92);
  color: #fef2f2;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.event-card-cancelled {
  opacity: 0.9;
}

.ticket-badge-cancelled {
  background: rgba(248, 113, 113, 0.08);
  color: #b91c1c;
  border: 1px solid rgba(248, 113, 113, 0.4);
  font-weight: 600;
}

