/* ===== PODIUM SCHOOLS — App CSS ===== */
/* Extends theme.css. Used by all app pages (events, dashboard, etc.) */

/* ===== SHARED APP SHELL ===== */
.app-nav {
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(254, 247, 236, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(26,26,46,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.app-nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.app-nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--indigo);
  letter-spacing: -0.02em;
}

.app-nav-city {
  font-size: 0.72rem;
  color: var(--muted);
  background: rgba(26,26,46,0.06);
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-weight: 500;
}

.app-nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.app-nav-links a {
  font-size: 0.88rem;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.app-nav-links a:hover { color: var(--indigo); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: all 0.2s ease;
  font-family: 'DM Sans', sans-serif;
}
.btn-primary {
  background: var(--saffron);
  color: white;
}
.btn-primary:hover {
  background: var(--saffron-2);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(249,115,22,0.3);
}
.btn-outline {
  background: transparent;
  color: var(--indigo);
  border: 1.5px solid rgba(26,26,46,0.2);
}
.btn-outline:hover {
  border-color: var(--indigo);
  background: rgba(26,26,46,0.04);
}
.btn-sm { padding: 0.4rem 0.85rem; font-size: 0.8rem; }
.btn-danger { background: #EF4444; color: white; }
.btn-danger:hover { background: #DC2626; }
.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: none;
  padding: 0.4rem 0.6rem;
}

/* ===== PAGE WRAPPER ===== */
.page-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.page-header {
  margin-bottom: 2rem;
}
.page-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--indigo);
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.page-sub {
  font-size: 0.95rem;
  color: var(--muted);
}

/* ===== EVENTS LISTING ===== */
.search-bar {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.search-input {
  flex: 1;
  min-width: 220px;
  padding: 0.7rem 1rem;
  border: 1.5px solid rgba(26,26,46,0.14);
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  background: white;
  color: var(--dark);
  transition: border-color 0.2s;
}
.search-input:focus {
  outline: none;
  border-color: var(--saffron);
}

.category-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.cat-chip {
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  border: 1.5px solid rgba(26,26,46,0.12);
  color: var(--muted);
  background: white;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.cat-chip:hover {
  border-color: var(--saffron);
  color: var(--saffron);
}
.cat-chip.active {
  background: var(--indigo);
  color: white;
  border-color: var(--indigo);
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.5rem;
}

.event-card {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid rgba(26,26,46,0.07);
  box-shadow: 0 2px 12px rgba(26,26,46,0.05);
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}
.event-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--saffron);
}
.event-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(26,26,46,0.1);
}

.event-card-cat {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--saffron);
  margin-bottom: 0.6rem;
}
.event-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--indigo);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}
.event-card-meta {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 1rem;
}
.event-card-meta span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.event-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.event-card-school {
  font-size: 0.78rem;
  color: var(--muted);
}
.event-card-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  background: rgba(34,197,94,0.1);
  color: #16a34a;
}

.events-empty {
  text-align: center;
  padding: 5rem 2rem;
  color: var(--muted);
}
.events-empty h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--indigo);
  margin-bottom: 0.5rem;
}

/* ===== EVENT DETAIL ===== */
.event-detail-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2.5rem;
  align-items: start;
}

.event-detail-header {
  margin-bottom: 1.5rem;
}
.event-detail-cat {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--saffron);
  margin-bottom: 0.75rem;
}
.event-detail-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--indigo);
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}
.event-detail-school {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.event-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}
.event-meta-item {
  background: rgba(254,247,236,0.8);
  border: 1px solid rgba(26,26,46,0.07);
  border-radius: 10px;
  padding: 0.9rem 1rem;
}
.event-meta-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.event-meta-value {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--indigo);
}

.event-description {
  font-size: 0.95rem;
  line-height: 1.75;
  color: #374151;
  margin-bottom: 2rem;
}

/* Registration card (sticky sidebar) */
.reg-card {
  background: white;
  border-radius: 20px;
  border: 1px solid rgba(26,26,46,0.09);
  box-shadow: 0 4px 24px rgba(26,26,46,0.08);
  padding: 1.75rem;
  position: sticky;
  top: 80px;
}
.reg-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--indigo);
  margin-bottom: 1.5rem;
}

/* ===== FORM STYLES ===== */
.form-group {
  margin-bottom: 1.1rem;
}
.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--indigo);
  margin-bottom: 0.4rem;
}
.form-label .req { color: var(--saffron); }
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid rgba(26,26,46,0.14);
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  color: var(--dark);
  background: white;
  transition: border-color 0.2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--saffron);
  box-shadow: 0 0 0 3px rgba(249,115,22,0.1);
}
.form-textarea { resize: vertical; min-height: 80px; }

.consent-box {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1rem;
  background: rgba(254,247,236,0.8);
  border-radius: 10px;
  border: 1px solid rgba(249,115,22,0.2);
  margin-bottom: 1.25rem;
}
.consent-box input[type=checkbox] {
  margin-top: 2px;
  width: 16px; height: 16px;
  accent-color: var(--saffron);
  flex-shrink: 0;
}
.consent-box label {
  font-size: 0.78rem;
  color: #4B5563;
  line-height: 1.6;
}

