/* Events Experience Styles */

.event-page {
  background: #f4f6fb;
  min-height: calc(100vh - 80px);
  padding-bottom: 48px;
}

.event-hero {
  position: relative;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #d946ef 100%);
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px), linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #d946ef 100%);
  background-size: 24px 24px, 100% 100%;
  color: #fff;
  border-radius: 24px;
  padding: 48px clamp(24px, 4vw, 56px);
  overflow: hidden;
  margin-bottom: 32px;
  box-shadow: 0 20px 50px -20px rgba(99, 102, 241, 0.6);
}

.event-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 60%),
              radial-gradient(circle at bottom left, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 50%);
  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(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  background-color: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05);
  color: #fff;
  min-width: 120px;
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.event-hero .event-stat:hover {
  transform: translateY(-2px);
  background-color: rgba(255, 255, 255, 0.18);
}

.event-hero .event-stat h3 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
}

.event-hero .event-stat span {
  font-size: 0.85rem;
  opacity: 0.85;
  color: #fff;
}

.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.12);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  font-size: 0.85rem;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s ease;
}

.event-tag:hover {
  background: #fff;
  color: #4f46e5;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  cursor: pointer;
}

.event-grid .card {
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 22px;
  box-shadow: 0 10px 30px -15px rgba(15, 23, 42, 0.15);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  background: #fff;
}

.event-grid .card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -20px rgba(79, 70, 229, 0.25);
  border-color: rgba(79, 70, 229, 0.25);
}

.event-card-cover {
  position: relative;
  height: 190px;
  overflow: hidden;
}

.event-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.event-grid .card:hover .event-card-cover img {
  transform: scale(1.08);
}

.event-progress-bar-container {
  height: 5px;
  background: rgba(226, 232, 240, 0.6);
  width: 100%;
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 3;
}

.event-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #4f46e5, #9333ea);
  border-radius: 0 4px 4px 0;
  transition: width 0.5s ease;
}

.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 25px 50px -12px rgba(15, 23, 42, 0.4);
}

.event-detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,23,42,0.85) 0%, rgba(15,23,42,0.4) 60%, rgba(15,23,42,0.85) 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: 800;
  margin: 0;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.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-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
}

.event-chip:hover {
  background-color: rgba(255, 255, 255, 0.22);
}

.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-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  min-width: 120px;
  transition: transform 0.2s ease;
}

.event-detail-hero .hero-footer .hero-stat:hover {
  transform: translateY(-2px);
}

.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;
  }
}

/* Countdown Timer Styling */
.event-countdown-container {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 8px 20px;
  border-radius: 999px;
  margin-top: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  vertical-align: middle;
}

.countdown-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #facc15;
  display: flex;
  align-items: center;
  gap: 6px;
}

.countdown-values {
  display: flex;
  align-items: center;
  gap: 4px;
}

.countdown-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  font-family: monospace;
}

.countdown-unit {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  margin-right: 4px;
  margin-left: 2px;
}

.countdown-colon {
  font-size: 1.15rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  margin: 0 2px;
  animation: flashColon 1s infinite;
}

@keyframes flashColon {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

.countdown-finished {
  background: rgba(239, 68, 68, 0.85) !important;
  border-color: rgba(239, 68, 68, 0.5) !important;
  border-radius: 999px !important;
  color: #fff !important;
  padding: 8px 20px !important;
}

/* Golden Rotating Coin animations */
@keyframes spinCoin {
  0% { transform: rotateY(0deg); }
  100% { transform: rotateY(360deg); }
}

.spinning-coin {
  display: inline-block;
  animation: spinCoin 3s infinite linear;
  color: #fbbf24;
  text-shadow: 0 0 8px rgba(251, 191, 36, 0.5);
}

.gold-gradient-balance {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%) !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4) !important;
}

.pulse-neon-status {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #ef4444;
  box-shadow: 0 0 10px #ef4444, 0 0 20px #ef4444;
  display: inline-block;
  animation: neonPulse 1.8s infinite ease-in-out;
}

@keyframes neonPulse {
  0%, 100% {
    transform: scale(0.9);
    opacity: 0.6;
    box-shadow: 0 0 6px #ef4444;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
    box-shadow: 0 0 12px #ef4444, 0 0 24px #ef4444;
  }
}

