/* Events Experience Styles */

.event-page {
  background: #f4f6fb;
  min-height: calc(100vh - 80px);
  padding-bottom: 48px;
}

.event-hero {
  position: relative;
  background: linear-gradient(135deg, #4f46e5 0%, #9333ea 100%);
  color: #fff;
  border-radius: 24px;
  padding: 48px clamp(24px, 4vw, 56px);
  overflow: hidden;
  margin-bottom: 32px;
  box-shadow: 0 24px 60px -24px rgba(99, 102, 241, 0.55);
}

.event-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0) 55%),
              radial-gradient(circle at bottom left, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0) 45%);
  pointer-events: none;
}

.event-hero .hero-copy {
  position: relative;
  z-index: 1;
}

.event-hero h1 {
  font-weight: 700;
  font-size: clamp(2.4rem, 3vw, 3rem);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.event-hero h1 span {
  color: #facc15;
}

.event-hero p {
  font-size: clamp(1rem, 1.1vw, 1.1rem);
  opacity: 0.9;
  margin-bottom: 24px;
}

.event-hero .event-stats {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.event-hero .event-stat {
  padding: 12px 18px;
  border-radius: 16px;
  backdrop-filter: blur(12px);
  background: rgba(255,255,255,0.16);
  color: #fff;
  min-width: 120px;
}

.event-hero .event-stat h3 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
}

.event-hero .event-stat span {
  font-size: 0.85rem;
  opacity: 0.85;
}

.event-search {
  position: relative;
  z-index: 1;
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.event-search .form-control {
  border-radius: 16px;
  padding: 14px clamp(16px, 3vw, 22px);
  border: none;
  flex: 1;
  box-shadow: 0 12px 32px -18px rgba(15, 23, 42, 0.4);
}

.event-search .btn-filter {
  border-radius: 14px;
  padding: 12px 20px;
  border: none;
  background: rgba(255,255,255,0.2);
  color: #fff;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s ease;
}

.event-search .btn-filter:hover {
  background: rgba(255,255,255,0.32);
}

.event-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.event-tag {
  padding: 6px 14px;
  background: rgba(255,255,255,0.16);
  border-radius: 999px;
  font-size: 0.85rem;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.event-grid .card {
  border: none;
  border-radius: 22px;
  box-shadow: 0 18px 40px -26px rgba(15, 23, 42, 0.45);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #fff;
}

.event-grid .card:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 60px -28px rgba(79, 70, 229, 0.35);
}

.event-card-cover {
  position: relative;
  height: 190px;
  overflow: hidden;
}

.event-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.event-grid .card:hover .event-card-cover img {
  transform: scale(1.06);
}

.event-status {
  position: absolute;
  right: 16px;
  top: 16px;
  border-radius: 30px;
  padding: 6px 14px;
  font-size: 0.75rem;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.event-card-body {
  padding: 22px;
}

.event-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
}

.event-actions .btn {
  border-radius: 14px;
  padding: 10px 18px;
  font-weight: 600;
}

.event-card-footer {
  padding: 16px 22px;
  border-top: 1px solid rgba(15, 23, 42, 0.05);
  background: rgba(248, 250, 252, 0.65);
}

/* My Events */

.my-events-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
}

.my-events-toolbar .btn {
  border-radius: 14px;
  padding: 10px 18px;
  font-weight: 600;
}

/* Event Detail */

.event-detail-hero {
  position: relative;
  background-size: cover;
  background-position: center;
  border-radius: 28px;
  padding: clamp(32px, 4vw, 52px);
  overflow: hidden;
  color: #fff;
  box-shadow: 0 28px 80px -36px rgba(15, 23, 42, 0.5);
}

.event-detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,23,42,0.75) 0%, rgba(15,23,42,0.25) 60%, rgba(15,23,42,0.55) 100%);
}

.event-detail-hero .hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2vw, 28px);
}

.event-detail-hero .hero-top {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.event-detail-hero h1 {
  font-size: clamp(2.4rem, 3vw, 3.4rem);
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.02em;
}

.event-detail-hero .hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.event-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(16px);
  font-size: 0.85rem;
  font-weight: 500;
}

.event-detail-hero .hero-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
}

.event-detail-hero .hero-footer .hero-stats {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.event-detail-hero .hero-footer .hero-stat {
  padding: 12px 18px;
  border-radius: 16px;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(12px);
  min-width: 120px;
}

.event-detail-hero .hero-footer .hero-stat h4 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
}

.event-detail-hero .hero-footer .hero-stat span {
  font-size: 0.8rem;
  opacity: 0.85;
}

.event-main-grid {
  margin-top: clamp(28px, 4vw, 40px);
}

.event-card {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 20px 50px -28px rgba(15, 23, 42, 0.35);
  padding: clamp(22px, 3vw, 28px);
}

.event-card h5,
.event-card h6 {
  margin: 0 0 12px;
  font-weight: 600;
}

.event-card p,
.event-card li,
.event-card span {
  color: #475569;
  font-size: 0.95rem;
}

.event-card .description-text {
  line-height: 1.75;
}

.event-host-card {
  display: flex;
  align-items: center;
  gap: 16px;
}

.event-host-card img {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  object-fit: cover;
}

.event-host-card .host-meta h6 {
  margin-bottom: 4px;
}

.event-host-card .host-meta small {
  color: #94a3b8;
}

.event-details-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.event-details-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

.event-details-list li:last-child {
  border-bottom: none;
}

.event-details-list i {
  font-size: 1.1rem;
  color: #4f46e5;
}

.session-timeline {
  display: grid;
  gap: 18px;
}

.timeline-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(226, 232, 240, 0.6);
  background: rgba(248, 250, 252, 0.9);
  align-items: center;
}

.timeline-badge {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #4f46e5;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.95rem;
}

.timeline-content h6 {
  margin-bottom: 6px;
  font-size: 1.05rem;
  font-weight: 600;
}

.timeline-content small {
  color: #64748b;
  font-size: 0.85rem;
}

.timeline-thumbnail {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: cover;
}

.event-card.sticky-card {
  position: sticky;
  top: 88px;
}

.event-empty-state {
  text-align: center;
  padding: 36px 12px;
  color: #94a3b8;
}

.event-empty-state img {
  max-width: 220px;
}

.event-manage-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

@media (max-width: 992px) {
  .timeline-item {
    grid-template-columns: auto 1fr;
  }
  .timeline-thumbnail {
    grid-column: 2 span;
    width: 100%;
    height: 160px;
    border-radius: 18px;
    object-fit: cover;
  }
  .event-card.sticky-card {
    position: static;
  }
}

@media (max-width: 768px) {
  .event-detail-hero {
    border-radius: 22px;
    padding: 32px 24px;
  }
  .event-detail-hero .hero-footer {
    flex-direction: column;
    align-items: flex-start;
  }
  .timeline-item {
    grid-template-columns: auto 1fr;
  }
  .timeline-thumbnail {
    height: 140px;
  }
}
