/* ============================================================
   CAMPINGCARS.NET — Road Trip & Adventure Design System
   ============================================================ */

/* ============================================================
   CSS VARIABLES
   ============================================================ */

:root {
  /* Primary palette — earth & adventure */
  --amber: #D4900A;
  --amber-light: #F0B847;
  --amber-dark: #A66F00;
  --forest: #2D4A3E;
  --forest-light: #3D6B5A;
  --forest-dark: #1A2E25;
  --terracotta: #C0593A;
  --terracotta-light: #D97B5E;
  --cream: #F5F0E4;
  --cream-dark: #E8E0D0;
  --charcoal: #1C1C1C;
  --sky: #4A90D9;
  --sky-light: #7BB3EB;

  /* Neutral */
  --white: #FFFFFF;
  --gray-100: #F7F5F0;
  --gray-200: #E8E4DC;
  --gray-300: #C8C2B6;
  --gray-400: #9A9286;
  --gray-500: #6B6359;
  --gray-600: #4A443C;

  /* Text */
  --text: #2A2520;
  --text-light: #6B6359;
  --text-muted: #9A9286;
  --text-on-dark: #F5F0E4;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(28, 28, 28, 0.07);
  --shadow-md: 0 4px 16px rgba(28, 28, 28, 0.10);
  --shadow-lg: 0 8px 32px rgba(28, 28, 28, 0.14);
  --shadow-glow: 0 0 24px rgba(212, 144, 10, 0.15);

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --radius-full: 100px;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Nunito', system-ui, sans-serif;

  /* Layout */
  --nav-height: 72px;
  --container-max: 640px;
}

/* ============================================================
   DARK MODE
   ============================================================ */

@media (prefers-color-scheme: dark) {
  :root {
    --cream: #1A1814;
    --cream-dark: #252018;
    --white: #222019;
    --gray-100: #1E1C18;
    --gray-200: #2E2A24;
    --gray-300: #4A443C;
    --gray-400: #6B6359;
    --gray-500: #9A9286;
    --gray-600: #C8C2B6;
    --text: #F0EBE0;
    --text-light: #B8B0A4;
    --text-muted: #7A7268;
    --text-on-dark: #F0EBE0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.30);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.40);
    --shadow-glow: 0 0 24px rgba(212, 144, 10, 0.20);
    --forest: #3D6B5A;
    --forest-light: #4E8A72;
    --amber: #E8A420;
    --amber-light: #F0C050;
    --terracotta: #D97B5E;
    --terracotta-light: #E8967E;
  }
}

/* ============================================================
   RESET & BASE
   ============================================================ */

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

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

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--amber);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--amber-dark);
}

/* ============================================================
   LAYOUT
   ============================================================ */

.app {
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: calc(var(--nav-height) + 24px);
  position: relative;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

.page {
  animation: pageIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
  min-height: calc(100vh - var(--nav-height));
  min-height: calc(100dvh - var(--nav-height));
}

.page-content {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px 32px;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

h1 { font-size: clamp(2rem, 6vw, 3rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2rem); }
h3 { font-size: clamp(1.1rem, 3vw, 1.35rem); }
h4 { font-size: clamp(1rem, 2.5vw, 1.15rem); }

.section-header {
  text-align: center;
  padding: 36px 20px 8px;
}

.section-header h2 {
  color: var(--forest);
  margin-bottom: 4px;
}

.section-header p {
  font-size: 0.88rem;
  color: var(--text-light);
}

.section-divider {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--amber), var(--terracotta));
  border-radius: 2px;
  margin: 12px auto 0;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes staggerIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Stagger classes for individual elements */
.stagger-1 { animation: staggerIn 0.5s 0.05s cubic-bezier(0.22, 1, 0.36, 1) both; }
.stagger-2 { animation: staggerIn 0.5s 0.10s cubic-bezier(0.22, 1, 0.36, 1) both; }
.stagger-3 { animation: staggerIn 0.5s 0.15s cubic-bezier(0.22, 1, 0.36, 1) both; }
.stagger-4 { animation: staggerIn 0.5s 0.20s cubic-bezier(0.22, 1, 0.36, 1) both; }
.stagger-5 { animation: staggerIn 0.5s 0.25s cubic-bezier(0.22, 1, 0.36, 1) both; }
.stagger-6 { animation: staggerIn 0.5s 0.30s cubic-bezier(0.22, 1, 0.36, 1) both; }
.stagger-7 { animation: staggerIn 0.5s 0.35s cubic-bezier(0.22, 1, 0.36, 1) both; }
.stagger-8 { animation: staggerIn 0.5s 0.40s cubic-bezier(0.22, 1, 0.36, 1) both; }

/* Stagger via parent container */
.stagger > * {
  animation: staggerIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.stagger > *:nth-child(1) { animation-delay: 0.05s; }
.stagger > *:nth-child(2) { animation-delay: 0.10s; }
.stagger > *:nth-child(3) { animation-delay: 0.15s; }
.stagger > *:nth-child(4) { animation-delay: 0.20s; }
.stagger > *:nth-child(5) { animation-delay: 0.25s; }
.stagger > *:nth-child(6) { animation-delay: 0.30s; }
.stagger > *:nth-child(7) { animation-delay: 0.35s; }
.stagger > *:nth-child(8) { animation-delay: 0.40s; }
.stagger > *:nth-child(9) { animation-delay: 0.45s; }
.stagger > *:nth-child(10) { animation-delay: 0.50s; }

/* ============================================================
   BACKGROUNDS — Full-page scenic imagery
   ============================================================ */

.bg-mountains,
.bg-coastline,
.bg-forest,
.bg-sunset,
.bg-road {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.bg-mountains  { background-image: url('/images/bg-mountains.jpg'); }
.bg-coastline  { background-image: url('/images/bg-coastline.jpg'); }
.bg-forest     { background-image: url('/images/bg-forest.jpg'); }
.bg-sunset     { background-image: url('/images/bg-sunset.jpg'); }
.bg-road       { background-image: url('/images/bg-road.jpg'); }

/* Subtle overlay for text readability — vivid, NOT washed out */
.bg-mountains::before,
.bg-coastline::before,
.bg-forest::before,
.bg-sunset::before,
.bg-road::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.30) 100%);
  pointer-events: none;
  z-index: 0;
}

