/* ============================================================
   AMET TICKETS — AI Art Animation Layer
   Cosmic Gallery Aesthetic
   ============================================================ */



─────────────────────────────────────────── */

/* ── Glitch text effect ────────────────────────────────────── */
.glitch {
  position: relative;
  animation: glitchBase 8s infinite;
}
.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute; top: 0; left: 0; width: 100%;
}
.glitch::before {
  color: var(--gold); animation: glitch1 8s infinite;
  clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
  transform: translate(-2px, -2px);
}
.glitch::after {
  color: #ff00ff; animation: glitch2 8s infinite;
  clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
  transform: translate(2px, 2px);
}
@keyframes glitchBase { 0%,90%,100% { transform: none; } 91% { transform: skewX(0.5deg); } 92% { transform: skewX(-0.5deg); } }
@keyframes glitch1 { 0%,89%,100% { opacity: 0; } 90% { opacity: 0.8; transform: translate(-4px, 0); } 91% { transform: translate(4px, 0); } 92% { opacity: 0; } }
@keyframes glitch2 { 0%,88%,100% { opacity: 0; } 89% { opacity: 0.6; transform: translate(4px, 0); } 90% { transform: translate(-4px, 0); } 91% { opacity: 0; } }

/* ── Holographic card shimmer ──────────────────────────────── */
.holo-card {
  position: relative; overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.1s ease;
}
.holo-card::before {
  content: '';
  position: absolute; inset: -100%;
  background: conic-gradient(
    from var(--angle, 0deg),
    transparent 0deg,
    rgba(212,168,67,0.15) 60deg,
    rgba(156,39,176,0.15) 120deg,
    rgba(255,255,255,0.08) 180deg,
    transparent 240deg
  );
  animation: holoRotate 6s linear infinite;
  opacity: 0;
  transition: opacity 0.3s;
  border-radius: inherit;
  pointer-events: none;
}
.holo-card:hover::before { opacity: 1; }
.holo-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255,255,255,0.04) 45%,
    rgba(255,255,255,0.08) 50%,
    rgba(255,255,255,0.04) 55%,
    transparent 60%
  );
  background-size: 200% 200%;
  animation: shimmerSweep 3s linear infinite;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  border-radius: inherit;
}
.holo-card:hover::after { opacity: 1; }
@keyframes holoRotate { to { --angle: 360deg; } }
@keyframes shimmerSweep { 0% { background-position: -100% 0; } 100% { background-position: 200% 0; } }
@property --angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }

/* ── Neon glow borders ─────────────────────────────────────── */
.neon-border {
  border: 1px solid transparent;
  background-clip: padding-box;
  position: relative;
}
.neon-border::before {
  content: '';
  position: absolute; inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--purple-soft), var(--gold), var(--purple-soft));
  background-size: 200% 200%;
  animation: neonPulse 4s ease infinite;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s;
}
.neon-border:hover::before { opacity: 1; }
@keyframes neonPulse {
  0%,100% { background-position: 0% 50%; opacity: 0.7; }
  50% { background-position: 100% 50%; opacity: 1; }
}

/* ── Floating animation ────────────────────────────────────── */
@keyframes floatY {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes floatRotate {
  0%,100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-8px) rotate(2deg); }
  66% { transform: translateY(-4px) rotate(-1deg); }
}
.float-anim { animation: floatY 4s ease-in-out infinite; }
.float-anim-2 { animation: floatY 5s ease-in-out infinite; animation-delay: -1s; }
.float-anim-3 { animation: floatRotate 6s ease-in-out infinite; }

/* ── Stagger reveal ────────────────────────────────────────── */
.stagger-reveal { opacity: 0; transform: translateY(30px); }
.stagger-reveal.revealed {
  animation: revealUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes revealUp {
  to { opacity: 1; transform: translateY(0); }
}
.stagger-reveal:nth-child(1) { animation-delay: 0.05s; }
.stagger-reveal:nth-child(2) { animation-delay: 0.12s; }
.stagger-reveal:nth-child(3) { animation-delay: 0.19s; }
.stagger-reveal:nth-child(4) { animation-delay: 0.26s; }
.stagger-reveal:nth-child(5) { animation-delay: 0.33s; }
.stagger-reveal:nth-child(6) { animation-delay: 0.40s; }
.stagger-reveal:nth-child(7) { animation-delay: 0.47s; }
.stagger-reveal:nth-child(8) { animation-delay: 0.54s; }
.stagger-reveal:nth-child(9) { animation-delay: 0.61s; }
.stagger-reveal:nth-child(10) { animation-delay: 0.68s; }
.stagger-reveal:nth-child(11) { animation-delay: 0.75s; }
.stagger-reveal:nth-child(12) { animation-delay: 0.82s; }

/* ── Morphing blob ─────────────────────────────────────────── */
.morph-blob {
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  animation: morphBlob 12s ease-in-out infinite;
}
@keyframes morphBlob {
  0%,100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  25%  { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
  50%  { border-radius: 50% 60% 30% 60% / 30% 70% 60% 40%; }
  75%  { border-radius: 40% 60% 50% 40% / 70% 30% 50% 60%; }
}

/* ── Typewriter ────────────────────────────────────────────── */
.typewriter {
  overflow: hidden;
  border-right: 2px solid var(--gold);
  white-space: nowrap;
  animation: typewrite 3s steps(40) forwards, blink 0.75s step-end infinite;
  width: 0;
}
@keyframes typewrite { to { width: 100%; } }
@keyframes blink { 50% { border-color: transparent; } }

/* ── Scanline effect ───────────────────────────────────────── */
.scanlines {
  position: relative;
  overflow: hidden;
}
.scanlines::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 3px,
    rgba(0,0,0,0.08) 3px,
    rgba(0,0,0,0.08) 4px
  );
  pointer-events: none; z-index: 10;
}

