/* OMPRESENT SANCTUARY V1.0 — ULTRA-LIGHT ZEN LUXURY CSS */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  --bg-deep: #050811;
  --bg-card: rgba(14, 20, 36, 0.75);
  --gold-primary: #D4AF37;
  --gold-antique: #B48F4E;
  --gold-glow: rgba(212, 175, 55, 0.25);
  --text-white: #FFFFFF;
  --text-dim: #94A3B8;
  --border-gold: rgba(212, 175, 55, 0.2);
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Montserrat', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-white);
  font-family: var(--font-sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  overflow-x: hidden;
  position: relative;
}

/* Background Canvas & Ambient Glow */
.ambient-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  object-fit: cover;
  opacity: 0.35;
  filter: saturate(1.2) contrast(1.1);
  transition: opacity 1.5s ease;
}

.ambient-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(14, 20, 36, 0.4) 0%, rgba(5, 8, 17, 0.95) 100%);
  z-index: -1;
  pointer-events: none;
}

/* App Header */
header {
  width: 100%;
  max-width: 600px;
  padding: 24px 20px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 10;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.brand-logo {
  width: 38px;
  height: 38px;
  filter: drop-shadow(0 0 10px var(--gold-glow));
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-white);
}

.brand-tagline {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.32em;
  color: var(--gold-antique);
  text-transform: uppercase;
}

/* Presence Live Badge */
.presence-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(14, 20, 36, 0.65);
  border: 1px solid var(--border-gold);
  border-radius: 999px;
  padding: 6px 16px;
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-dim);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #10B981;
  border-radius: 50%;
  box-shadow: 0 0 10px #10B981;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.presence-num {
  color: var(--gold-primary);
  font-weight: 700;
}

/* Center Shrine: Interactive Chime & Breather */
.shrine-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  width: 100%;
  max-width: 500px;
  padding: 20px;
  z-index: 10;
}

.chime-sphere-wrapper {
  position: relative;
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-bottom: 24px;
}

.breath-circle {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1.5px solid rgba(212, 175, 55, 0.35);
  background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
  animation: breathingCycle 10s ease-in-out infinite;
  pointer-events: none;
}

@keyframes breathingCycle {
  0% { transform: scale(0.9); opacity: 0.4; }
  40% { transform: scale(1.25); opacity: 0.9; }
  50% { transform: scale(1.25); opacity: 0.9; }
  100% { transform: scale(0.9); opacity: 0.4; }
}

.chime-btn {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #2A1F10 0%, #120E08 70%, #080604 100%);
  border: 2px solid var(--gold-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 35px var(--gold-glow), inset 0 0 15px rgba(212, 175, 55, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 5;
}

.chime-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 0 45px rgba(212, 175, 55, 0.45);
}

.chime-btn:active {
  transform: scale(0.96);
}

.chime-icon {
  font-size: 34px;
  margin-bottom: 4px;
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.6));
}

.chime-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--gold-primary);
  text-transform: uppercase;
}

/* Breath Pacer Guidance */
.pacer-guide {
  font-family: var(--font-serif);
  font-size: 17px;
  font-style: italic;
  color: var(--gold-primary);
  letter-spacing: 0.03em;
  height: 28px;
  margin-bottom: 8px;
  text-align: center;
}

.chime-hint {
  font-size: 12px;
  color: var(--text-dim);
  text-align: center;
  margin-bottom: 24px;
}

/* Action Controls */
.action-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.btn-sovereign {
  width: 100%;
  padding: 14px 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(180, 143, 78, 0.05) 100%);
  border: 1px solid var(--gold-primary);
  color: var(--text-white);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.btn-sovereign:hover {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.28) 0%, rgba(180, 143, 78, 0.15) 100%);
  box-shadow: 0 4px 20px var(--gold-glow);
  transform: translateY(-1px);
}

.btn-present-glow {
  background: var(--gold-primary);
  color: #050811;
  font-weight: 700;
}

.btn-present-glow:hover {
  background: #E5C358;
}

/* Nav Portal Switcher */
.ecosystem-dock {
  width: 100%;
  max-width: 600px;
  padding: 16px 20px 24px;
  display: flex;
  gap: 10px;
  justify-content: center;
  z-index: 10;
}

.dock-item {
  flex: 1;
  padding: 10px 8px;
  background: rgba(14, 20, 36, 0.6);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 500;
  text-align: center;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
}

.dock-item:hover {
  color: var(--gold-primary);
  border-color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.1);
}

/* Modal Popup for Mind Card */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 8, 17, 0.88);
  backdrop-filter: blur(16px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}

.modal-card {
  width: 100%;
  max-width: 440px;
  background: #0B1020;
  border: 1px solid var(--gold-primary);
  border-radius: 20px;
  padding: 28px 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 50px var(--gold-glow);
  display: flex;
  flex-direction: column;
  position: relative;
  animation: slideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 22px;
  cursor: pointer;
}

.card-category {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--gold-antique);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.card-title {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--text-white);
  margin-bottom: 14px;
}

.card-quote-box {
  background: rgba(212, 175, 55, 0.06);
  border-left: 3px solid var(--gold-primary);
  padding: 14px;
  border-radius: 0 10px 10px 0;
  margin-bottom: 14px;
  font-style: italic;
  font-family: var(--font-serif);
  font-size: 15px;
  line-height: 1.6;
  color: #F1F5F9;
}

.card-insight {
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-dim);
  margin-bottom: 20px;
}

.card-meta-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.card-tag {
  font-size: 10px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--gold-primary);
}

.btn-card-action {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}

.btn-download {
  background: var(--gold-primary);
  color: #050811;
}

.btn-download:hover {
  background: #E5C358;
}

.btn-share {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-white);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Hidden canvas for auto story rendering */
#storyCanvas {
  display: none;
}
