/* ============================================================
   Scene ry - Cultural Association, Turku
   Dark Atmospheric Stylesheet
   ============================================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ---------- Custom Properties ---------- */
:root {
  --bg-primary: #0a0a0f;
  --bg-card: #12121a;
  --bg-secondary: #1a1a2e;
  --bg-footer: #070710;
  --accent-purple: #8b5cf6;
  --accent-purple-light: #a78bfa;
  --accent-purple-dark: #7c3aed;
  --accent-amber: #f59e0b;
  --accent-amber-light: #fbbf24;
  --text-primary: #f1f1f4;
  --text-secondary: #a0a0b8;
  --text-muted: #6b6b80;
  --border-color: #2a2a3e;
  --success: #22c55e;
  --error: #ef4444;
  --radius: 12px;
  --transition: 0.3s ease;
  --font: 'Inter', sans-serif;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-purple-dark) var(--bg-primary);
}

html::-webkit-scrollbar {
  width: 8px;
}

html::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

html::-webkit-scrollbar-thumb {
  background: var(--accent-purple-dark);
  border-radius: 4px;
}

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent-purple-light);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent-purple);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

/* ---------- Container ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============================================================
   1. SITE HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9995;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(139, 92, 246, 0.1);
  transition: background var(--transition);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo-text {
  color: var(--text-primary);
}

.logo-accent {
  color: var(--accent-purple);
}


/* ============================================================
   2. HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--bg-primary);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 15, 0.9) 0%,
    rgba(10, 10, 15, 0.4) 50%,
    rgba(10, 10, 15, 0.95) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 1.5rem;
}

.hero-title {
  font-size: 4rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, var(--text-primary), var(--accent-purple-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  font-weight: 400;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}


/* ============================================================
   3. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1.4;
}

.btn-primary {
  background: var(--accent-purple);
  color: #fff;
  border-color: var(--accent-purple);
}

.btn-primary:hover {
  background: var(--accent-purple-light);
  border-color: var(--accent-purple-light);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--accent-purple);
  border-color: var(--accent-purple);
}

.btn-outline:hover {
  background: var(--accent-purple);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3);
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
}

/* ============================================================
   4. EVENT CARDS
   ============================================================ */
.event-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.event-card-image {
  width: 100%;
  height: 200px;
  background: var(--bg-secondary);
  overflow: hidden;
}

.event-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.event-card:hover .event-card-image img {
  transform: scale(1.05);
}

.event-card-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--accent-purple);
  color: #fff;
  border-radius: 8px;
  padding: 0.4rem 0.6rem;
  text-align: center;
  min-width: 52px;
  z-index: 2;
}

.event-card-badge .day {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1;
}

.event-card-badge .month {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.event-card-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.event-card-content .event-type {
  align-self: flex-start;
}

.event-card-content .btn {
  align-self: flex-start;
  margin-top: auto;
}

.event-card-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.event-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.event-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.event-card-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
   5. EVENT TYPE TAGS
   ============================================================ */
.event-type {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 50px;
  line-height: 1.4;
}

.event-type-lan {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}

.event-type-club {
  background: rgba(139, 92, 246, 0.15);
  color: var(--accent-purple-light);
}

.event-type-festival {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-amber-light);
}

.event-type-other {
  background: rgba(107, 107, 128, 0.15);
  color: var(--text-muted);
}

/* ============================================================
   6. SECTIONS
   ============================================================ */
.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--bg-secondary);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Event grid */
.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

/* ============================================================
   7. EQUIPMENT RENTAL GRID
   ============================================================ */
.equipment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.equipment-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  transition: border-color var(--transition), transform var(--transition);
}

.equipment-card:hover {
  border-color: var(--accent-purple);
  transform: translateY(-2px);
}

.equipment-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(139, 92, 246, 0.1);
  border-radius: 16px;
  font-size: 1.75rem;
  color: var(--accent-purple);
}

.equipment-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.equipment-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================================
   8. CALENDAR
   ============================================================ */
.calendar {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
}

/* Calendar header */
.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: var(--bg-secondary);
  border-radius: var(--radius) var(--radius) 0 0;
}

.cal-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.cal-prev,
.cal-next {
  background: rgba(139, 92, 246, 0.15);
  border: none;
  color: var(--accent-purple-light);
  width: 34px;
  height: 34px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.cal-prev:hover,
.cal-next:hover {
  background: var(--accent-purple);
  color: #fff;
}

/* Calendar 7-column grid (shared by day names + date cells) */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

/* Day name row */
.cal-day-name {
  padding: 0.75rem 0.5rem;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
}

/* Date cells */
.cal-date,
.cal-empty {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 0.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  min-height: 54px;
  cursor: default;
  transition: background var(--transition);
}

.cal-empty {
  background: rgba(10, 10, 15, 0.3);
}

.cal-date:hover {
  background: rgba(139, 92, 246, 0.05);
}

.cal-today {
  background: rgba(139, 92, 246, 0.15);
  color: var(--accent-purple-light);
  font-weight: 700;
}

/* Event day */
a.cal-has-event {
  cursor: pointer;
  color: var(--text-primary);
  font-weight: 600;
  text-decoration: none;
}

a.cal-has-event:hover {
  background: rgba(139, 92, 246, 0.12);
}

/* Event label inside cell (visible on larger screens) */
.cal-event-label {
  font-size: 0.6rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--accent-purple-light);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  display: block;
  margin-top: 2px;
}