/* ── Particle burst on click ───────────────────────────────── */
.particle-burst {
  position: fixed; pointer-events: none; z-index: 9999;
}
.burst-particle {
  position: absolute; width: 6px; height: 6px;
  border-radius: 50%;
  animation: burst 0.8s ease-out forwards;
}
@keyframes burst {
  0%   { transform: translate(0,0) scale(1); opacity: 1; }
  100% { transform: var(--tx, 60px) var(--ty, -60px) scale(0); opacity: 0; }
}

/* ── Glow button ───────────────────────────────────────────── */
.btn-glow {
  position: relative; overflow: hidden;
}
.btn-glow::before {
  content: '';
  position: absolute; inset: -2px;
  background: linear-gradient(90deg, var(--gold), var(--purple-soft), var(--gold));
  background-size: 200% 100%;
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s;
  animation: glowSweep 2s linear infinite;
}
.btn-glow:hover::before { opacity: 1; }
@keyframes glowSweep { 0% { background-position: 0%; } 100% { background-position: 200%; } }

/* ── Neural net lines ──────────────────────────────────────── */
#neural-canvas {
  position: absolute; inset: 0;
  pointer-events: none; opacity: 0.2;
}

/* ── Live poster preview glow ──────────────────────────────── */
.poster-preview-wrap {
  position: relative;
}
.poster-preview-wrap::after {
  content: '';
  position: absolute; inset: -8px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--purple-soft), var(--gold), var(--purple-soft));
  background-size: 300% 300%;
  z-index: -1;
  opacity: 0.6;
  filter: blur(12px);
  animation: posterGlow 4s ease infinite;
}
@keyframes posterGlow {
  0%,100% { background-position: 0% 50%; opacity: 0.5; }
  50% { background-position: 100% 50%; opacity: 0.9; }
}

