/*
 * Hand-crafted CSS lifted from the ameeratel-v2.html prototype's <style> block.
 * Loaded in base.html alongside the Tailwind CDN so we have full visual fidelity
 * during Phase 1 development before the Tailwind CLI build is wired up.
 *
 * When the standalone Tailwind CLI compiles static/src/tailwind.css into
 * static/css/tailwind.css, this file becomes redundant — those same rules live
 * inside the @layer base/components/utilities directives in static/src/tailwind.css.
 */
:root {
  --bg: #FFF8EC;
  --bg-warm: #FCEBC9;
  --ink: #1A1414;
  --ink-soft: #3B2E2E;
  --muted: #7A6660;
  --line: #E8D8B8;
  --line-soft: #F0E4CA;
  --tomato: #FF5A36;
  --tomato-deep: #D63E1F;
  --sun: #FFB627;
  --sun-deep: #E89500;
  --leaf: #2C9F5E;
  --leaf-deep: #1F7A47;
  --sea: #2E7BD6;
  --sea-deep: #1F5BAE;
  --plum: #8B4FAA;
  --plum-deep: #6A3A85;
  --rose: #E84872;
  --it: var(--sea);
  --it-deep: var(--sea-deep);
  --fac: var(--tomato);
  --fac-deep: var(--tomato-deep);
  --book: var(--plum);
  --book-deep: var(--plum-deep);
}

* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter Tight', system-ui, sans-serif;
  font-feature-settings: 'ss01', 'cv11';
}
.font-display {
  font-family: 'Fraunces', Georgia, serif;
  font-variation-settings: 'opsz' 144, 'SOFT' 50;
  letter-spacing: -0.025em;
}
.font-mono-tight { font-family: 'JetBrains Mono', monospace; }

.speckle::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 1;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 90, 54, 0.03) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(46, 123, 214, 0.03) 0%, transparent 40%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.blob-bg { position: absolute; pointer-events: none; opacity: 0.55; filter: blur(60px); }

.card {
  background: #FFFCF4;
  border: 1.5px solid var(--ink);
  border-radius: 20px;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card-soft {
  background: #FFFCF4;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.card-hover:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.card-press:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }

.btn-bold {
  background: var(--ink); color: var(--bg);
  border: 1.5px solid var(--ink); border-radius: 999px;
  padding: 12px 22px; font-weight: 600; font-size: 14px;
  box-shadow: 3px 3px 0 var(--tomato);
  transition: all 0.15s ease;
  display: inline-flex; align-items: center; gap: 8px;
  cursor: pointer; text-decoration: none;
}
.btn-bold:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--tomato); }
.btn-bold:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--tomato); }

.btn-pop {
  background: var(--tomato); color: #FFFCF4;
  border: 1.5px solid var(--ink); border-radius: 999px;
  padding: 12px 22px; font-weight: 600; font-size: 14px;
  box-shadow: 3px 3px 0 var(--ink);
  transition: all 0.15s ease;
  display: inline-flex; align-items: center; gap: 8px;
  cursor: pointer; text-decoration: none;
}
.btn-pop:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.btn-pop:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }

.btn-outline {
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--ink); border-radius: 999px;
  padding: 10px 18px; font-weight: 500; font-size: 13px;
  transition: all 0.15s ease;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none;
}
.btn-outline:hover { background: var(--ink); color: var(--bg); }

.input {
  background: #FFFCF4; border: 1.5px solid var(--ink); border-radius: 14px;
  padding: 12px 16px; font-family: 'Inter Tight', sans-serif; font-size: 14px;
  width: 100%; transition: all 0.15s ease;
}
.input:focus { outline: none; box-shadow: 3px 3px 0 var(--ink); transform: translate(-1px, -1px); }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600;
  padding: 4px 10px; border-radius: 999px;
  font-family: 'JetBrains Mono', monospace; letter-spacing: 0.02em;
  border: 1px solid currentColor;
}
.dot { width: 7px; height: 7px; border-radius: 999px; display: inline-block; }

