/* Montclair Mahjong Social Club - Brand Redesign */
/* Colors: #fc3407 (primary orange-red), #fcbc9f (peach), #fdebe9 (blush), #fbd7d1 (light pink), #fc300a (deep orange) */
/* Fonts: Lovelo (titles/display) + Playfair Display (headings/body) + Lato (UI) */

/* Lovelo - self-hosted */
@font-face {
  font-family: 'Lovelo';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('/static/fonts/Lovelo-Black.woff') format('woff');
}
@font-face {
  font-family: 'Lovelo';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/static/fonts/Lovelo-LineBold.woff') format('woff');
}
@font-face {
  font-family: 'Lovelo';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/static/fonts/Lovelo-LineLight.woff') format('woff');
}

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Lato:wght@300;400;700&display=swap');

:root {
  --primary:       #fc3407;   /* vibrant orange-red */
  --primary-deep:  #e02e06;   /* deeper red-orange */
  --primary-light: #fc300a;   /* slightly lighter */
  --peach:         #fcbc9f;   /* warm peach */
  --blush:         #fdebe9;   /* very light pink */
  --blush-mid:     #fbd7d1;   /* soft pink */
  --cream:         #fff9f8;   /* off-white warm */
  --warm-white:    #fffaf9;
  --text-dark:     #2a1a18;
  --text-mid:      #6b4a45;
  --text-light:    #a07070;
  --border:        #f5d5ce;
  --shadow:        0 4px 20px rgba(252, 52, 7, 0.12);
  --shadow-lg:     0 8px 40px rgba(252, 52, 7, 0.18);
}

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

body {
  font-family: 'Lato', sans-serif;
  color: var(--text-dark);
  background: var(--cream);
}

/* Font utility classes */
.font-lovelo   { font-family: 'Lovelo', sans-serif !important; }
.font-playfair { font-family: 'Playfair Display', serif !important; }
.font-lato     { font-family: 'Lato', sans-serif !important; }

/* Titles & large display text → Lovelo */
h1 {
  font-family: 'Lovelo', sans-serif;
  font-weight: 900;
  letter-spacing: -0.01em;
}
/* Subheadings, card titles, body headings → Playfair Display */
h2, h3, h4, h5 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
}

/* ── NAVBAR ─────────────────────────────────── */
.navbar {
  background: white;
  box-shadow: 0 2px 16px rgba(252,52,7,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-logo-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.nav-brand-text {
  font-family: 'Lovelo', sans-serif;
  font-weight: 900;
  font-size: 0.95rem;
  color: var(--primary);
  line-height: 1.15;
  text-decoration: none;
  letter-spacing: 0.04em;
}

.nav-link {
  color: var(--text-mid);
  text-decoration: none;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  transition: color 0.2s;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}
.nav-link:hover, .nav-link.active {
  color: var(--primary);
  border-color: var(--primary);
}

/* ── HERO ──────────────────────────────────── */
.hero-section {
  background: var(--blush);
  position: relative;
  overflow: hidden;
  padding: 4rem 0 0;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 0%, rgba(252,188,159,0.4) 0%, transparent 60%),
    radial-gradient(ellipse at 10% 100%, rgba(252,52,7,0.06) 0%, transparent 50%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: white;
  border: 1.5px solid var(--peach);
  color: var(--primary);
  padding: 0.35rem 1rem;
  border-radius: 2rem;
  font-family: 'Lato', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  box-shadow: 0 2px 8px rgba(252,52,7,0.1);
}

.hero-title {
  font-family: 'Lovelo', sans-serif;
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.15;
  color: var(--text-dark);
  margin-bottom: 1rem;
  letter-spacing: 0.01em;
}

.hero-title span {
  color: var(--primary);
}

.hero-subtitle {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--text-mid);
  line-height: 1.75;
  max-width: 500px;
  margin-bottom: 2rem;
  font-weight: 400;
  font-style: italic;
}

.hero-founders-img {
  width: 100%;
  max-width: 420px;
  border-radius: 2rem 2rem 0 0;
  object-fit: cover;
  object-position: top;
  display: block;
}

/* ── BUTTONS ───────────────────────────────── */
.btn-primary {
  background: var(--primary);
  color: white;
  padding: 0.85rem 2rem;
  border-radius: 3rem;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  display: inline-block;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(252,52,7,0.35);
  letter-spacing: 0.01em;
}
.btn-primary:hover {
  background: var(--primary-deep);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(252,52,7,0.4);
  color: white;
}

.btn-secondary {
  background: white;
  color: var(--primary);
  padding: 0.85rem 2rem;
  border-radius: 3rem;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid var(--primary);
  cursor: pointer;
  display: inline-block;
  transition: all 0.2s;
}
.btn-secondary:hover {
  background: var(--blush);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  padding: 0.7rem 1.5rem;
  border-radius: 3rem;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  border: 2px solid var(--primary);
  cursor: pointer;
  display: inline-block;
  transition: all 0.2s;
}
.btn-outline:hover {
  background: var(--primary);
  color: white;
}

.btn-white {
  background: white;
  color: var(--primary);
  padding: 0.85rem 2rem;
  border-radius: 3rem;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  display: inline-block;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.2);
  color: var(--primary);
}

