:root {
  --primary: #cb6ce6;
  --primary-dark: #a422c9;
  --secondary: #03DAC6;
  --bg: #F4F5F7;
  --surface: #FFFFFF;
  --text: #1A1A2E;
  --text-muted: #6B7280;
  --border: #E5E7EB;
  --success: #10B981;
  --error: #EF4444;
  --warning: #F59E0B;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
  --shadow-purple: 0 4px 24px rgba(203,108,230,0.2);
  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
h1,h2,h3,h4,h5,h6 { font-weight: 600; line-height: 1.25; }

/* ── Utilities ──────────────────────────────────────────────── */
.hidden { display: none !important; }
.text-primary { color: var(--primary); }
.text-muted { color: var(--text-muted); }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.text-center { text-align: center; }

/* ── Shimmer ────────────────────────────────────────────────── */
@keyframes shimmer {
  0%   { background-position: -800px 0; }
  100% { background-position:  800px 0; }
}

.shimmer {
  background: linear-gradient(90deg, #ebebeb 0px, #f5f5f5 40px, #ebebeb 80px);
  background-size: 800px 100%;
  animation: shimmer 1.4s infinite linear;
  border-radius: var(--radius-md);
}

.shimmer-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.shimmer-img-portrait { aspect-ratio: 3/4; width: 100%; }
.shimmer-img-land     { aspect-ratio: 16/9; width: 100%; }

.shimmer-line { height: 13px; margin: 10px 16px; border-radius: 4px; }
.shimmer-line.w-80 { width: 80%; }
.shimmer-line.w-60 { width: 60%; }
.shimmer-line.w-40 { width: 40%; }
.shimmer-line.full { width: calc(100% - 32px); }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  font-family: inherit;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none !important; }

.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover:not(:disabled) { background: var(--primary-dark); box-shadow: var(--shadow-purple); transform: translateY(-1px); }

.btn-outline { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-outline:hover:not(:disabled) { background: rgba(203,108,230,0.06); }

.btn-secondary { background: white; color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover:not(:disabled) { background: var(--bg); }

.btn-success { background: var(--success); color: white; }
.btn-success:hover:not(:disabled) { opacity: 0.9; transform: translateY(-1px); }

.btn-error { background: var(--error); color: white; }
.btn-error:hover:not(:disabled) { opacity: 0.9; }

.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }
.btn-sm { padding: 0.4rem 0.875rem; font-size: 0.85rem; }
.btn-icon { padding: 0.5rem; border-radius: var(--radius-md); }

/* ── Form Fields (consistent everywhere) ────────────────────── */
.form-group { margin-bottom: 1.25rem; }

.form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: white;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(203,108,230,0.1);
}

.form-input:disabled, .form-select:disabled {
  background: var(--bg);
  color: var(--text-muted);
  cursor: not-allowed;
}

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='https://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-textarea { resize: vertical; min-height: 100px; }
.form-hint { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.3rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

/* ── Alerts ─────────────────────────────────────────────────── */
.alert {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem; font-weight: 500;
  margin-bottom: 1.25rem;
}
.alert-error   { background: #FEE2E2; color: #DC2626; }
.alert-success { background: #D1FAE5; color: #059669; }
.alert-warning { background: #FEF3C7; color: #D97706; }
.alert-info    { background: #EDE9FE; color: #cb6ce6; }

/* ── Portrait image container ───────────────────────────────── */
.img-portrait {
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #f0f0f0;
  position: relative;
}
.img-portrait img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.3s ease;
}

/* ── Card base ──────────────────────────────────────────────── */
.card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* ── Layout ─────────────────────────────────────────────────── */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ── Navbar ─────────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; width: 100%;
  background: white;
  border-bottom: 1px solid var(--border);
  z-index: 1000; height: 64px;
}

.navbar .container { display: flex; align-items: center; justify-content: space-between; height: 100%; }

.nav-brand { display: flex; align-items: center; gap: 0.625rem; font-size: 1.3rem; font-weight: 700; color: var(--primary); }
.nav-brand img { height: 32px; object-fit: contain; }

.nav-links { display: flex; gap: 1.5rem; align-items: center; }
.nav-link { font-size: 0.875rem; font-weight: 500; color: var(--text-muted); transition: color 0.2s; }
.nav-link:hover { color: var(--primary); }

.nav-actions { display: flex; gap: 0.5rem; align-items: center; }
.mobile-menu-btn { display: none; background: none; border: none; color: var(--text); cursor: pointer; padding: 0.4rem; }

/* ── Loaders ────────────────────────────────────────────────── */
.loader {
  width: 20px; height: 20px;
  border: 2.5px solid rgba(255,255,255,0.3);
  border-radius: 50%; border-top-color: white;
  animation: spin 0.75s linear infinite; display: inline-block;
}
.loader-dark { border-color: rgba(0,0,0,0.1); border-top-color: var(--primary); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Footer ─────────────────────────────────────────────────── */
.footer { background: #0D001A; color: rgba(255,255,255,0.65); padding: 4rem 0 2rem; margin-top: 5rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px,1fr)); gap: 2rem; margin-bottom: 3rem; }
.footer-col h4 { color: white; font-size: 0.9rem; margin-bottom: 1.25rem; letter-spacing: 0.05em; text-transform: uppercase; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a { color: #A78BFA; font-size: 0.875rem; transition: color 0.2s; }
.footer-col a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 1.5rem; text-align: center; color: #6B6B8F; font-size: 0.8rem; }

/* ── Events Grid & Cards ──────────────────────────────────────── */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
}

.event-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex; flex-direction: column;
}
.event-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.event-card .event-image {
  aspect-ratio: 3/4;
  overflow: hidden;
  position: relative;
  background: #f0f0f0;
}
.event-card .event-image img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.3s ease;
}
.event-card:hover .event-image img { transform: scale(1.04); }

.event-price-badge {
  position: absolute; bottom: 0.5rem; left: 0.5rem;
  background: rgba(0,0,0,0.75);
  color: white; font-size: 0.75rem; font-weight: 700;
  padding: 0.2rem 0.6rem; border-radius: 1rem;
  backdrop-filter: blur(4px);
}

.event-card .event-content { padding: 0.875rem; flex: 1; display: flex; flex-direction: column; gap: 0.25rem; }
.event-card .event-title { font-size: 0.875rem; font-weight: 600; line-height: 1.3; }
.event-card .event-org { font-size: 0.75rem; color: var(--text-muted); }

.event-card .event-details { margin-top: auto; padding-top: 0.5rem; display: flex; flex-direction: column; gap: 0.25rem; }
.event-card .event-detail-item { display: flex; align-items: center; gap: 0.3rem; font-size: 0.75rem; color: var(--text-muted); }
.event-card .event-detail-item .material-icons-round { font-size: 0.9rem; color: var(--primary); }
.event-card .btn { margin-top: 0.75rem; font-size: 0.8rem; padding: 0.5rem 1rem; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute; top: 64px; left: 0; width: 100%;
    background: white; flex-direction: column;
    padding: 1rem 1.5rem 1.5rem;
    box-shadow: var(--shadow); gap: 0.5rem; z-index: 999;
  }
  .nav-links.active { display: flex; }
  .nav-actions { display: none; }
  .nav-links.active .nav-actions {
    display: flex; flex-direction: column; width: 100%;
    margin-top: 0.75rem; padding-top: 0.75rem;
    border-top: 1px solid var(--border); gap: 0.5rem;
  }
  .nav-links.active .nav-actions .btn { width: 100%; }
  .mobile-menu-btn { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
}