/* Ticket / booking reference codes (AMT-1385, BK-2042). IT support couldn't
   pick these out at 11px muted grey, so a code gets its own high-contrast tag:
   .code-tag in list rows, .code-tag-lg on detail headers. */
.code-tag {
  display: inline-flex; align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px; font-weight: 800; letter-spacing: 0.04em;
  padding: 3px 9px; border-radius: 8px;
  background: var(--ink); color: var(--sun);
  border: 1.5px solid var(--ink);
  white-space: nowrap;
}
.code-tag-lg {
  font-size: 17px; letter-spacing: 0.06em;
  padding: 6px 14px; border-radius: 10px;
  box-shadow: 2px 2px 0 var(--tomato);
}

.badge-tomato { background: rgba(255, 90, 54, 0.12); color: var(--tomato-deep); }
.badge-sun { background: rgba(255, 182, 39, 0.18); color: var(--sun-deep); }
.badge-leaf { background: rgba(44, 159, 94, 0.12); color: var(--leaf-deep); }
.badge-sea { background: rgba(46, 123, 214, 0.12); color: var(--it-deep); }
.badge-plum { background: rgba(139, 79, 170, 0.12); color: var(--plum-deep); }
.badge-rose { background: rgba(232, 72, 114, 0.12); color: #B0354F; }
.badge-ink { background: rgba(26, 20, 20, 0.08); color: var(--ink); }

.pill-it { background: var(--sea); color: white; border: 1.5px solid var(--ink); }
.pill-fac { background: var(--tomato); color: white; border: 1.5px solid var(--ink); }
.pill-book { background: var(--plum); color: white; border: 1.5px solid var(--ink); }

.logo-mark {
  width: 36px; height: 36px; border-radius: 12px;
  background: var(--ink); color: var(--sun);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Fraunces', serif; font-weight: 900; font-size: 22px;
  border: 1.5px solid var(--ink);
  box-shadow: 2px 2px 0 var(--tomato);
  line-height: 0;
}
.logo-mark.lg { width: 56px; height: 56px; font-size: 32px; border-radius: 16px; }

.underline-wiggle {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 8'%3E%3Cpath d='M0 4 Q 10 0, 20 4 T 40 4 T 60 4 T 80 4' stroke='%23FF5A36' stroke-width='2.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: repeat-x; background-position: bottom; background-size: 80px 8px;
  padding-bottom: 12px;
}

.row:hover { background: var(--bg-warm); }

@keyframes slideUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pop { 0% { transform: scale(0.9); opacity: 0; } 60% { transform: scale(1.04); } 100% { transform: scale(1); opacity: 1; } }
@keyframes wiggle { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

.anim-in { animation: slideUp 0.4s ease-out forwards; opacity: 0; }
.anim-pop { animation: pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }
.anim-wiggle:hover { animation: wiggle 0.4s ease; }
.anim-float { animation: float 3s ease-in-out infinite; }

.stagger > * { opacity: 0; animation: slideUp 0.5s ease-out forwards; }
.stagger > *:nth-child(1) { animation-delay: 0s; }
.stagger > *:nth-child(2) { animation-delay: 0.06s; }
.stagger > *:nth-child(3) { animation-delay: 0.12s; }
.stagger > *:nth-child(4) { animation-delay: 0.18s; }
.stagger > *:nth-child(5) { animation-delay: 0.24s; }
.stagger > *:nth-child(6) { animation-delay: 0.3s; }
.stagger > *:nth-child(7) { animation-delay: 0.36s; }

/* When the user prefers reduced motion, animations don't run — so elements
   that start at opacity:0 would stay invisible (blank page). Reveal them. */
@media (prefers-reduced-motion: reduce) {
  .anim-in, .anim-pop, .stagger > * { animation: none; opacity: 1; transform: none; }
}
.stagger > *:nth-child(8) { animation-delay: 0.42s; }

::selection { background: var(--sun); color: var(--ink); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--ink); border-radius: 8px; border: 2px solid var(--bg); }