.cal-today .cal-event-label {
  color: #fff;
}

/* Tooltip on hover */
.cal-tooltip {
  display: none;
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card);
  border: 1px solid var(--accent-purple);
  color: var(--text-primary);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.4rem 0.7rem;
  border-radius: 6px;
  white-space: nowrap;
  z-index: 10;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.cal-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--accent-purple);
}

a.cal-has-event:hover .cal-tooltip {
  display: block;
}

/* Selected cell on mobile */
a.cal-has-event.cal-selected {
  background: rgba(139, 92, 246, 0.2);
  box-shadow: inset 0 0 0 2px var(--accent-purple);
}

/* Mobile popup bar at bottom of calendar */
.cal-mobile-popup {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
}

.cal-popup-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.cal-popup-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-purple-light);
  white-space: nowrap;
  padding: 0.4rem 0.9rem;
  background: rgba(139, 92, 246, 0.15);
  border-radius: 6px;
  transition: background 0.2s;
}

.cal-popup-link:hover {
  background: var(--accent-purple);
  color: #fff;
}

/* Mobile: add dot indicator back, hide label */
@media (max-width: 768px) {
  .cal-event-label {
    display: none;
  }

  a.cal-has-event .cal-num::after {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    background: var(--accent-purple);
    border-radius: 50%;
    margin-left: 3px;
    vertical-align: middle;
  }

  a.cal-has-event.cal-today .cal-num::after {
    background: #fff;
  }
}

/* ============================================================
   9. CONTACT FORM
   ============================================================ */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.form-control,
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--text-primary);
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control::placeholder,
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-control:focus,
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent-purple);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

textarea.form-control,
.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

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

/* Flash messages */
.flash-message {
  padding: 1rem 1.25rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.flash-success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: var(--success);
}

.flash-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--error);
}

/* ============================================================
   10. FOOTER
   ============================================================ */
.site-footer {
  background: var(--bg-footer);
  padding: 4rem 0 0;
  border-top: 1px solid var(--border-color);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 1rem;
  line-height: 1.7;
  max-width: 320px;
}

.footer-nav h4,
.footer-contact h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-nav a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-nav a:hover {
  color: var(--accent-purple);
}

.footer-contact p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.footer-contact a {
  color: var(--text-secondary);
}

.footer-contact a:hover {
  color: var(--accent-purple);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ============================================================
   11. RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  /* Hero */
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.05rem;
  }

  /* Section */
  .section {
    padding: 3.5rem 0;
  }

  .section-header h2 {
    font-size: 1.75rem;
  }

  /* Grids */
  .events-grid,
  .equipment-grid {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Forms */
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   12. ADMIN STYLES
   ============================================================ */
.admin-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
}

.admin-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 60px;
}

.admin-header-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-header-brand .admin-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  background: var(--bg-secondary);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

.admin-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.admin-sidebar {
  width: 240px;
  background: var(--bg-card);
  border-right: 1px solid var(--border-color);
  padding: 1.5rem 0;
}

.admin-sidebar a {
  display: block;
  padding: 0.6rem 1.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
}

.admin-sidebar a:hover,
.admin-sidebar a.active {
  background: rgba(139, 92, 246, 0.1);
  color: var(--accent-purple-light);
}

.admin-content {
  flex: 1;
  padding: 2rem;
}

.admin-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

/* Admin tables */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}

.admin-table th,
.admin-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.9rem;
}

.admin-table th {
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.admin-table tbody tr:nth-child(even) {
  background: rgba(26, 26, 46, 0.3);
}

.admin-table tbody tr:hover {
  background: rgba(139, 92, 246, 0.05);
}

.admin-table td {
  color: var(--text-secondary);
}

/* Admin actions */
.admin-actions {
  display: flex;
  gap: 0.5rem;
}

.admin-actions .btn {
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
}

.admin-btn-danger {
  background: rgba(239, 68, 68, 0.15);
  color: var(--error);
  border-color: transparent;
}

.admin-btn-danger:hover {
  background: var(--error);
  color: #fff;
}

/* ============================================================
   13. ANIMATIONS
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* ============================================================
   14. MISC / EVENT DETAIL / BREADCRUMBS / STATS
   ============================================================ */

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 1rem 0;
}

