/* ------------------------------------------------------------------
 * Accessible Premium Design Matrix Tokens (Woolies meets Shoprite)
 * ------------------------------------------------------------------ */

:root {
  --base-canvas: #FDFBF7;
  --surface-container: #F4F1EA;
  --pitch-charcoal: #1A1A1A;
  --muted-slate: #5A5A5A;
  --velvet-sage: #2D4A36;
  --warm-sand: #EAE6DF;
  
  --font-editorial: 'Playfair Display', serif;
  --font-interface: 'Plus Jakarta Sans', sans-serif;
}

/* Base Viewport Reset Layer Overrides */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  position: fixed;
  overflow: hidden;
  width: 100%;
  height: 100%;
  background-color: var(--base-canvas);
  color: var(--pitch-charcoal);
  font-family: var(--font-interface);
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: contain;
}

#app-shell {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

.scrollable-bento-viewport {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 80px 24px 100px 24px; /* Added padding to clear the fixed top navbar */
}

/* Typographic Hierarchy Realization */
h1, .editorial-title {
  font-family: var(--font-editorial);
  font-weight: 700;
  font-size: 2.5rem;
  line-height: 1.2;
  color: var(--pitch-charcoal);
  margin-bottom: 16px;
}

h2, .section-subtitle {
  font-family: var(--font-editorial);
  font-weight: 500;
  font-size: 1.75rem;
  color: var(--pitch-charcoal);
  margin-bottom: 20px;
}

/* Bento Box Container Framing Styles */
.bento-grid {
  display: grid;
  grid-template-columns: 100%;
  gap: 16px;
  width: 100%;
}

.bento-card {
  background-color: var(--surface-container);
  border: 1px solid var(--warm-sand);
  border-radius: 20px;
  padding: 24px;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Premium Action Component Classes */
.pill-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background-color: var(--pitch-charcoal);
  color: var(--base-canvas);
  font-family: var(--font-interface);
  font-size: 15px;
  font-weight: 600;
  padding: 16px 28px;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  transition: transform 0.1s ease, background-color 0.2s ease;
}

.pill-button:active {
  transform: scale(0.98);
}

.pill-button.accent-hustle {
  background-color: var(--velvet-sage);
}

/* Form Input Element Controls */
.premium-input {
  width: 100%;
  background-color: var(--base-canvas);
  border: 1px solid var(--warm-sand);
  border-radius: 12px;
  padding: 14px 16px;
  font-family: var(--font-interface);
  font-size: 15px;
  color: var(--pitch-charcoal);
  outline: none;
  margin-top: 8px;
}

.premium-input:focus {
  border-color: var(--pitch-charcoal);
}

.input-warning-alert {
  border-color: #C53939 !important;
}

/* Navigation Menu Dock Configuration */
.premium-nav-dock {
  position: fixed;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 100%;
  height: 72px;
  background-color: var(--pitch-charcoal);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: env(safe-area-inset-bottom);
  z-index: 1000;
}

.nav-dock-item {
  color: var(--muted-slate);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-dock-item.active {
  color: var(--base-canvas);
}

/* Reusable Skeleton Base Pulse Rules */
@keyframes skeletonPulseAnimation {
  0% { background-color: #ECEAE6; }
  50% { background-color: #F4F2EE; }
  100% { background-color: #ECEAE6; }
}

.skeleton-shimmer-box {
  animation: skeletonPulseAnimation 1.5s ease-in-out infinite;
  border-radius: 6px;
  display: inline-block;
}
