/* ═══════════════════════════════════════════
   Om Events — Premium Wellness Design
   Headspace/Calm-inspired aesthetic
   ═══════════════════════════════════════════ */

/* ─── DESIGN TOKENS ─── */
:root {
  --sage: #7C9A82;
  --sage-light: #9BB5A0;
  --sage-lighter: #E8F0EA;
  --sage-dark: #5F7D65;
  --sage-glow: rgba(124, 154, 130, 0.15);
  --gold: #C9A96E;
  --gold-light: #D4BA88;
  --gold-glow: rgba(201, 169, 110, 0.2);
  --bg: #FDFBF7;
  --bg-warm: #FAF7F2;
  --card: #FFFFFF;
  --charcoal: #2D3436;
  --text: #2D3436;
  --text-muted: #636E72;
  --text-light: #949EA2;
  --border: #E8E4DE;
  --border-light: #F0EDE8;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
  --shadow: 0 4px 16px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.1), 0 4px 12px rgba(0,0,0,0.05);
  --shadow-hover: 0 16px 48px rgba(0,0,0,0.12), 0 6px 16px rgba(0,0,0,0.06);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ─── RESET & BASE ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--charcoal);
  font-weight: 600;
  line-height: 1.3;
}

a {
  color: var(--sage-dark);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}
a:hover { color: var(--sage); }

::selection {
  background: var(--sage-lighter);
  color: var(--charcoal);
}

/* ─── PAGE TRANSITIONS ─── */
.page-enter {
  animation: pageIn 0.5s var(--ease) both;
}

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

/* ─── SCROLL REVEAL ─── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── HEADER ─── */
.header {
  background: rgba(253, 251, 247, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow 0.3s var(--ease);
}

.header.scrolled {
  box-shadow: var(--shadow);
}

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

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--sage-dark);
  cursor: pointer;
  letter-spacing: -0.5px;
  transition: opacity 0.2s;
}

.logo:hover { opacity: 0.8; }
.logo span { color: var(--gold); }

.nav-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.25s var(--ease);
  position: relative;
}

.nav-links a:hover {
  color: var(--sage-dark);
  background: var(--sage-glow);
}

.nav-links a.active {
  color: var(--sage-dark);
  font-weight: 600;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--sage);
  border-radius: 2px;
}

.nav-links .nav-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 6px;
  object-fit: cover;
  border: 2px solid var(--sage-light);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border: none;
  background: none;
  z-index: 110;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-8px);
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(253, 251, 247, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 105;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  animation: fadeIn 0.3s var(--ease);
}

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

.mobile-nav a {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--charcoal);
  padding: 0.75rem 2rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s var(--ease);
}

.mobile-nav a:hover, .mobile-nav a.active {
  color: var(--sage-dark);
  background: var(--sage-glow);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ─── HERO ─── */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--sage) 0%, var(--sage-dark) 60%, #4A6E50 100%);
  color: white;
  padding: 2rem 2rem 1.5rem;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 15% 80%, rgba(201, 169, 110, 0.15), transparent),
    radial-gradient(ellipse 500px 300px at 85% 20%, rgba(255, 255, 255, 0.08), transparent);
  pointer-events: none;
}

/* Decorative botanical SVG pattern */
.hero::after {
  content: '';
  position: absolute;
  top: -60px;
  right: -40px;
  width: 400px;
  height: 400px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpath d='M100 20 C100 20 130 60 130 100 C130 140 100 180 100 180 C100 180 70 140 70 100 C70 60 100 20 100 20Z' fill='none' stroke='rgba(255,255,255,0.06)' stroke-width='1'/%3E%3Cpath d='M60 50 C60 50 90 80 90 110 C90 140 60 170 60 170' fill='none' stroke='rgba(255,255,255,0.04)' stroke-width='1'/%3E%3Cpath d='M140 50 C140 50 110 80 110 110 C110 140 140 170 140 170' fill='none' stroke='rgba(255,255,255,0.04)' stroke-width='1'/%3E%3Ccircle cx='100' cy='60' r='3' fill='rgba(255,255,255,0.05)'/%3E%3Ccircle cx='100' cy='90' r='2' fill='rgba(255,255,255,0.04)'/%3E%3Ccircle cx='100' cy='120' r='2' fill='rgba(255,255,255,0.04)'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.8;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  margin-bottom: 2rem;
  backdrop-filter: blur(8px);
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  color: white;
  margin-bottom: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.15;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold-light);
}

