/* Living Gospel Church — App Shell
   Shares the navy/gold identity from the main site, adapted for an
   app-like, bottom-tab mobile layout. */

:root {
  --gold: #c9a84c;
  --gold-light: #e8c97a;
  --gold-dim: rgba(201, 168, 76, 0.15);
  --navy: #0a0f1e;
  --navy-2: #0e1528;
  --navy-3: #141c35;
  --navy-card: rgba(255, 255, 255, 0.04);
  --navy-border: rgba(201, 168, 76, 0.18);
  --text-primary: #f0ece0;
  --text-secondary: #a89f8a;
  --text-muted: #6b6358;
  --tab-bar-h: 68px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  background: var(--navy);
  color: var(--text-primary);
  font-family: 'Crimson Pro', serif;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: calc(var(--tab-bar-h) + env(safe-area-inset-bottom));
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

a { color: inherit; text-decoration: none; }

/* ===== TOP APP BAR ===== */
.app-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: calc(16px + env(safe-area-inset-top)) 20px 14px;
  background: rgba(10, 15, 30, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--navy-border);
}

.app-topbar img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.app-topbar .title {
  line-height: 1.15;
  min-width: 0;
}

.app-topbar .title strong {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  white-space: nowrap;
  color: var(--text-primary);
}

.app-topbar .title span {
  display: block;
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}

.app-topbar .spacer { flex: 1; }

.app-topbar .icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--navy-border);
  background: var(--navy-card);
  font-size: 16px;
  color: var(--gold);
}

/* ===== MAIN CONTENT AREA ===== */
.app-content {
  padding: 20px 20px 32px;
  max-width: 640px;
  margin: 0 auto;
}

/* ===== HOME: GREETING ===== */
.greeting {
  margin-bottom: 20px;
}

.greeting .eyebrow {
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

.greeting h1 {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
}

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

/* ===== CARDS ===== */
.card {
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-radius: 18px;
  padding: 22px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}

/* Daily verse card — signature element */
.verse-card {
  background: linear-gradient(160deg, rgba(201, 168, 76, 0.10), rgba(201, 168, 76, 0.02));
  border: 1px solid var(--navy-border);
}

.verse-card::before {
  content: '\201C';
  position: absolute;
  top: -18px;
  right: 12px;
  font-family: 'Playfair Display', serif;
  font-size: 110px;
  color: var(--gold);
  opacity: 0.08;
  line-height: 1;
}

.verse-card .label {
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.verse-card .label::before { content: '\2726'; font-size: 10px; }

.verse-card p.text {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 20px;
  line-height: 1.55;
  color: var(--text-primary);
  position: relative;
  z-index: 1;
}

.verse-card .ref {
  margin-top: 12px;
  font-size: 13px;
  letter-spacing: 0.5px;
  color: var(--gold-light);
}

/* Event card */
.event-card {
  display: flex;
  align-items: center;
  gap: 16px;
}

.event-card .date-badge {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--gold-dim);
  border: 1px solid var(--navy-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.event-card .date-badge .day {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.event-card .date-badge .mon {
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-top: 2px;
}

.event-card .info { min-width: 0; }

.event-card .info .name {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.event-card .info .meta {
  font-size: 13px;
  color: var(--text-muted);
}

/* ===== QUICK ACCESS GRID ===== */
.section-label {
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 24px 0 12px;
}

.quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.quick-tile {
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-radius: 16px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.2s, transform 0.2s;
}

.quick-tile:active {
  border-color: var(--gold);
  transform: scale(0.97);
}

.quick-tile .icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--gold-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.quick-tile .label {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  color: var(--text-primary);
}

.quick-tile .sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: -6px;
}

/* ===== BOTTOM TAB BAR ===== */
.tab-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  background: rgba(10, 15, 30, 0.96);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--navy-border);
  padding: 8px 4px calc(8px + env(safe-area-inset-bottom));
  height: var(--tab-bar-h);
}

.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text-muted);
  font-size: 10.5px;
  letter-spacing: 0.3px;
}

.tab-item .tab-icon {
  font-size: 19px;
  line-height: 1;
}

.tab-item.active {
  color: var(--gold);
}

/* ===== GENERIC PAGE HEADER (Bible/Songs/Prayers/Info) ===== */
.page-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.page-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-state .icon {
  font-size: 32px;
  margin-bottom: 12px;
  opacity: 0.5;
}

.empty-state p {
  font-size: 14px;
  line-height: 1.6;
}

/* ===== INSTALL / OFFLINE BANNERS ===== */
.banner {
  border: 1px solid var(--navy-border);
  background: var(--navy-card);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.banner.offline {
  border-color: rgba(201, 168, 76, 0.35);
  color: var(--gold-light);
}

@media (min-width: 640px) {
  .app-content { padding: 32px 24px 40px; }
}