/* ── Event card NEW aesthetic ──────────────────────────────── */
.ai-event-card {
  background: rgba(15, 0, 30, 0.7);
  border: 1px solid rgba(212,168,67,0.12);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  backdrop-filter: blur(12px);
  transition: transform 0.4s cubic-bezier(0.22,1,0.36,1),
              box-shadow 0.4s ease,
              border-color 0.3s;
  transform-style: preserve-3d;
}
.ai-event-card:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: rgba(212,168,67,0.4);
  box-shadow: 0 30px 60px rgba(74,20,140,0.4), 0 0 40px rgba(212,168,67,0.15);
}
.ai-event-card-image {
  height: 200px; overflow: hidden; position: relative;
}
.ai-event-card-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
  filter: brightness(0.85);
}
.ai-event-card:hover .ai-event-card-image img {
  transform: scale(1.08);
  filter: brightness(1);
}
.ai-event-card-image-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 60px;
  position: relative;
}
.ai-event-card-type-badge {
  position: absolute; top: 12px; left: 12px;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--gold);
  font-size: 11px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 4px 12px; border-radius: 20px;
}
.ai-event-card-body { padding: 20px; }
.ai-event-card-title {
  font-family: 'Playfair Display', 'Cormorant Garamond', serif;
  font-size: 19px; font-weight: 700;
  color: #fff; line-height: 1.3; margin-bottom: 10px;
}
.ai-event-card-meta { font-size: 12px; color: rgba(255,255,255,0.5); }
.ai-event-card-meta span { display: block; margin-bottom: 3px; }
.ai-event-card-footer {
  padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.ai-price-from { font-size: 11px; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 1px; }
.ai-price-amount { font-size: 20px; font-weight: 800; color: var(--gold); }

/* ── Browse hero ───────────────────────────────────────────── */
.browse-hero {
  position: relative; min-height: 380px;
  display: flex; align-items: center;
  overflow: hidden;
  background: var(--purple-darkest);
}
.browse-hero-content { position: relative; z-index: 5; width: 100%; padding: 60px 24px; }
.browse-hero h1 {
  font-family: 'Playfair Display', 'Cormorant Garamond', serif;
  font-size: clamp(36px,7vw,72px);
  color: white; font-weight: 900;
  line-height: 1.05;
  text-shadow: 0 0 60px rgba(212,168,67,0.3);
}
.browse-hero h1 em { font-style: italic; color: var(--gold); }
.browse-hero-sub {
  font-size: 16px; color: rgba(255,255,255,0.6);
  margin-top: 12px; max-width: 500px;
}
.browse-counter {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  padding: 8px 20px; border-radius: 40px;
  margin-top: 20px; font-size: 14px; color: rgba(255,255,255,0.7);
}
.browse-counter strong { color: var(--gold); font-size: 18px; }

/* ── Filter bar ────────────────────────────────────────────── */
.filter-bar {
  position: sticky; top: 68px; z-index: 50;
  background: rgba(10, 0, 20, 0.85);
  backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid rgba(212,168,67,0.12);
  padding: 14px 24px;
}
.filter-bar-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.filter-search {
  flex: 1; min-width: 200px; position: relative;
}
.filter-search input {
  width: 100%; background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: white; border-radius: 40px;
  padding: 10px 20px 10px 42px;
  font-family: 'DM Sans', sans-serif; font-size: 14px;
  transition: all 0.3s;
}
.filter-search input:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(212,168,67,0.06);
  box-shadow: 0 0 0 3px rgba(212,168,67,0.1);
}
.filter-search input::placeholder { color: rgba(255,255,255,0.3); }
.filter-search-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  font-size: 14px; opacity: 0.4;
}
.filter-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-tab {
  padding: 8px 18px; border-radius: 40px;
  font-size: 13px; font-weight: 600;
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.6);
  background: transparent; cursor: pointer;
  transition: all 0.25s; text-decoration: none;
  white-space: nowrap;
}
.filter-tab:hover { border-color: rgba(212,168,67,0.4); color: var(--gold); }
.filter-tab.active {
  background: var(--gold); color: var(--purple-darkest);
  border-color: var(--gold); font-weight: 700;
}

/* ── Events grid (AI) ──────────────────────────────────────── */
.ai-events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

/* ── Create event wizard ───────────────────────────────────── */
.wizard-steps {
  display: flex; gap: 0; margin-bottom: 40px;
  position: relative;
}
.wizard-steps::before {
  content: '';
  position: absolute; top: 20px; left: 0; right: 0; height: 2px;
  background: rgba(255,255,255,0.1); z-index: 0;
}
.wizard-step {
  flex: 1; text-align: center; position: relative; z-index: 1;
  cursor: pointer;
}
.wizard-step-dot {
  width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.2);
  background: var(--purple-darkest);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 10px;
  font-weight: 700; font-size: 14px; color: rgba(255,255,255,0.4);
  transition: all 0.3s;
}
.wizard-step.active .wizard-step-dot {
  background: var(--gold); border-color: var(--gold);
  color: var(--purple-darkest);
  box-shadow: 0 0 20px rgba(212,168,67,0.5);
}
.wizard-step.done .wizard-step-dot {
  background: #2e7d32; border-color: #4caf50; color: white;
}
.wizard-step-label {
  font-size: 12px; color: rgba(255,255,255,0.4);
  font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
}
.wizard-step.active .wizard-step-label { color: var(--gold); }