.hero p {
  font-size: 1.15rem;
  opacity: 0.85;
  max-width: 520px;
  margin: 0 auto 2.5rem;
  font-weight: 300;
  line-height: 1.7;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  transition: all 0.35s var(--ease);
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 16px rgba(201, 169, 110, 0.3);
}

.hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(201, 169, 110, 0.45);
  color: white;
}

.hero-btn:active {
  transform: translateY(0);
}

.hero-btn svg {
  transition: transform 0.3s var(--ease);
}

.hero-btn:hover svg {
  transform: translateX(3px);
}

/* ─── CATEGORIES ─── */
.categories {
  max-width: 1200px;
  margin: -1.5rem auto 0;
  padding: 0 2rem;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.cat-btn {
  padding: 0.6rem 1.5rem;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  background: var(--card);
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s var(--ease);
  box-shadow: var(--shadow-sm);
}

.cat-btn:hover {
  border-color: var(--sage-light);
  color: var(--sage-dark);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.cat-btn.active {
  border-color: var(--sage);
  background: var(--sage);
  color: white;
  box-shadow: 0 4px 12px rgba(124, 154, 130, 0.3);
}

/* ─── SECTION ─── */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3.5rem 2rem;
}

.section h2 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  text-align: center;
  letter-spacing: -0.5px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2.5rem;
}

/* ─── EVENTS GRID ─── */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}

/* ─── EVENT CARD ─── */
.event-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.4s var(--ease);
  cursor: pointer;
  border: 1px solid var(--border-light);
  position: relative;
}

.event-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  border-radius: var(--radius) 0 0 var(--radius);
  transition: opacity 0.3s var(--ease);
}