.breadcrumbs a {
  color: var(--text-secondary);
}

.breadcrumbs a:hover {
  color: var(--accent-purple);
}

.breadcrumbs .separator {
  color: var(--text-muted);
}

/* Event detail page */
.event-detail-header {
  position: relative;
  height: 400px;
  display: flex;
  align-items: flex-end;
  background: var(--bg-secondary);
  overflow: hidden;
}

.event-detail-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg-primary) 0%, transparent 60%);
  z-index: 1;
}

.event-detail-header img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-detail-header .container {
  position: relative;
  z-index: 2;
  padding-bottom: 2rem;
}

.event-detail-content {
  padding: 2rem 0 4rem;
}

.event-detail-content h1 {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.event-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.event-detail-body {
  max-width: 800px;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.event-detail-body p {
  margin-bottom: 1.25rem;
}

/* Stats / numbers section (about page) */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--accent-purple);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Stats responsive */
@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .stat-item,
  .stat-card {
    padding: 1.25rem 0.75rem;
  }

  .stat-number {
    font-size: 1.75rem;
  }

  .event-detail-header {
    height: 260px;
  }

  .event-detail-content h1 {
    font-size: 1.75rem;
  }
}

/* Utility: text alignment */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

/* Utility: margin helpers */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* ============================================================
   15. ADDITIONAL PAGE STYLES
   ============================================================ */

/* Desktop nav */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.desktop-nav a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
  padding: 0.25rem 0;
}

.desktop-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-purple);
  transition: width var(--transition);
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: var(--text-primary);
}

.desktop-nav a.active::after,
.desktop-nav a:hover::after {
  width: 100%;
}

/* Hamburger button — hidden on desktop */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 9999;
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.mobile-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.mobile-toggle.open span:nth-child(2) {
  opacity: 0;
}
.mobile-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu — fullscreen overlay, hidden by default */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0a0a0f;
  z-index: 9990;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.mobile-menu.open {
  display: flex;
}


.mobile-menu a {
  display: block;
  width: 100%;
  text-align: center;
  padding: 1.25rem 2rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
  transition: background 0.2s, color 0.2s;
}

.mobile-menu a:first-child {
  border-top: 1px solid var(--border-color);
}

.mobile-menu a:hover {
  background: rgba(139, 92, 246, 0.1);
  color: var(--text-primary);
}

.mobile-menu a.active {
  color: var(--accent-purple-light);
  background: rgba(139, 92, 246, 0.08);
}

/* Responsive show/hide */
@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
}

@media (min-width: 769px) {
  .mobile-menu {
    display: none !important;
  }
}

/* Hero section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #0a0a0f 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(139,92,246,0.08) 0%, transparent 60%);
  animation: pulse 6s ease-in-out infinite;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,10,15,0.4) 0%, rgba(10,10,15,0.8) 100%);
}

.hero-content {
  position: relative;
  text-align: center;
  z-index: 2;
  padding: 2rem;
}

.hero-content h1 {
  font-size: 5rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.text-accent {
  color: var(--accent-purple);
  margin-left: 0.15em;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Page hero (inner pages) */
.page-hero {
  padding: 8rem 0 3rem;
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  text-align: center;
}

.page-hero h1 {
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.page-hero p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.page-hero-event {
  text-align: left;
  padding: 8rem 0 2rem;
}

/* Section footer */
.section-footer {
  text-align: center;
  margin-top: 3rem;
}

/* Event meta */
.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0.75rem 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.event-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* Stat items */
.stat-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
}

/* Events toolbar */
.events-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.event-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.view-toggle {
  display: flex;
  gap: 0.5rem;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}

.empty-state p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

/* Event detail grid */
.event-detail-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3rem;
  align-items: start;
}

.event-detail-main {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.event-detail-image {
  margin-bottom: 2rem;
  border-radius: var(--radius);
  overflow: hidden;
}

.event-detail-image img {
  width: 100%;
  height: auto;
  display: block;
}

.event-detail-description {
  margin-bottom: 2rem;
}

.event-detail-sidebar {}

.event-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.event-info-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

.event-info-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.9rem;
}

.event-info-row:last-child {
  border-bottom: none;
}

.event-info-label {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.event-info-row span:last-child {
  color: var(--text-primary);
}

.btn-block {
  display: block;
  width: 100%;
  text-align: center;
}

@media (max-width: 768px) {
  .event-detail-grid {
    grid-template-columns: 1fr;
  }

  .hero-content h1 {
    font-size: 3rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .page-hero h1 {
    font-size: 2rem;
  }

  .events-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
}

/* About page */
.about-content {
  max-width: 800px;
}

.about-text h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.about-text p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}

/* Values grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.value-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color var(--transition);
}

.value-card:hover {
  border-color: var(--accent-purple);
}

.value-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.value-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.value-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* Timeline */
.timeline {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  padding-left: 3rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-color);
}