/* ── SECTION HEADERS ───────────────────────── */
.section-eyebrow {
  font-family: 'Lato', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: 'Lovelo', sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 900;
  color: var(--text-dark);
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.floral-divider {
  text-align: center;
  margin: 0.75rem 0;
  opacity: 0.7;
}
.floral-divider img {
  height: 48px;
  width: auto;
}

/* ── EVENT CARDS ────────────────────────────── */
.event-card {
  background: white;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1.5px solid var(--border);
}
.event-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.event-type-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 2rem;
  font-family: 'Lato', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.badge-class        { background: #fdebe9; color: var(--primary); }
.badge-open_play    { background: #fdf0e8; color: #c4560a; }
.badge-popup        { background: #fef3e8; color: #c47a0a; }
.badge-teen_family  { background: #f0fde8; color: #4a8a0a; }
.badge-private_event{ background: #f5e8fd; color: #7a0ac4; }

.spots-indicator {
  height: 6px;
  background: var(--blush-mid);
  border-radius: 3px;
  overflow: hidden;
}
.spots-fill { height: 100%; border-radius: 3px; transition: width 0.5s; }
.spots-full   { background: var(--primary); }
.spots-almost { background: #f97316; }
.spots-good   { background: #22c55e; }

/* ── OFFERING CARDS ─────────────────────────── */
.offering-card {
  background: white;
  border-radius: 1.25rem;
  padding: 2rem 1.5rem;
  text-align: center;
  border: 1.5px solid var(--border);
  transition: all 0.2s;
  box-shadow: 0 2px 12px rgba(252,52,7,0.06);
}
.offering-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--peach);
}

.offering-icon {
  width: 72px;
  height: 72px;
  background: var(--blush);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 2rem;
  border: 2px solid var(--blush-mid);
}

/* ── CALENDAR ───────────────────────────────── */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: 0.75rem;
  overflow: hidden;
}
.cal-day-header {
  background: var(--primary);
  color: white;
  text-align: center;
  padding: 0.6rem;
  font-family: 'Lato', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.cal-day {
  background: white;
  min-height: 88px;
  padding: 0.4rem;
}
.cal-day.other-month { background: #fdf9f8; }
.cal-day.today { background: #fff0ee; }
.cal-day.has-events { cursor: pointer; }
.cal-day.has-events:hover { background: var(--blush); }
.cal-day-num {
  font-family: 'Playfair Display', serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-mid);
  margin-bottom: 0.25rem;
}
.cal-day.today .cal-day-num span {
  background: var(--primary);
  color: white;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
}
.cal-event-dot {
  font-size: 0.62rem;
  padding: 0.15rem 0.35rem;
  border-radius: 0.25rem;
  margin-bottom: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
}

/* ── FORMS ──────────────────────────────────── */
.form-group { margin-bottom: 1.2rem; }
.form-label {
  display: block;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
}
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 0.75rem;
  font-size: 0.95rem;
  font-family: 'Lato', sans-serif;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  background: white;
  color: var(--text-dark);
}
.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(252,52,7,0.1);
}
.form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 0.75rem;
  font-size: 0.95rem;
  font-family: 'Lato', sans-serif;
  background: white;
  outline: none;
  color: var(--text-dark);
}
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(252,52,7,0.1);
}
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 0.75rem;
  font-size: 0.95rem;
  font-family: 'Lato', sans-serif;
  resize: vertical;
  outline: none;
  min-height: 90px;
  color: var(--text-dark);
}
.form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(252,52,7,0.1);
}

/* ── MODAL ──────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(42,26,24,0.55);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(4px);
}
.modal-box {
  background: white;
  border-radius: 1.5rem;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(252,52,7,0.2);
}

/* ── TOAST ──────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--text-dark);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
  z-index: 999;
  max-width: 380px;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  animation: slideInUp 0.3s ease;
}
.toast.success { background: #16a34a; }
.toast.error   { background: var(--primary); }
@keyframes slideInUp {
  from { transform: translateY(80px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

/* ── LOADER ─────────────────────────────────── */
.loader {
  border: 3px solid var(--blush-mid);
  border-top-color: var(--primary);
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  animation: spin 0.8s linear infinite;
  margin: 2rem auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── FOOTER ─────────────────────────────────── */
.footer {
  background: var(--text-dark);
  color: rgba(255,255,255,0.75);
  padding: 3.5rem 0 1.5rem;
}

/* ── STATS STRIP ────────────────────────────── */
.stats-strip {
  background: var(--primary);
  color: white;
  padding: 2rem 0;
}

/* ── FEATURE PILL ───────────────────────────── */
.feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 2rem;
  padding: 0.5rem 1rem;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--text-mid);
  box-shadow: 0 2px 8px rgba(252,52,7,0.08);
}