.bg-mountains > *,
.bg-coastline > *,
.bg-forest > *,
.bg-sunset > *,
.bg-road > * {
  position: relative;
  z-index: 1;
}

/* Gradient-only backgrounds (no image needed) */
.bg-gradient-adventure {
  background: linear-gradient(165deg, var(--forest-dark) 0%, var(--forest) 40%, var(--forest-light) 100%);
}

.bg-gradient-sunset {
  background: linear-gradient(165deg, var(--charcoal) 0%, var(--terracotta) 50%, var(--amber) 100%);
}

.bg-gradient-golden {
  background: linear-gradient(165deg, var(--amber-dark) 0%, var(--amber) 50%, var(--amber-light) 100%);
}

/* ============================================================
   GLASSMORPHISM
   ============================================================ */

.glass {
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.30);
}

.glass-dark {
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  background: rgba(28, 28, 28, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: var(--text-on-dark);
}

.glass-header {
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(28, 28, 28, 0.06);
}

@media (prefers-color-scheme: dark) {
  .glass {
    background: rgba(34, 32, 25, 0.80);
    border: 1px solid rgba(255, 255, 255, 0.08);
  }
  .glass-header {
    background: rgba(26, 24, 20, 0.88);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  background: linear-gradient(165deg, var(--forest-dark) 0%, var(--forest) 40%, var(--amber-dark) 100%);
  padding: 56px 24px 70px;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(212, 144, 10, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -15%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(45, 74, 62, 0.18) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 8px;
  animation: fadeDown 0.8s 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.05rem;
  color: var(--amber-light);
  margin-bottom: 24px;
  animation: fadeDown 0.8s 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--amber-light);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
  animation: fadeDown 0.8s 0.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ============================================================
   CARDS
   ============================================================ */

.card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(28, 28, 28, 0.05);
  transition: box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.card-accent {
  border-left: 3px solid var(--amber);
}

.card-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-image {
  width: calc(100% + 40px);
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  margin: -20px -20px 16px -20px;
}

/* ============================================================
   WIDGET CARDS — Homepage dashboard widgets
   ============================================================ */

.widget-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 20px 16px 32px;
  max-width: var(--container-max);
  margin: 0 auto;
}

.widget-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(28, 28, 28, 0.05);
  transition: box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}

.widget-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

/* Saint of the day widget */
.saint-widget {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
}

.saint-date-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.saint-emoji {
  font-size: 1.4rem;
  line-height: 1;
}

.saint-date {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}

.saint-name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--forest);
  font-weight: 600;
}

/* Random photo widget */
.photo-widget {
  padding: 0;
}

.photo-placeholder {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--forest-dark) 0%, var(--amber-dark) 50%, var(--terracotta) 100%);
  overflow: hidden;
}

.photo-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 14px 16px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, transparent 50%);
}

.photo-title {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.photo-caption {
  padding: 14px 16px;
}

.caption-text {
  font-size: 0.88rem;
  color: var(--text);
  font-weight: 600;
  margin: 0 0 4px;
  line-height: 1.35;
}

.caption-author {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  text-decoration: none;
  line-height: 1;
}

.btn:active {
  transform: scale(0.97);
}

/* Primary — amber */
.btn-primary {
  background: linear-gradient(135deg, var(--amber), var(--amber-light));
  color: var(--charcoal);
  box-shadow: 0 2px 10px rgba(212, 144, 10, 0.25);
}

.btn-primary:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 18px rgba(212, 144, 10, 0.35);
  color: var(--charcoal);
}

/* Secondary — forest green */
.btn-secondary {
  background: linear-gradient(135deg, var(--forest), var(--forest-light));
  color: var(--white);
  box-shadow: 0 2px 10px rgba(45, 74, 62, 0.20);
}

.btn-secondary:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 18px rgba(45, 74, 62, 0.30);
  color: var(--white);
}

/* Ghost — transparent with border */
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--gray-300);
}