.timeline-item {
  position: relative;
  padding-bottom: 2.5rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -3rem;
  top: 0.4rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-purple);
  border: 2px solid var(--bg-primary);
  transform: translateX(-5px);
}

.timeline-year {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-purple);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.timeline-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.timeline-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* CTA block */
.cta-block {
  text-align: center;
  padding: 3rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
}

.cta-block h2 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.cta-block p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

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

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 3rem;
  align-items: start;
}

.contact-form-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.contact-form-wrapper form .btn {
  margin-top: 0.5rem;
  padding: 0.85rem 2.5rem;
  font-size: 1rem;
}

.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.contact-info-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.contact-info-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.contact-info-card ul {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0;
}

.contact-info-card ul li {
  color: var(--text-secondary);
  font-size: 0.9rem;
  padding: 0.3rem 0;
  padding-left: 1rem;
  position: relative;
}

.contact-info-card ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent-purple);
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
}

.contact-info-item:last-child {
  border-bottom: none;
}

.contact-icon {
  font-size: 1.25rem;
}

.contact-info-item strong {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.contact-info-item p {
  margin: 0;
}

.required {
  color: var(--error);
}

.flash {
  padding: 1rem 1.25rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.field-error {
  color: var(--error);
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

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

/* Footer columns (match used class names) */
.footer-col h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.footer-col a {
  display: block;
  color: var(--text-secondary);
  font-size: 0.9rem;
  padding: 0.25rem 0;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--accent-purple);
}

.footer-col p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 1rem;
}

/* Admin extras */
.admin-login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-primary);
}

.admin-login-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 2.5rem;
  width: 100%;
  max-width: 400px;
}

.admin-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 2rem;
}

.admin-nav {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.admin-nav a {
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.5rem 0.9rem;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}

.admin-nav a:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.admin-nav a.active {
  background: rgba(139, 92, 246, 0.12);
  color: var(--accent-purple-light);
}

.admin-nav .admin-nav-logout {
  color: var(--text-muted);
  margin-left: 0.5rem;
}

.admin-nav .admin-nav-logout:hover {
  background: rgba(239, 68, 68, 0.1);
  color: var(--error);
}

/* Admin mobile responsive */
@media (max-width: 768px) {
  .admin-header-inner {
    flex-direction: column;
    height: auto;
    padding: 0.75rem 1rem;
    gap: 0.5rem;
  }

  .admin-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.15rem;
  }

  .admin-nav a {
    font-size: 0.78rem;
    padding: 0.4rem 0.6rem;
  }

  .admin-nav .admin-nav-logout {
    margin-left: 0;
  }

  .admin-content {
    padding: 0.75rem 0;
  }

  .admin-content .container {
    padding: 0 0.5rem;
  }

  .admin-card {
    padding: 0.75rem;
    border-radius: 8px;
  }

  .admin-content h2 {
    font-size: 1.2rem;
  }

  .form-row {
    grid-template-columns: 1fr !important;
  }

  .admin-table th,
  .admin-table td {
    padding: 0.5rem 0.5rem;
    font-size: 0.78rem;
  }

  .admin-actions {
    flex-direction: column;
    gap: 0.3rem;
  }

  .admin-actions .btn {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
  }

  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .admin-image-preview {
    flex-direction: column;
    align-items: flex-start;
  }
}

.admin-badge {
  background: var(--error);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  border-radius: 10px;
  margin-left: 0.3rem;
  vertical-align: middle;
}

.admin-image-preview {
  margin-top: 0.75rem;
  display: flex;
  align-items: flex-end;
  gap: 1rem;
}

.admin-image-preview img {
  width: 160px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.admin-image-remove {
  font-size: 0.85rem;
  color: var(--error);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.form-group input[type="file"] {
  padding: 0.5rem;
  font-size: 0.85rem;
}

.admin-row-unread {
  background: rgba(139, 92, 246, 0.05) !important;
}

.message-cell {
  max-width: 300px;
}

.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  color: var(--error);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
  background: var(--error);
  color: white;
}

.table-responsive {
  overflow-x: auto;
}

/* Calendar container */
.calendar-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
}

/* Scrolled header */
.site-header.scrolled {
  background: rgba(10, 10, 15, 0.95);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

/* Event card badge month text */
.badge-day {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
}

.badge-month {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.9;
}

/* Event card placeholder (when no image) */
.event-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(139,92,246,0.1) 100%);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
}

/* Select inputs */
select {
  appearance: none;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 0.95rem;
  width: 100%;
  cursor: pointer;
  transition: border-color var(--transition);
}

select:focus {
  outline: none;
  border-color: var(--accent-purple);
}
