/* Pappy & Co Kudos — shared styles */

:root {
  --surface: #161311;
  --surface-container-low: #1f1b19;
  --surface-container: #231f1d;
  --surface-container-high: #2e2927;
  --surface-container-highest: #393431;
  --primary: #f3be55;
  --primary-container: #735300;
  --on-surface: #eae1dd;
  --on-surface-variant: #dac2b6;
  --outline-variant: #54433a;
  --secondary: #dec1b3;
}

html, body {
  background-color: var(--surface);
  color: var(--on-surface);
  font-family: 'Manrope', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100dvh;
}

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  display: inline-block;
  line-height: 1;
  user-select: none;
}

.font-headline { font-family: 'Newsreader', serif; }
.font-body,
.font-label { font-family: 'Manrope', sans-serif; }

/* Ghost border — felt, not seen. 15% opacity outline-variant. */
.ghost-border {
  border: 1px solid rgba(84, 67, 58, 0.15);
}

/* Glassmorphism for overlays — the heavy decanter look. */
.glass-panel {
  background-color: rgba(35, 31, 29, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* Brass-plate CTA gradient. */
.primary-gradient {
  background: linear-gradient(135deg, #f3be55 0%, #735300 100%);
}

/* The Kudos Seal — circular reward chip. */
.kudos-seal {
  box-shadow: 0 0 20px rgba(243, 190, 85, 0.2);
}

/* Ambient shadow — soft glow rather than hard drop. */
.ambient-shadow {
  box-shadow: 0 32px 64px rgba(234, 225, 221, 0.06);
}

/* No-scrollbar helper for horizontal scrollers. */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Toast animation */
.toast {
  position: fixed;
  bottom: 6rem;
  left: 50%;
  transform: translateX(-50%) translateY(1rem);
  z-index: 200;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}
.toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Badge tile idle pulse */
@keyframes sealGlow {
  0%, 100% { box-shadow: 0 0 0 rgba(243, 190, 85, 0); }
  50% { box-shadow: 0 0 28px rgba(243, 190, 85, 0.18); }
}
.seal-glow {
  animation: sealGlow 3.2s ease-in-out infinite;
}

/* Focus ring — sophisticated tertiary instead of primary gold */
:focus-visible {
  outline: 2px solid #ffb3ae;
  outline-offset: 2px;
}

/* Underline input style — Editorial Ledger */
.input-underline {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(84, 67, 58, 0.4);
  color: var(--on-surface);
  padding: 0.75rem 0;
  width: 100%;
  font-family: 'Manrope', sans-serif;
  transition: border-color 0.2s ease;
}
.input-underline:focus {
  outline: none;
  border-bottom-color: #ffb3ae;
}

/* Page transitions */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up {
  animation: fadeUp 0.45s ease-out both;
}

/* Modal backdrop */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background-color: rgba(22, 19, 17, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.modal-backdrop.active { display: flex; }

/* Safe area for iOS bottom nav */
.pb-nav {
  padding-bottom: calc(8rem + env(safe-area-inset-bottom));
}
.bottom-nav {
  padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
}