.btn-ghost:hover {
  transform: scale(1.03);
  border-color: var(--amber);
  color: var(--amber);
}

.btn-sm {
  font-size: 0.8rem;
  padding: 8px 16px;
}

.btn-lg {
  font-size: 1rem;
  padding: 16px 32px;
}

/* ============================================================
   FORMS
   ============================================================ */

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text);
  margin-bottom: 6px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text);
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(212, 144, 10, 0.15);
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.valid.modified:not([type=checkbox]) {
  outline: 1px solid #26b050;
}

.invalid {
  outline: 1px solid var(--terracotta);
}

.validation-message {
  color: var(--terracotta);
  font-size: 0.82rem;
  margin-top: 4px;
}

/* ============================================================
   BOTTOM TAB BAR
   ============================================================ */

.tab-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid rgba(28, 28, 28, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 2px;
  padding-bottom: env(safe-area-inset-bottom, 0);
  z-index: 100;
}

@media (prefers-color-scheme: dark) {
  .tab-bar {
    background: rgba(26, 24, 20, 0.90);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }
}

.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 0;
  flex: 1;
  text-decoration: none;
  color: var(--text-muted);
  transition: color 0.25s ease;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

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

.tab-item.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 2.5px;
  background: var(--amber);
  border-radius: 0 0 3px 3px;
}

.tab-icon {
  font-size: 1.25rem;
  line-height: 1;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.tab-item.active .tab-icon {
  transform: scale(1.1);
}

.tab-label {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* ============================================================
   GRIDS
   ============================================================ */

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

/* ============================================================
   INFO ITEMS
   ============================================================ */

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(28, 28, 28, 0.04);
}

.info-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--cream), var(--cream-dark));
}

.info-icon.accent { background: linear-gradient(135deg, #fde8e0, #f5c6b8); }
.info-icon.gold   { background: linear-gradient(135deg, #fef3cd, #f0dfa0); }
.info-icon.green  { background: linear-gradient(135deg, #d4edda, #b8d4be); }

.info-content h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--forest);
  margin-bottom: 2px;
}

.info-content p {
  font-size: 0.84rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* ============================================================
   TAGS & BADGES
   ============================================================ */

.tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: var(--gray-100);
  color: var(--text-light);
}

.tag-amber   { background: rgba(212, 144, 10, 0.12); color: var(--amber-dark); }
.tag-forest  { background: rgba(45, 74, 62, 0.12); color: var(--forest); }
.tag-terra   { background: rgba(192, 89, 58, 0.12); color: var(--terracotta); }
.tag-sky     { background: rgba(74, 144, 217, 0.12); color: var(--sky); }

/* ============================================================
   SCROLLBAR
   ============================================================ */

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--amber);
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */

.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.p-1 { padding: 8px; }
.p-2 { padding: 16px; }
.p-3 { padding: 24px; }
.p-4 { padding: 32px; }

.gap-1 { gap: 8px; }
.gap-2 { gap: 12px; }
.gap-3 { gap: 16px; }

.flex       { display: flex; }
.flex-col   { flex-direction: column; }
.flex-wrap  { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.w-full { width: 100%; }
.rounded { border-radius: var(--radius-md); }

.hidden-mobile {
  display: none;
}

.hidden-desktop {
  display: block;
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

@media (min-width: 640px) {
  .page-content {
    max-width: 600px;
    padding: 0 28px 40px;
  }

  .hero {
    padding: 64px 32px 80px;
  }

  .grid-2 {
    gap: 16px;
  }

  .grid-3 {
    gap: 16px;
  }

  .hidden-mobile {
    display: block;
  }

  .hidden-desktop {
    display: none;
  }
}

@media (min-width: 1024px) {
  .page-content {
    max-width: 720px;
  }

  .container {
    max-width: 720px;
  }
}

@media (min-width: 1280px) {
  .page-content {
    max-width: 800px;
  }

  .container {
    max-width: 800px;
  }
}

/* ============================================================
   BLAZOR — Loading & Error UI
   ============================================================ */

#blazor-error-ui {
  background: var(--terracotta);
  color: var(--white);
  padding: 12px 20px;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  display: none;
  font-size: 0.85rem;
  text-align: center;
}

#blazor-error-ui .dismiss {
  cursor: pointer;
  position: absolute;
  right: 0.75rem;
  top: 0.5rem;
}

.blazor-error-boundary {
  background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
  padding: 1rem 1rem 1rem 3.7rem;
  color: white;
}

.blazor-error-boundary::after {
  content: "An error has occurred.";
}

.loading-progress {
  position: absolute;
  display: block;
  width: 8rem;
  height: 8rem;
  inset: 20vh 0 auto 0;
  margin: 0 auto;
}

.loading-progress circle {
  fill: none;
  stroke: var(--gray-200);
  stroke-width: 0.6rem;
  transform-origin: 50% 50%;
  transform: rotate(-90deg);
}

.loading-progress circle:last-child {
  stroke: var(--amber);
  stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
  transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
  position: absolute;
  text-align: center;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-light);
  inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

.loading-progress-text::after {
  content: var(--blazor-load-percentage-text, "Loading");
}