.event-card[data-category="Reiki"]::before { background: var(--sage); }
.event-card[data-category="Pellowah"]::before { background: #9B8EC4; }
.event-card[data-category="Chi Activation"]::before { background: #D4826A; }
.event-card[data-category="Meditation"]::before { background: #7BA7C4; }
.event-card[data-category="Workshop"]::before { background: var(--gold); }

.event-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}

.card-image {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.card-image[data-category="Reiki"] {
  background: linear-gradient(135deg, #7C9A82 0%, #5F7D65 100%);
}
.card-image[data-category="Pellowah"] {
  background: linear-gradient(135deg, #9B8EC4 0%, #7B6EA8 100%);
}
.card-image[data-category="Chi Activation"] {
  background: linear-gradient(135deg, #D4826A 0%, #B86B55 100%);
}
.card-image[data-category="Meditation"] {
  background: linear-gradient(135deg, #7BA7C4 0%, #5E8DAD 100%);
}
.card-image[data-category="Workshop"] {
  background: linear-gradient(135deg, #C9A96E 0%, #B09558 100%);
}

.card-image .category-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(255, 255, 255, 0.95);
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--charcoal);
  letter-spacing: 0.3px;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.card-image .card-emoji {
  font-size: 3.5rem;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
  transition: transform 0.4s var(--ease);
}

.event-card:hover .card-emoji {
  transform: scale(1.12);
}

.card-body {
  padding: 1.5rem 1.75rem;
}

.card-date {
  font-size: 0.78rem;
  color: var(--sage);
  font-weight: 600;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.card-title {
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
  line-height: 1.3;
  letter-spacing: -0.3px;
}

.card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.6;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-light);
  border-top: 1px solid var(--border-light);
  padding-top: 1rem;
}

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

.card-spots {
  color: var(--sage);
  font-weight: 600;
  font-size: 0.8rem;
}

.card-spots.full {
  color: #D4826A;
}

.card-price {
  font-weight: 700;
  color: var(--gold);
  font-size: 0.9rem;
}

/* ─── EVENT DETAIL ─── */
.event-detail {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  cursor: pointer;
  padding: 0.4rem 0;
  transition: all 0.25s var(--ease);
}

.back-link:hover {
  color: var(--sage-dark);
  gap: 0.7rem;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2.5rem;
  align-items: start;
}

.detail-main {}
.detail-sidebar { position: sticky; top: 92px; }

.detail-header {
  margin-bottom: 2rem;
}

.detail-category {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--sage);
  color: white;
  padding: 0.35rem 1.1rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  letter-spacing: 0.3px;
}

.detail-title {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  line-height: 1.15;
  letter-spacing: -1px;
}

.detail-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  margin-bottom: 2rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  transition: background 0.2s var(--ease);
}

.info-item:hover {
  background: var(--bg-warm);
}

.info-item:nth-child(odd) {
  border-right: 1px solid var(--border-light);
}

.info-icon {
  font-size: 1.1rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sage-lighter);
  border-radius: 10px;
  flex-shrink: 0;
}

.info-label {
  font-size: 0.7rem;
  color: var(--text-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 2px;
}

.info-value {
  font-size: 0.92rem;
  color: var(--charcoal);
  font-weight: 500;
}


.host-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.host-photo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 3px 10px rgba(0,0,0,.14);
  border: 2px solid #fff;
  background: #fff;
  flex-shrink: 0;
}

/* ─── CALENDAR ACTIONS ─── */
.calendar-actions {
  margin-bottom: 2rem;
}

.calendar-actions h4 {
  font-size: 0.78rem;
  color: var(--text-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 0.75rem;
  font-family: 'Inter', sans-serif;
}

.calendar-btns {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cal-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.25rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s var(--ease);
  text-decoration: none;
  font-family: inherit;
  box-shadow: var(--shadow-sm);
}

.cal-btn:hover {
  border-color: var(--sage-light);
  color: var(--sage-dark);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.cal-btn svg {
  flex-shrink: 0;
}

.detail-description {
  background: var(--card);
  padding: 2.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  margin-bottom: 2rem;
  line-height: 1.85;
  box-shadow: var(--shadow-sm);
  font-size: 0.95rem;
  color: var(--text);
}

.detail-description h3 {
  margin: 2rem 0 0.75rem;
  font-size: 1.3rem;
}

.detail-description ul, .detail-description ol {
  padding-left: 1.5rem;
  margin: 0.75rem 0;
}

.detail-description li {
  margin-bottom: 0.4rem;
}

.detail-description p {
  margin-bottom: 1rem;
}

/* ─── ATTENDEES ─── */
.attendees-section {
  background: var(--card);
  padding: 2rem 2.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.attendees-section h3 {
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
}

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

.attendee {
  text-align: center;
  transition: transform 0.3s var(--ease);
}

.attendee:hover {
  transform: translateY(-4px);
}

.attendee-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--sage-lighter);
  margin: 0 auto 0.5rem;
  display: block;
  transition: all 0.3s var(--ease);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.attendee:hover .attendee-photo {
  border-color: var(--sage);
  box-shadow: 0 4px 16px rgba(124, 154, 130, 0.25);
}

.attendee-initial {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sage-lighter), var(--bg-warm));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.5rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--sage-dark);
  border: 3px solid var(--sage-lighter);
  transition: all 0.3s var(--ease);
}

.attendee:hover .attendee-initial {
  border-color: var(--sage);
  background: linear-gradient(135deg, var(--sage-glow), var(--sage-lighter));
}

.attendee-name {
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--charcoal);
}

.attendee-interests {
  font-size: 0.7rem;
  color: var(--text-light);
  margin-top: 0.15rem;
}

/* ─── RSVP FORM ─── */
.rsvp-section {
  background: var(--card);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.rsvp-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--sage), var(--gold));
}

.rsvp-section h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: var(--charcoal);
}

.rsvp-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
  position: relative;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 0.4rem;
  letter-spacing: 0.2px;
}

.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-family: inherit;
  transition: all 0.3s var(--ease);
  background: var(--bg);
  color: var(--text);
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none;
  border-color: var(--sage);
  background: var(--card);
  box-shadow: 0 0 0 4px var(--sage-glow);
}

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

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.submit-btn {
  background: linear-gradient(135deg, var(--sage), var(--sage-dark));
  color: white;
  padding: 0.95rem 2.5rem;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.35s var(--ease);
  width: 100%;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 12px rgba(124, 154, 130, 0.25);
  position: relative;
  overflow: hidden;
}

.submit-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255,255,255,0.1));
  opacity: 0;
  transition: opacity 0.3s;
}

.submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(124, 154, 130, 0.35);
}

.submit-btn:hover::after { opacity: 1; }

.submit-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(124, 154, 130, 0.2);
}

.submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* RSVP success */
.rsvp-success {
  text-align: center;
  padding: 2rem;
}

.rsvp-success .checkmark {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
  animation: popIn 0.5s var(--ease-bounce);
}

@keyframes popIn {
  from { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.15); }
  to { transform: scale(1); opacity: 1; }
}