/* ── ADMIN ──────────────────────────────────── */
.admin-sidebar {
  width: 240px;
  min-height: 100vh;
  background: var(--text-dark);
  color: white;
  flex-shrink: 0;
}
.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.5rem;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-family: 'Lato', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  transition: all 0.15s;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}
.admin-nav-item:hover { background: rgba(255,255,255,0.08); color: white; }
.admin-nav-item.active {
  background: rgba(252,52,7,0.2);
  color: #fcbc9f;
  border-right: 3px solid var(--primary);
}

.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  font-family: 'Lato', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-mid);
  border-bottom: 2px solid var(--border);
  background: #fff9f8;
}
.admin-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #fdf3f1;
  font-size: 0.9rem;
}
.admin-table tr:hover td { background: var(--blush); }

.stat-card {
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary);
}

.status-badge {
  padding: 0.2rem 0.65rem;
  border-radius: 2rem;
  font-family: 'Lato', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
}
.status-active   { background: #dcfce7; color: #166534; }
.status-soldout  { background: #fee2e2; color: #991b1b; }
.status-cancelled{ background: #f3f4f6; color: #6b7280; }
.status-completed{ background: #e0e7ff; color: #3730a3; }
.status-paid     { background: #dcfce7; color: #166534; }
.status-pending  { background: #fef9c3; color: #854d0e; }
.status-refunded { background: #f3f4f6; color: #6b7280; }
.status-waitlist { background: #ede9fe; color: #5b21b6; }

/* ── MOBILE ─────────────────────────────────── */
@media (max-width: 768px) {
  .hero-section { padding: 2.5rem 0 0; }
  .hero-founders-img { max-width: 100%; border-radius: 1.5rem 1.5rem 0 0; }
}

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

.tile-float {
  animation: tileFloat 3s ease-in-out infinite;
}
@keyframes tileFloat {
  0%, 100% { transform: translateY(0px) rotate(-3deg); }
  50%       { transform: translateY(-12px) rotate(3deg); }
}

/* ── INSTAGRAM FEED SECTION ──────────────────── */
.ig-section {
  padding: 5rem 0;
  background: var(--blush);
}

/* Behold widget overrides — match brand colors */
behold-widget {
  --behold-font-family: 'Playfair Display', serif;
  --behold-border-radius: 12px;
  --behold-gap: 4px;
}

/* Placeholder grid hover glow */
#igPlaceholderGrid a:hover {
  z-index: 1;
}
