/* ZedChristian PWA — Mobile Styles */
:root {
  --zc-purple: #5E2D91; --zc-gold: #F4B942; --zc-dark: #0F0721;
  --zc-purple-light: #8B5CF6; --safe-bottom: env(safe-area-inset-bottom);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--zc-dark);
  color: #fff;
  overscroll-behavior: none;
  padding-bottom: calc(70px + var(--safe-bottom));
}

/* ── Top bar ── */
.pwa-topbar {
  background: rgba(15,7,33,.95);
  backdrop-filter: blur(20px);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.pwa-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.2rem; font-weight: 900; color: #fff;
}
.pwa-logo-cross { color: var(--zc-gold); font-size: 1.5rem; }
.pwa-logo-text span { color: var(--zc-gold); }

/* ── Bottom Nav ── */
.pwa-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(15,7,33,.97);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 6px 0 calc(6px + var(--safe-bottom));
  z-index: 200;
}

.pwa-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 16px;
  color: rgba(255,255,255,.4);
  text-decoration: none;
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  border-radius: 12px;
  transition: all .2s;
  min-width: 60px;
}
.pwa-nav-item i { font-size: 1.4rem; display: block; }
.pwa-nav-item.active { color: var(--zc-gold); }
.pwa-nav-item:active { transform: scale(.9); }

/* ── Hero ── */
.pwa-hero {
  background: linear-gradient(160deg, #1A0F35, #261545);
  padding: 24px 20px 32px;
  position: relative;
  overflow: hidden;
}
.pwa-hero::before {
  content: '✝';
  position: absolute;
  right: -20px; top: -20px;
  font-size: 8rem;
  color: rgba(244,185,66,.07);
  pointer-events: none;
}

.pwa-hero-badge {
  display: inline-flex; align-items: center;
  background: rgba(244,185,66,.15);
  color: var(--zc-gold);
  border: 1px solid rgba(244,185,66,.3);
  border-radius: 100px;
  padding: 4px 14px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .5px;
  margin-bottom: 12px;
}

.pwa-hero h1 { font-size: 2rem; font-weight: 900; line-height: 1.2; margin-bottom: 8px; }
.pwa-hero-sub { font-size: .9rem; color: rgba(255,255,255,.65); margin-bottom: 20px; }

/* ── Verse card ── */
.pwa-verse-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-left: 3px solid var(--zc-gold);
  border-radius: 12px;
  padding: 16px;
  font-size: .88rem;
  color: rgba(255,255,255,.9);
  margin-bottom: 20px;
}
.pwa-verse-ref { color: var(--zc-gold); font-size: .78rem; font-weight: 700; margin-top: 6px; }

/* ── Section ── */
.pwa-section { padding: 24px 20px; }
.pwa-section-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.pwa-section-title .icon { color: var(--zc-gold); font-size: 1.2rem; }

/* ── Game grid (hub page full grid) ── */
.pwa-games-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* ── Game carousel (landing page horizontal swipe row) ── */
.pwa-games-carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  /* bleed past the section's 20px padding so first/last card flush with edge */
  margin: 0 -20px;
  padding: 0 20px 12px;
}
.pwa-games-carousel::-webkit-scrollbar { display: none; }
.pwa-games-carousel .pwa-game-card {
  flex: 0 0 calc(50vw - 26px);
  scroll-snap-align: start;
  min-height: 140px;
}

.pwa-game-card {
  border-radius: 16px;
  padding: 20px 16px;
  text-decoration: none !important;
  color: #fff !important;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform .15s;
  position: relative;
  overflow: hidden;
}
.pwa-game-card:active { transform: scale(.95); }

.pwa-game-quiz       { background: linear-gradient(135deg, #5E2D91, #8B5CF6); }
.pwa-game-crossword  { background: linear-gradient(135deg, #1D4ED8, #38BDF8); }
.pwa-game-puzzle     { background: linear-gradient(135deg, #065F46, #10B981); }
.pwa-game-wordsearch { background: linear-gradient(135deg, #92400E, #F59E0B); }

.pwa-game-icon  { font-size: 2rem; }
.pwa-game-name  { font-size: .9rem; font-weight: 800; }
.pwa-game-desc  { font-size: .73rem; opacity: .8; }

/* ── Event card (mobile) ── */
.pwa-event-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 12px;
  display: flex;
}

.pwa-event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  padding: 16px 10px;
  font-weight: 900;
  color: #fff;
  text-align: center;
}
.pwa-event-day   { font-size: 1.6rem; line-height: 1; }
.pwa-event-month { font-size: .65rem; text-transform: uppercase; letter-spacing: 1px; }

.pwa-event-info  { padding: 14px; flex: 1; }
.pwa-event-type  { font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.pwa-event-name  { font-size: .9rem; font-weight: 700; margin-bottom: 4px; line-height: 1.3; }
.pwa-event-venue { font-size: .75rem; color: rgba(255,255,255,.55); }

/* ── Prayer ── */
.pwa-prayer-input {
  width: 100%;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 12px;
  padding: 14px 16px;
  color: #fff;
  font-size: .9rem;
  resize: none;
  outline: none;
  font-family: inherit;
}
.pwa-prayer-input:focus { border-color: var(--zc-gold); }
.pwa-prayer-input::placeholder { color: rgba(255,255,255,.35); }

/* ── Buttons ── */
.pwa-btn-primary,
.pwa-btn-gold,
.pwa-nav-item { white-space: nowrap; }

.pwa-btn-primary {
  display: block;
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--zc-purple), var(--zc-purple-light));
  color: #fff !important;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: .95rem;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: opacity .2s;
}
.pwa-btn-primary:active { opacity: .8; }

.pwa-btn-gold {
  display: block;
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--zc-gold), #D97706);
  color: #0F0721 !important;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: .95rem;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

/* ── Section divider ── */
.pwa-divider { height: 1px; background: rgba(255,255,255,.06); margin: 0 20px; }

/* ── Scroll ── */
::-webkit-scrollbar { display: none; }