.rsvp-success h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.rsvp-success p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* ─── ADMIN ─── */
.admin-login {
  max-width: 420px;
  margin: 5rem auto;
  padding: 2.5rem;
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.admin-login h2 {
  margin-bottom: 0.5rem;
  font-size: 1.8rem;
}

.admin-login .login-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.admin-panel {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.admin-header h2 {
  font-size: 1.8rem;
}

.admin-header .submit-btn {
  width: auto;
  padding: 0.7rem 1.5rem;
  font-size: 0.88rem;
  border-radius: var(--radius-sm);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.stat-card {
  background: var(--card);
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s var(--ease);
}

.stat-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--sage);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 0.3rem;
  letter-spacing: 0.3px;
}

.admin-section-title {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--charcoal);
}

.admin-table {
  width: 100%;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  border-collapse: separate;
  border-spacing: 0;
}

.admin-table th, .admin-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

.admin-table th {
  background: var(--bg-warm);
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.admin-table td {
  font-size: 0.88rem;
}

.admin-table tbody tr {
  transition: background 0.2s var(--ease);
}

.admin-table tbody tr:hover {
  background: var(--bg-warm);
}

.admin-table tbody tr:last-child td {
  border-bottom: none;
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  border: none;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  margin-right: 0.35rem;
  transition: all 0.25s var(--ease);
  letter-spacing: 0.2px;
}

.btn-sm:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.btn-edit {
  background: var(--sage-light);
  color: white;
}
.btn-delete {
  background: #e74c3c;
  color: white;
}
.btn-view {
  background: var(--gold);
  color: white;
}

.status-live {
  color: var(--sage);
  font-weight: 600;
  font-size: 0.82rem;
}

.status-draft {
  color: var(--text-light);
  font-weight: 500;
  font-size: 0.82rem;
}

/* ─── FOOTER ─── */
.footer {
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.6);
  padding: 4rem 2rem 3rem;
  text-align: center;
  margin-top: 5rem;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--sage), transparent);
}

.footer-inner {
  max-width: 600px;
  margin: 0 auto;
}

.footer h3 {
  font-family: 'Playfair Display', serif;
  color: white;
  margin-bottom: 0.75rem;
  font-size: 1.4rem;
  font-weight: 600;
}

.footer p {
  margin-bottom: 0.6rem;
  font-size: 0.88rem;
  line-height: 1.6;
}

.footer a {
  color: var(--gold-light);
  transition: color 0.2s;
}

.footer a:hover {
  color: var(--gold);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.footer-links a {
  font-size: 0.85rem;
}

.footer-copy {
  font-size: 0.78rem;
  opacity: 0.4;
  margin-top: 1.5rem;
}

.footer-divider {
  width: 40px;
  height: 2px;
  background: var(--sage-dark);
  margin: 1.5rem auto;
  border-radius: 2px;
  opacity: 0.5;
}

/* ─── ALERT/TOAST ─── */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--charcoal);
  color: white;
  padding: 1rem 1.75rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.9rem;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  animation: toastIn 0.4s var(--ease-bounce);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  max-width: 400px;
}

.toast.success {
  border-left: 4px solid var(--sage);
}

.toast.error {
  background: #e74c3c;
  border-left: 4px solid #c0392b;
}

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

/* ─── MODAL ─── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(45, 52, 54, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  animation: fadeIn 0.25s var(--ease);
  padding: 2rem;
}

.modal {
  background: var(--card);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.35s var(--ease-bounce);
}

@keyframes modalIn {
  from {
    transform: scale(0.95) translateY(12px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.modal h3 {
  margin-bottom: 1.75rem;
  font-size: 1.5rem;
}

/* ─── PROFILE ─── */
.profile-container {
  max-width: 600px;
  margin: 2rem auto;
  padding: 2rem;
}

.profile-header {
  text-align: center;
  margin-bottom: 2rem;
}

.profile-header h2 {
  font-size: 2rem;
  margin-bottom: 0.25rem;
}

.profile-photo-wrapper {
  position: relative;
  display: inline-block;
  cursor: pointer;
  margin-bottom: 0.5rem;
}

.profile-photo-wrapper:hover .profile-photo-overlay {
  opacity: 1;
}

.profile-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--sage-lighter);
  transition: border-color 0.3s var(--ease);
}

.profile-photo-wrapper:hover .profile-photo {
  border-color: var(--sage);
}

.profile-initial {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sage-lighter), var(--bg-warm));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 600;
  color: var(--sage-dark);
  border: 4px solid var(--sage-lighter);
  margin: 0 auto;
  transition: border-color 0.3s var(--ease);
}

.profile-photo-wrapper:hover .profile-initial {
  border-color: var(--sage);
}

