/* WTS Events — Public CSS */
/* ======================== */

:root {
  --navy:   #0F2742;
  --navy2:  #1a3a5c;
  --lime:   #84cc16;
  --lime2:  #a3e635;
  --gold:   #f59e0b;
  --white:  #ffffff;
  --gray50: #f9fafb;
  --gray100:#f3f4f6;
  --gray200:#e5e7eb;
  --gray400:#9ca3af;
  --gray600:#4b5563;
  --gray800:#1f2937;
  --green:  #16a34a;
  --red:    #dc2626;
  --blue:   #0ea5e9;
  --radius: 16px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.14);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', 'Noto Sans Devanagari', sans-serif;
  background: var(--gray50);
  color: var(--gray800);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Nav ─────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(15, 39, 66, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 0 24px;
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
}
.nav-logo img { width: 36px; height: 36px; border-radius: 8px; object-fit: contain; }
.nav-logo-text { color: #fff; font-weight: 700; font-size: 16px; }
.nav-logo-sub  { color: rgba(255,255,255,0.55); font-size: 11px; display: block; }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-link {
  color: rgba(255,255,255,0.75); text-decoration: none;
  padding: 6px 14px; border-radius: 8px; font-size: 14px; font-weight: 500;
  transition: all 0.2s;
}
.nav-link:hover, .nav-link.active { color: #fff; background: rgba(255,255,255,0.1); }
.nav-btn {
  background: var(--lime); color: var(--navy); font-weight: 700;
  padding: 8px 20px; border-radius: 10px; font-size: 14px;
  text-decoration: none; transition: all 0.2s;
}
.nav-btn:hover { background: var(--lime2); transform: translateY(-1px); }

/* ── Hero ────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 60%, #1a4a7a 100%);
  padding: 80px 24px 72px;
  text-align: center; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(132,204,22,0.15); border: 1px solid rgba(132,204,22,0.3);
  color: var(--lime); padding: 6px 16px; border-radius: 100px;
  font-size: 13px; font-weight: 600; margin-bottom: 24px;
  position: relative;
}
.hero h1 {
  font-size: clamp(28px, 5vw, 52px); font-weight: 800;
  color: #fff; line-height: 1.15; margin-bottom: 16px;
  position: relative;
}
.hero h1 span { color: var(--lime); }
.hero p {
  font-size: clamp(15px, 2vw, 18px); color: rgba(255,255,255,0.75);
  max-width: 560px; margin: 0 auto 36px; position: relative;
}
.hero-stats {
  display: flex; align-items: center; justify-content: center; gap: 40px;
  flex-wrap: wrap; position: relative;
}
.hero-stat { text-align: center; }
.hero-stat-num { font-size: 28px; font-weight: 800; color: var(--lime); line-height: 1; }
.hero-stat-lbl { font-size: 13px; color: rgba(255,255,255,0.6); margin-top: 2px; }

/* ── Section ─────────────────────────────────────────────────────── */
.section { max-width: 1200px; margin: 0 auto; padding: 64px 24px; }
.section-header { margin-bottom: 40px; }
.section-tag {
  display: inline-block; background: var(--lime); color: var(--navy);
  font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 100px;
  letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 10px;
}
.section-title { font-size: clamp(22px, 3vw, 32px); font-weight: 800; color: var(--navy); }
.section-sub { color: var(--gray600); margin-top: 6px; font-size: 15px; }

/* ── Filters ─────────────────────────────────────────────────────── */
.filters {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 32px;
}
.filter-btn {
  padding: 8px 18px; border-radius: 100px;
  border: 1.5px solid var(--gray200); background: #fff;
  color: var(--gray600); font-size: 13px; font-weight: 500;
  cursor: pointer; transition: all 0.2s; font-family: inherit;
}
.filter-btn:hover { border-color: var(--navy); color: var(--navy); }
.filter-btn.active {
  background: var(--navy); border-color: var(--navy);
  color: #fff;
}

/* ── Event Cards ─────────────────────────────────────────────────── */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}
.event-card {
  background: #fff; border-radius: var(--radius);
  border: 1px solid var(--gray200);
  overflow: hidden; transition: all 0.25s;
  cursor: pointer; display: flex; flex-direction: column;
}
.event-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--navy);
}
.event-card-img {
  width: 100%; height: 180px; object-fit: cover;
  background: linear-gradient(135deg, var(--navy), var(--navy2));
  display: flex; align-items: center; justify-content: center;
  font-size: 56px; flex-shrink: 0;
}
.event-card-img img { width: 100%; height: 100%; object-fit: cover; }
.event-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.event-card-meta {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px;
}
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 100px; font-size: 11px; font-weight: 600;
}
.badge-paid    { background: #fef3c7; color: #92400e; }
.badge-free    { background: #dcfce7; color: #166534; }
.badge-online  { background: #e0f2fe; color: #0369a1; }
.badge-physical{ background: #f3e8ff; color: #6b21a8; }
.badge-hybrid  { background: #fff7ed; color: #9a3412; }
.badge-active  { background: #dcfce7; color: #166534; }
.badge-past    { background: var(--gray100); color: var(--gray600); }
.badge-upcoming{ background: #fef3c7; color: #92400e; }
.badge-venue   { background: #fef3c7; color: #92400e; }
.badge-confirmed { background: #dcfce7; color: #166534; }
.event-card-title {
  font-size: 17px; font-weight: 700; color: var(--navy);
  margin-bottom: 8px; line-height: 1.35;
}
.event-card-desc {
  font-size: 13px; color: var(--gray600); margin-bottom: 16px;
  flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.event-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; border-top: 1px solid var(--gray100);
  margin-top: auto;
}
.event-card-info { font-size: 12px; color: var(--gray600); }
.event-card-info strong { color: var(--navy); font-weight: 700; }
.event-card-price { font-weight: 800; color: var(--navy); font-size: 16px; }
.event-card-price .free { color: var(--green); }
.event-card-btn {
  display: inline-block; background: var(--navy); color: #fff;
  padding: 8px 18px; border-radius: 10px; font-size: 13px; font-weight: 600;
  text-decoration: none; transition: all 0.2s; border: none; cursor: pointer;
  font-family: inherit;
}
.event-card-btn:hover { background: var(--navy2); }
.event-card-btn.disabled {
  background: var(--gray200); color: var(--gray400); cursor: not-allowed;
}

/* ── Skeleton Loader ─────────────────────────────────────────────── */
@keyframes shimmer {
  0% { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
.skeleton {
  background: linear-gradient(90deg, var(--gray200) 25%, var(--gray100) 50%, var(--gray200) 75%);
  background-size: 800px 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}

/* ── Modal ───────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 16px; overflow-y: auto;
  opacity: 0; pointer-events: none; transition: opacity 0.25s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: #fff; border-radius: 20px; width: 100%; max-width: 700px;
  margin: auto; box-shadow: 0 24px 80px rgba(0,0,0,0.3);
  transform: translateY(20px); transition: transform 0.3s;
  overflow: hidden;
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-header {
  background: linear-gradient(135deg, var(--navy), var(--navy2));
  padding: 24px 28px; position: relative;
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: rgba(255,255,255,0.2); border: none; color: #fff;
  width: 32px; height: 32px; border-radius: 50%; cursor: pointer;
  font-size: 18px; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.modal-close:hover { background: rgba(255,255,255,0.35); }
.modal-body { padding: 28px; }

/* ── Registration Multi-Step ─────────────────────────────────────── */
.reg-modal { max-width: 600px; }
.reg-steps {
  display: flex; align-items: center; gap: 0;
  padding: 20px 28px; border-bottom: 1px solid var(--gray100);
  overflow-x: auto;
}
.reg-step {
  display: flex; align-items: center; gap: 6px; flex-shrink: 0;
  font-size: 12px; font-weight: 600; color: var(--gray400);
}
.reg-step.active { color: var(--navy); }
.reg-step.done   { color: var(--green); }
.reg-step-num {
  width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--gray200); font-size: 11px; flex-shrink: 0;
}
.reg-step.active .reg-step-num { background: var(--navy); color: #fff; }
.reg-step.done .reg-step-num   { background: var(--green); color: #fff; }
.reg-step-sep { width: 24px; height: 2px; background: var(--gray200); flex-shrink: 0; margin: 0 4px; }
.reg-step.done + .reg-step-sep { background: var(--green); }

.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.form-label .req { color: var(--red); }
.form-inp, .form-select, .form-textarea {
  width: 100%; padding: 12px 14px;
  border: 2px solid var(--gray200); border-radius: 12px;
  font-size: 15px; font-family: inherit; outline: none;
  transition: border-color 0.2s; background: #fff;
  color: var(--gray800);
}
.form-inp:focus, .form-select:focus, .form-textarea:focus { border-color: var(--navy); }
.form-inp.err, .form-select.err { border-color: var(--red); }
.form-err { font-size: 12px; color: var(--red); margin-top: 4px; }
.form-textarea { resize: vertical; min-height: 80px; }

.pkg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.pkg-card {
  border: 2px solid var(--gray200); border-radius: 14px; padding: 16px;
  cursor: pointer; transition: all 0.2s; text-align: center; background: #fff;
}
.pkg-card:hover { border-color: var(--navy); }
.pkg-card.selected { border-color: var(--navy); background: #f0f5ff; }
.pkg-name { font-weight: 700; color: var(--navy); font-size: 15px; }
.pkg-price { font-size: 22px; font-weight: 800; color: var(--navy); margin: 6px 0 2px; }
.pkg-desc  { font-size: 12px; color: var(--gray600); }

.pay-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pay-method {
  border: 2px solid var(--gray200); border-radius: 12px; padding: 14px;
  cursor: pointer; transition: all 0.2s; display: flex; align-items: center; gap: 10px;
}
.pay-method:hover { border-color: var(--navy); }
.pay-method.selected { border-color: var(--navy); background: #f0f5ff; }
.pay-method-icon { font-size: 24px; }
.pay-method-label { font-weight: 600; font-size: 14px; color: var(--navy); }
.pay-method-sub   { font-size: 11px; color: var(--gray600); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 12px; font-size: 15px; font-weight: 600;
  border: none; cursor: pointer; font-family: inherit; transition: all 0.2s;
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--navy), var(--navy2));
  color: #fff;
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-secondary {
  background: var(--gray100); color: var(--navy); border: 1.5px solid var(--gray200);
}
.btn-secondary:hover { background: var(--gray200); }
.btn-success { background: var(--green); color: #fff; }
.btn-success:hover { opacity: 0.9; }
.btn-lg { padding: 16px 32px; font-size: 16px; border-radius: 14px; }
.btn-full { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Success Screen ──────────────────────────────────────────────── */
.success-screen { text-align: center; padding: 32px; }
.success-icon {
  width: 80px; height: 80px; background: linear-gradient(135deg, var(--green), #22c55e);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 36px; margin: 0 auto 20px;
}
.qr-box {
  background: #fff; border: 2px solid var(--gray200); border-radius: 16px;
  padding: 20px; display: inline-block; margin: 16px 0;
}

/* ── Toast ───────────────────────────────────────────────────────── */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: var(--gray800); color: #fff; padding: 12px 20px;
  border-radius: 12px; font-size: 14px; box-shadow: var(--shadow-lg);
  animation: slideIn 0.3s ease; max-width: 320px;
  display: flex; align-items: center; gap: 10px;
}
.toast.success { background: var(--green); }
.toast.error   { background: var(--red); }
.toast.warning { background: var(--gold); color: #000; }
@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

/* ── Gallery ─────────────────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.gallery-img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  border-radius: 12px; cursor: pointer; transition: transform 0.2s;
}
.gallery-img:hover { transform: scale(1.03); }

/* ── Sticky Mobile Register Button ──────────────────────────────── */
.mobile-reg-btn {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 150;
  padding: 12px 16px; background: #fff; border-top: 1px solid var(--gray200);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
}
.mobile-reg-btn .btn { width: 100%; }

/* ── Footer ──────────────────────────────────────────────────────── */
.footer {
  background: var(--navy); color: rgba(255,255,255,0.7);
  padding: 48px 24px 24px; margin-top: 80px;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px;
}
.footer-brand { }
.footer-brand-name { color: #fff; font-weight: 800; font-size: 18px; margin-bottom: 8px; }
.footer-brand-desc { font-size: 14px; line-height: 1.6; }
.footer-links h4 { color: #fff; font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.footer-links a {
  display: block; color: rgba(255,255,255,0.6); text-decoration: none;
  font-size: 14px; margin-bottom: 6px; transition: color 0.2s;
}
.footer-links a:hover { color: var(--lime); }
.footer-bottom {
  max-width: 1200px; margin: 32px auto 0;
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; flex-wrap: wrap; gap: 8px;
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero { padding: 60px 16px 56px; }
  .hero-stats { gap: 24px; }
  .events-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .mobile-reg-btn { display: block; }
  .section { padding: 48px 16px; }
  .pay-methods { grid-template-columns: 1fr; }
  .modal-body { padding: 20px; }
}

@media (max-width: 480px) {
  .pkg-grid { grid-template-columns: 1fr; }
}