.wizard-panel {
  display: none;
  animation: panelSlideIn 0.4s cubic-bezier(0.22,1,0.36,1);
}
.wizard-panel.active { display: block; }
@keyframes panelSlideIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── Animated form fields ──────────────────────────────────── */
.ai-form-group {
  position: relative; margin-bottom: 28px;
}
.ai-form-group label {
  position: absolute; top: 14px; left: 16px;
  font-size: 14px; color: rgba(255,255,255,0.4);
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.22,1,0.36,1);
  font-family: 'DM Sans', sans-serif;
}
.ai-form-group input:focus ~ label,
.ai-form-group input:not(:placeholder-shown) ~ label,
.ai-form-group select:focus ~ label,
.ai-form-group textarea:focus ~ label,
.ai-form-group textarea:not(:placeholder-shown) ~ label {
  top: -10px; left: 12px;
  font-size: 11px; font-weight: 700;
  color: var(--gold);
  background: var(--purple-darkest);
  padding: 0 6px;
  text-transform: uppercase; letter-spacing: 1px;
}
.ai-input {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 14px 16px;
  color: white;
  font-family: 'DM Sans', sans-serif; font-size: 15px;
  transition: all 0.3s;
}
.ai-input:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(212,168,67,0.04);
  box-shadow: 0 0 0 4px rgba(212,168,67,0.08);
}
.ai-input::placeholder { color: transparent; }
.ai-input option { background: #1a0033; }

/* ── Grade builder animated rows ──────────────────────────── */
.grade-row-animated {
  animation: gradeRowIn 0.4s cubic-bezier(0.22,1,0.36,1);
}
@keyframes gradeRowIn {
  from { opacity: 0; transform: translateX(-20px) scale(0.97); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}

/* ── Countdown timer ───────────────────────────────────────── */
.event-countdown {
  display: flex; gap: 8px; margin-top: 8px;
}
.countdown-unit {
  text-align: center;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(212,168,67,0.2);
  border-radius: 6px; padding: 4px 8px; min-width: 40px;
}
.countdown-num {
  font-size: 16px; font-weight: 800;
  color: var(--gold); font-family: monospace;
  display: block; line-height: 1;
}
.countdown-label { font-size: 9px; color: rgba(255,255,255,0.35); text-transform: uppercase; letter-spacing: 1px; }

/* ── Live preview panel ────────────────────────────────────── */
.live-preview {
  background: rgba(10,0,20,0.8);
  border: 1px solid rgba(212,168,67,0.2);
  border-radius: 20px; overflow: hidden;
  position: sticky; top: 88px;
  backdrop-filter: blur(12px);
}
.live-preview-label {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 11px; font-weight: 700;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase; letter-spacing: 2px;
  display: flex; align-items: center; gap: 8px;
}
.live-preview-label::before {
  content: ''; display: inline-block;
  width: 8px; height: 8px; border-radius: 50%;
  background: #4caf50;
  animation: livePulse 1.5s ease infinite;
}
@keyframes livePulse { 0%,100% { box-shadow: 0 0 0 0 rgba(76,175,80,0.4); } 50% { box-shadow: 0 0 0 6px rgba(76,175,80,0); } }
.live-preview-body { padding: 20px; }
.preview-event-name {
  font-family: 'Playfair Display', serif;
  font-size: 22px; color: white; font-weight: 700; margin-bottom: 6px;
  min-height: 32px;
}
.preview-placeholder { color: rgba(255,255,255,0.2); font-style: italic; }

/* ── Section dark ──────────────────────────────────────────── */
.section-dark {
  background: transparent;
  padding: 60px 0;
  position: relative;
  z-index: 1;
}

/* ── Floating category icons ───────────────────────────────── */
.category-float-icon {
  display: inline-block;
  animation: floatRotate 5s ease-in-out infinite;
  font-size: 48px; margin-bottom: 14px;
  filter: drop-shadow(0 0 20px rgba(212,168,67,0.4));
}
.category-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px; padding: 32px 20px; text-align: center;
  text-decoration: none; display: block;
  transition: all 0.4s cubic-bezier(0.22,1,0.36,1);
  position: relative; overflow: hidden;
}
.category-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 100%, rgba(212,168,67,0.08) 0%, transparent 70%);
  opacity: 0; transition: opacity 0.3s;
}
.category-card:hover { transform: translateY(-6px); border-color: rgba(212,168,67,0.3); }
.category-card:hover::before { opacity: 1; }
.category-card-name {
  font-family: 'Playfair Display', serif;
  font-size: 22px; color: white; font-weight: 700;
}
.category-card-desc { font-size: 13px; color: rgba(255,255,255,0.4); margin-top: 6px; }

/* ── Loading skeleton ──────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
  background-size: 400% 100%;
  animation: skeleton 1.5s ease infinite;
  border-radius: 8px;
}
@keyframes skeleton { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

/* ── Empty state dark ──────────────────────────────────────── */
.empty-state-dark {
  text-align: center; padding: 80px 20px;
  color: rgba(255,255,255,0.4);
}
.empty-state-dark .empty-icon-wrap {
  font-size: 72px; margin-bottom: 20px;
  filter: drop-shadow(0 0 30px rgba(212,168,67,0.3));
  animation: floatY 4s ease-in-out infinite;
}
.empty-state-dark h3 { color: rgba(255,255,255,0.7); margin-bottom: 10px; font-size: 24px; }

/* ── Scroll progress bar ───────────────────────────────────── */
#scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px;
  background: linear-gradient(90deg, var(--purple-soft), var(--gold));
  z-index: 100000;
  width: 0%;
  transition: width 0.1s;
  box-shadow: 0 0 8px rgba(212,168,67,0.6);
}

/* ── Dark page override ────────────────────────────────────── */
body.dark-page { background: #0a001e; }
body.dark-page main { color: white; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .browse-hero h1 { font-size: 36px; }
  .ai-events-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
}
