/* =====================================================
   EVENTS PAGE — LIGHT THEME  ·  Creative Cards (no icons)
   Primary:  #21409a  |  Accent: #ed952b
   ===================================================== */


/* =====================================================
   HERO
   ===================================================== */
/* ── Hero ── */
.page-hero {
  padding: 160px 0 90px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;

  /* Background image + gradients */
  background-image:
    url('../images/08.jpg'), /* your banner image */
    radial-gradient(at 0% 0%, rgb(255, 94, 0) 0%, transparent 60%),
    radial-gradient(at 100% 0%, #7042f4 0%, transparent 50%),
    radial-gradient(at 100% 100%, #e6398b 0%, transparent 60%),
    radial-gradient(at 0% 100%, #ff4500 0%, transparent 60%);
  
  background-size: cover;
  background-position: center;
  background-blend-mode: overlay; /* blends image and gradients nicely */
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 40%, rgba(102,126,234,0.3) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 70%, rgba(118,75,162,0.25) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 10%, rgba(0,242,254,0.1) 0%, transparent 50%);
  pointer-events: none; /* allow clicks on buttons */
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35); /* adjust opacity */
  pointer-events: none;
}.page-hero .container {
  position: relative;
  z-index: 2; /* above ::before and ::after */
}
.page-hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; border: 1px solid rgba(102,126,234,.4);
  border-radius: 50px; padding: 8px 20px; font-size: 13px;
  color: #fff; letter-spacing: 1px; margin-bottom: 24px;
  backdrop-filter: blur(10px);
}
.page-hero h1 {
    font-size: clamp(2.2rem,5vw,6rem);
  font-weight: 800; line-height: 1.15; color: #fff; margin-bottom: 20px;
}
.page-hero h1 span {
  background: var(--gradient-primary);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.page-hero p { color: #fff; font-size: 1.0rem; max-width: 600px; margin: 0 auto 8px; }


/* =====================================================
   FILTER BAR
   ===================================================== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 28px;
  padding: 18px 22px;
  background: #ffffff;
  border: 1px solid #e2e6f0;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(33,64,154,0.07);
}

.search-wrap {
  position: relative;
  flex: 1;
  min-width: 200px;
}

.search-wrap svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #9aa0b9;
  pointer-events: none;
}

.search-wrap input {
  width: 100%;
  background: #f5f6fa;
  border: 1.5px solid #e2e6f0;
  border-radius: 100px;
  padding: 9px 18px 9px 40px;
  color: #1a1f36;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-wrap input::placeholder { color: #9aa0b9; }

.search-wrap input:focus {
  border-color: #21409a;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(33,64,154,0.10);
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 18px;
  border-radius: 100px;
  border: 1.5px solid #dde1ef;
  background: #f5f6fa;
  color: #5a6385;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.filter-btn:hover {
  border-color: #21409a;
  color: #21409a;
  background: rgba(33,64,154,0.06);
}

.filter-btn.active {
  background: linear-gradient(135deg, #21409a 0%, #2d55c9 100%);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(33,64,154,0.28);
}

/* =====================================================
   RESULTS INFO
   ===================================================== */
.results-info { font-size: 0.82rem; color: #7a82a0; margin-bottom: 24px; }
.results-info strong { color: #21409a; font-weight: 700; }

/* =====================================================
   EVENT CARD  —  CREATIVE (no icons)
   ===================================================== */
.event-card {
  background: #ffffff;
  border: 1px solid #e8ecf5;
  border-radius: 20px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.32s cubic-bezier(0.34,1.56,0.64,1),
              box-shadow 0.28s ease,
              border-color 0.22s ease;
  box-shadow: 0 2px 8px rgba(33,64,154,0.06), 0 1px 3px rgba(0,0,0,0.04);
}

.event-card:hover {
  transform: translateY(-7px) scale(1.01);
  box-shadow: 0 20px 60px rgba(33,64,154,0.14), 0 6px 18px rgba(33,64,154,0.08);
  border-color: rgba(33,64,154,0.20);
}

/* ── CARD HEADER BAND (pure CSS geometry, no icons) ── */
.event-card-header {
  position: relative;
  height: 118px;
  overflow: hidden;
  flex-shrink: 0;
}

/* Base gradient */
.event-card-header .hdr-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Big offset circle — top left */
.event-card-header .hdr-ring-a {
  position: absolute;
  left: -36px;
  top: -36px;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  border: 24px solid rgba(255,255,255,0.12);
  z-index: 1;
}

/* Smaller solid circle — bottom centre */
.event-card-header .hdr-ring-b {
  position: absolute;
  left: 50%;
  bottom: -22px;
  transform: translateX(-50%);
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  z-index: 1;
}

/* Diagonal right wedge */
.event-card-header .hdr-wedge {
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100%;
  background: rgba(255,255,255,0.07);
  clip-path: polygon(40% 0, 100% 0, 100% 100%);
  z-index: 1;
}

/* Thin horizontal rule near bottom */
.event-card-header .hdr-rule {
  position: absolute;
  bottom: 24px;
  left: 20px;
  right: 20px;
  height: 1px;
  background: rgba(255,255,255,0.18);
  z-index: 2;
}

/* Large bold type abbreviation (e.g. "CONF", "WRK") */
.event-card-header .hdr-label {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-60%);
  font-family: 'Sora', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: rgba(255,255,255,0.22);
  letter-spacing: -0.04em;
  line-height: 1;
  z-index: 2;
  text-transform: uppercase;
  user-select: none;
}

/* Date pill — top right */
.event-card-header .hdr-date {
  position: absolute;
  right: 14px;
  top: 13px;
  z-index: 4;
  background: rgba(255,255,255,0.18);
  border: 1.5px solid rgba(255,255,255,0.36);
  border-radius: 8px;
  padding: 4px 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.67rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* Location pill — bottom right */
.event-card-header .hdr-loc {
  position: absolute;
  right: 14px;
  bottom: 11px;
  z-index: 4;
  background: rgba(0,0,0,0.20);
  border-radius: 6px;
  padding: 3px 9px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.64rem;
  font-weight: 600;
  color: rgba(255,255,255,0.90);
  white-space: nowrap;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── TYPE GRADIENTS ── */
.event-card.type-conference .hdr-bg {
  background: linear-gradient(135deg, #21409a 0%, #2d55c9 55%, #1a8fd1 100%);
}
.event-card.type-workshop .hdr-bg {
  background: linear-gradient(135deg, #b85c00 0%, #ed952b 55%, #f7c26b 100%);
}
.event-card.type-keynote .hdr-bg {
  background: linear-gradient(135deg, #0d2060 0%, #21409a 52%, #2d55c9 100%);
}
.event-card.type-panel .hdr-bg {
  background: linear-gradient(135deg, #0d6b58 0%, #138a72 55%, #1fb58f 100%);
}
.event-card.type-networking .hdr-bg {
  background: linear-gradient(135deg, #5a2d82 0%, #7b4fa6 55%, #a870da 100%);
}
.event-card.type-social .hdr-bg {
  background: linear-gradient(135deg, #b02060 0%, #d84e7a 55%, #f093b0 100%);
}
.event-card .hdr-bg {
  background: linear-gradient(135deg, #21409a 0%, #3259d6 100%);
}

/* ── FLOATING TYPE BADGE ── */
.event-type-badge {
  position: absolute;
  left: 18px;
  top: 97px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0,0,0,0.16);
  border: 2px solid rgba(255,255,255,0.85);
  white-space: nowrap;
}

.badge-conference { background: linear-gradient(135deg, #21409a, #3259d6); }
.badge-workshop   { background: linear-gradient(135deg, #b85c00, #ed952b); }
.badge-networking { background: linear-gradient(135deg, #5a2d82, #7b4fa6); }
.badge-social     { background: linear-gradient(135deg, #b02060, #d84e7a); }
.badge-panel      { background: linear-gradient(135deg, #0d6b58, #138a72); }
.badge-keynote    { background: linear-gradient(135deg, #0d2060, #21409a); }
.badge-default    { background: linear-gradient(135deg, #21409a, #3259d6); }

/* ── CARD BODY ── */
.event-card-body {
  padding: 36px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.event-title {
  font-family: 'Sora', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #1a1f36;
  margin-bottom: 7px;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.event-desc {
  font-size: 0.845rem;
  color: #5a6385;
  line-height: 1.60;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

/* Meta pills (used inside body if needed) */
.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.event-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.74rem;
  color: #5a6385;
  font-weight: 500;
  background: #f5f6fa;
  padding: 3px 9px;
  border-radius: 6px;
  border: 1px solid #eaecf5;
}

/* Hairline divider */
.event-card-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, #e2e6f0 20%, #e2e6f0 80%, transparent);
  margin: 0 0 14px;
}

/* ── SPEAKER ── */
.speaker-info {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.speaker-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2.5px solid #e8ecf5;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(33,64,154,0.12);
}

.speaker-avatar-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #21409a 0%, #4c6fcf 100%);
  border: 2.5px solid rgba(255,255,255,0.9);
  box-shadow: 0 2px 10px rgba(33,64,154,0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #ffffff;
  flex-shrink: 0;
  text-transform: uppercase;
}

.speaker-name { font-size: 0.83rem; font-weight: 700; color: #1a1f36; line-height: 1.2; }
.speaker-role { font-size: 0.72rem; color: #7a82a0; margin-top: 2px; }

/* ── KEYWORD TAGS ── */
.event-keywords { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 2px; }

.kw-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #21409a;
  background: rgba(33,64,154,0.08);
  border: 1px solid rgba(33,64,154,0.15);
}

/* =====================================================
   SKELETON
   ===================================================== */
@keyframes shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position:  600px 0; }
}

.skeleton {
  background: linear-gradient(90deg, #eef0f7 25%, #f5f6fa 50%, #eef0f7 75%);
  background-size: 1200px 100%;
  animation: shimmer 1.6s infinite linear;
  border-radius: 6px;
}

.skeleton-card {
  background: #ffffff;
  border: 1px solid #e8ecf5;
  border-radius: 20px;
  overflow: hidden;
  height: 100%;
  box-shadow: 0 2px 8px rgba(33,64,154,0.05);
}

.skeleton-card .sk-header { height: 118px; width: 100%; border-radius: 0; }
.skeleton-card .sk-body   { padding: 36px 20px 20px; }

.sk-badge   { height: 22px; width: 88px; border-radius: 100px; margin-bottom: 14px; }
.sk-title   { height: 20px; width: 82%; margin-bottom: 10px; }
.sk-line    { height: 13px; margin-bottom: 10px; }
.sk-line.short  { width: 55%; }
.sk-line.medium { width: 78%; }
.sk-line.long   { width: 100%; }
.sk-avatar  { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; }
.sk-name    { height: 12px; width: 110px; }

/* =====================================================
   EMPTY STATE
   ===================================================== */
.empty-state { text-align: center; padding: 80px 24px; color: #7a82a0; }

.empty-state-icon {
  width: 72px; height: 72px; margin: 0 auto 20px;
  background: #f5f6fa; border: 1.5px solid #e2e6f0; border-radius: 20px;
  display: flex; align-items: center; justify-content: center; font-size: 2rem;
}

.empty-state-title {
  font-family: 'Sora', sans-serif;
  font-size: 1.2rem; font-weight: 700; color: #1a1f36; margin-bottom: 8px;
}

.empty-state p { font-size: 0.88rem; max-width: 300px; margin: 0 auto; line-height: 1.6; }

/* =====================================================
   FADE-UP / ARCHIVED / BUTTON
   ===================================================== */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity 0.5s ease, transform 0.5s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

.event-card.archived { opacity: 0.52; pointer-events: none; }
.event-card.archived:hover { transform: none; box-shadow: 0 2px 8px rgba(33,64,154,0.06); }

.btn-event {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  width: 100%; padding: 11px 20px; border-radius: 10px; border: none;
  background: linear-gradient(135deg, #21409a 0%, #2d55c9 100%);
  color: #ffffff; font-family: 'DM Sans', sans-serif; font-size: 0.875rem; font-weight: 600;
  cursor: pointer; text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}

.btn-event:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(33,64,154,0.32);
  color: #ffffff; opacity: 0.94;
}

/* =====================================================
   SPOTS / COUNTDOWN
   ===================================================== */
.spots-left { font-size: 0.7rem; color: #ed952b; font-weight: 700; display: flex; align-items: center; gap: 5px; }
.spots-dot  { width: 6px; height: 6px; border-radius: 50%; background: #ed952b; animation: pulse 1.5s infinite; }

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.85); }
}

.countdown-wrap { margin-left: auto; display: flex; gap: 12px; }
.cd-box { text-align: center; background: rgba(33,64,154,0.06); border: 1.5px solid rgba(33,64,154,0.14); border-radius: 10px; padding: 10px 14px; min-width: 56px; }
.cd-num { font-family: 'Sora', sans-serif; font-size: 1.5rem; font-weight: 800; color: #21409a; line-height: 1; }
.cd-unit { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.12em; color: #7a82a0; margin-top: 3px; font-weight: 600; }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 768px) {
  .page-hero    { padding: 60px 0 44px; }
  .filter-bar   { gap: 7px; padding: 14px 16px; }
  .filter-btn   { padding: 6px 13px; font-size: 0.77rem; }
  .search-wrap  { min-width: 100%; order: -1; }
  .event-card-header { height: 96px; }
  .event-type-badge  { top: 75px; }
  .event-card-body   { padding-top: 34px; }
}

@media (max-width: 576px) {
  .event-card-body { padding: 34px 16px 16px; }
}