.profile-photo-overlay {
  position: absolute;
  bottom: 0;
  right: 0;
  background: var(--sage);
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  border: 3px solid var(--card);
  transition: all 0.3s var(--ease);
  box-shadow: var(--shadow-sm);
}

.profile-form-card {
  background: var(--card);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

/* ─── EMPTY STATE ─── */
.empty-state {
  text-align: center;
  padding: 5rem 2rem;
  color: var(--text-muted);
}

.empty-state .emoji {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  display: block;
}

.empty-state p {
  font-size: 1rem;
  max-width: 400px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ─── LOADING ─── */
.loading {
  text-align: center;
  padding: 4rem;
  color: var(--text-muted);
}

.spinner {
  display: inline-block;
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--sage);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .detail-layout {
    grid-template-columns: 1fr;
  }
  .detail-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .header { padding: 0 1rem; }
  .header-inner { height: 60px; }
  .logo { font-size: 1.4rem; }

  .nav-links { display: none; }

  .hamburger { display: flex; }

  .hero { padding: 2rem 1.5rem 1.5rem; }
  .hero h1 { font-size: 2.2rem; }
  .hero p { font-size: 1rem; }
  .hero::after { width: 200px; height: 200px; top: -30px; right: -20px; }

  .categories { margin-top: -1rem; gap: 0.4rem; }
  .cat-btn { padding: 0.5rem 1rem; font-size: 0.8rem; }

  .events-grid { grid-template-columns: 1fr; }

  .detail-info { grid-template-columns: 1fr; }
  .info-item { border-right: none !important; }
  .detail-title { font-size: 2rem; }

  .stats-grid { grid-template-columns: 1fr; }

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

  .footer { padding: 3rem 1.5rem 2rem; }

  .toast {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    max-width: none;
  }

  .modal { padding: 1.75rem; }
  .modal-overlay { padding: 1rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.8rem; }
  .hero-badge { font-size: 0.72rem; padding: 0.35rem 1rem; }
  .card-image { height: 150px; }
  .admin-login { margin: 2rem 1rem; padding: 2rem; }
}

/* Featured practice night */
.featured-event-wrap {
  max-width: 980px;
  margin: -42px auto 42px;
  padding: 0 24px;
  position: relative;
  z-index: 5;
}
.featured-event {
  cursor: pointer;
  text-align: center;
  border-radius: 30px;
  padding: 34px 36px 32px;
  background: linear-gradient(135deg, #fff8f0 0%, #fff 48%, #f1ead7 100%);
  border: 2px solid rgba(212,168,83,.5);
  box-shadow: 0 28px 70px rgba(90,72,38,.18), 0 0 0 8px rgba(212,168,83,.08);
}
.featured-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  background: #d4a853;
  color: #fff;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .78rem;
  margin-bottom: 14px;
}
.featured-kicker::before { content: '★'; }
.featured-event h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  color: var(--charcoal);
  margin: 0 0 12px;
}
.featured-blurb {
  max-width: 720px;
  margin: 0 auto 22px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.6;
}
.featured-details {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 auto 24px;
}
.featured-details span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(124,154,130,.11);
  border: 1px solid rgba(124,154,130,.18);
  color: var(--charcoal);
  padding: 9px 13px;
  border-radius: 999px;
  font-size: .93rem;
  font-weight: 650;
}
.featured-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}
.featured-btn, .featured-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
}
.featured-btn {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--sage), #5d7f64);
  box-shadow: 0 12px 26px rgba(93,127,100,.28);
}
.featured-link {
  color: var(--sage-dark);
  background: #fff;
  border: 1px solid rgba(124,154,130,.25);
}
@media (max-width: 720px) {
  .featured-event-wrap { margin: -24px auto 30px; padding: 0 16px; }
  .featured-event { padding: 28px 20px; border-radius: 24px; }
  .featured-details { flex-direction: column; align-items: stretch; }
  .featured-details span { justify-content: center; border-radius: 18px; }
  .featured-actions { flex-direction: column; }
}

.source-actions {
  margin: 0 0 22px;
}
.source-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--sage), #5d7f64);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 14px 28px rgba(93,127,100,.22);
}
.source-btn:hover {
  transform: translateY(-1px);
}

.form-hint {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: .85rem;
}
input[type="file"] {
  width: 100%;
  padding: 12px;
  border: 1px dashed rgba(124,154,130,.45);
  border-radius: 14px;
  background: rgba(124,154,130,.06);
}