.form-section-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--muted);
  margin: 1.5rem 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(26,26,46,0.08);
}

.alert {
  padding: 0.85rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}
.alert-error {
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.2);
  color: #DC2626;
}
.alert-success {
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.2);
  color: #16a34a;
}

/* ===== SUCCESS PAGE ===== */
.success-wrap {
  max-width: 520px;
  margin: 5rem auto;
  text-align: center;
  padding: 0 1.5rem;
}
.success-icon {
  width: 72px; height: 72px;
  background: rgba(34,197,94,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
}
.success-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--indigo);
  margin-bottom: 1rem;
}
.success-body {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 2rem;
}

/* ===== DASHBOARD ===== */
.dash-nav {
  background: var(--indigo);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dash-nav-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: white;
  text-decoration: none;
}
.dash-nav-school {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
}
.dash-nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.dash-nav-links a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
}
.dash-nav-links a:hover { color: white; }

.dash-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}
.dash-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--indigo);
  font-weight: 700;
}

.dash-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}
.dash-stat {
  background: white;
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  border: 1px solid rgba(26,26,46,0.07);
}
.dash-stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--saffron);
  line-height: 1;
  margin-bottom: 0.3rem;
}
.dash-stat-label {
  font-size: 0.8rem;
  color: var(--muted);
}

.dash-events-table {
  background: white;
  border-radius: 16px;
  border: 1px solid rgba(26,26,46,0.07);
  overflow: hidden;
}
.dash-events-table table {
  width: 100%;
  border-collapse: collapse;
}
.dash-events-table th {
  padding: 0.85rem 1.25rem;
  text-align: left;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--muted);
  background: rgba(254,247,236,0.8);
  border-bottom: 1px solid rgba(26,26,46,0.07);
}
.dash-events-table td {
  padding: 1rem 1.25rem;
  font-size: 0.88rem;
  color: var(--dark);
  border-bottom: 1px solid rgba(26,26,46,0.05);
  vertical-align: middle;
}
.dash-events-table tr:last-child td { border-bottom: none; }
.dash-events-table tr:hover td { background: rgba(254,247,236,0.5); }

.status-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
}
.status-published { background: rgba(34,197,94,0.1); color: #16a34a; }
.status-draft { background: rgba(107,114,128,0.1); color: var(--muted); }

.table-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Form page (add/edit event) */
.form-card {
  background: white;
  border-radius: 20px;
  padding: 2rem 2.5rem;
  border: 1px solid rgba(26,26,46,0.07);
  box-shadow: 0 2px 16px rgba(26,26,46,0.05);
  max-width: 760px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* ===== AUTH PAGES ===== */
.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: var(--cream);
}
.auth-card {
  background: white;
  border-radius: 24px;
  padding: 2.5rem;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 8px 40px rgba(26,26,46,0.1);
  border: 1px solid rgba(26,26,46,0.06);
}
.auth-brand {
  text-align: center;
  margin-bottom: 2rem;
}
.auth-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--indigo);
}
.auth-sub {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.25rem;
}
.auth-switch {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.auth-switch a {
  color: var(--saffron);
  font-weight: 600;
  text-decoration: none;
}

/* ===== REGISTRATIONS TABLE ===== */
.reg-table-wrap {
  background: white;
  border-radius: 16px;
  border: 1px solid rgba(26,26,46,0.07);
  overflow-x: auto;
}
.reg-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}
.reg-table-wrap th {
  padding: 0.85rem 1rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--muted);
  background: rgba(254,247,236,0.8);
  border-bottom: 1px solid rgba(26,26,46,0.07);
  text-align: left;
}
.reg-table-wrap td {
  padding: 0.9rem 1rem;
  font-size: 0.85rem;
  color: var(--dark);
  border-bottom: 1px solid rgba(26,26,46,0.05);
}
.reg-table-wrap tr:last-child td { border-bottom: none; }

/* ===== HERO BANNER (events page top) ===== */
.events-hero {
  background: var(--indigo);
  padding: 3rem 2rem;
  text-align: center;
}
.events-hero-inner {
  max-width: 700px;
  margin: 0 auto;
}
.events-hero-eyebrow {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--saffron);
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.events-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: white;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}
.events-hero-sub {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 2rem;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .event-detail-grid {
    grid-template-columns: 1fr;
  }
  .reg-card {
    position: static;
  }
  .event-meta-grid {
    grid-template-columns: 1fr;
  }
  .dash-stats {
    grid-template-columns: 1fr 1fr;
  }
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
  .dash-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .app-nav-links { gap: 0.75rem; }
}
@media (max-width: 480px) {
  .app-nav { padding: 0.75rem 1rem; }
  .page-wrap { padding: 1.5rem 1rem 3rem; }
  .dash-page { padding: 1.5rem 1rem 3rem; }
  .dash-stats { grid-template-columns: 1fr; }
  .auth-card { padding: 1.75rem 1.25rem; }
  .form-card { padding: 1.5rem 1.25rem; }
  .events-hero { padding: 2rem 1rem; }
  .events-grid { grid-template-columns: 1fr; }
}
