@import "tailwindcss";

/* Turbo navigation progress bar — match the blue accent on dark theme */
.turbo-progress-bar {
  height: 3px;
  background: linear-gradient(to right, #3b82f6, #60a5fa);
}

/* Print styles — itinerary PDF export via browser print */
@media print {
  body {
    background: #fff !important;
    color: #0f172a !important;
  }
  aside,
  .no-print {
    display: none !important;
  }
  main {
    margin-left: 0 !important;
    padding: 0 !important;
  }
}

@media print {
  .print-only {
    display: block !important;
    margin-bottom: 24px;
  }
  /* Flatten the dark theme to black-on-white for paper */
  main, main * {
    background: transparent !important;
    color: #0f172a !important;
    border-color: #cbd5e1 !important;
  }
}

/* ── Collapsible sidebar ─────────────────────────────── */
html.sidebar-collapsed .app-sidebar { display: none; }
html.sidebar-collapsed .app-main { margin-left: 0; padding-left: 4.5rem; }
.sidebar-expand-btn { display: none; }
html.sidebar-collapsed .sidebar-expand-btn { display: flex; }

/* ── Light ("white") theme ───────────────────────────────
   The app is authored with dark slate utilities; html.light
   remaps them to a white palette in one place. */
html.light body { background-color: #f1f5f9; }
html.light .bg-slate-900 { background-color: #f1f5f9; }
html.light .bg-slate-800 { background-color: #ffffff; }
html.light .bg-slate-700 { background-color: #e2e8f0; }
html.light .bg-slate-700\/50 { background-color: #f1f5f9; }
html.light .bg-slate-900\/50 { background-color: #f8fafc; }
html.light .bg-slate-900\/80,
html.light .bg-slate-900\/90 { background-color: rgba(255, 255, 255, 0.92); }
html.light .bg-slate-500 { background-color: #94a3b8; }
html.light .hover\:bg-slate-700:hover { background-color: #e2e8f0; }
html.light .hover\:bg-slate-600:hover { background-color: #cbd5e1; }
html.light .hover\:bg-slate-800:hover { background-color: #f1f5f9; }
html.light .hover\:bg-slate-800\/50:hover { background-color: #f8fafc; }
html.light .text-slate-50 { color: #0f172a; }
html.light .text-slate-200 { color: #1e293b; }
html.light .text-slate-300 { color: #334155; }
html.light .text-slate-400 { color: #475569; }
html.light .text-slate-500 { color: #64748b; }
html.light .text-slate-600 { color: #94a3b8; }
html.light .hover\:text-slate-200:hover { color: #0f172a; }
html.light .border-slate-700,
html.light .border-slate-700\/50,
html.light .border-slate-700\/30 { border-color: #e2e8f0; }
html.light .border-slate-600 { border-color: #cbd5e1; }
html.light .hover\:border-slate-600:hover { border-color: #94a3b8; }
html.light .divide-slate-700\/50 > :not([hidden]) ~ :not([hidden]) { border-color: #e2e8f0; }
html.light .placeholder-slate-600::placeholder { color: #94a3b8; }
html.light .text-blue-400 { color: #2563eb; }
html.light .hover\:text-blue-300:hover { color: #1d4ed8; }
html.light .text-green-400 { color: #16a34a; }
html.light .text-yellow-400 { color: #ca8a04; }
html.light .text-red-400 { color: #dc2626; }
html.light .hover\:text-red-300:hover { color: #b91c1c; }
html.light .hover\:text-red-400:hover { color: #dc2626; }
html.light input, html.light select, html.light textarea { color-scheme: light; }

/* Logo swap per theme */
html.light .logo-on-dark { display: none; }
html.light .logo-on-light { display: block !important; }

/* Theme toggle icons: sun shown in dark mode (switch to light), moon in light */
.theme-icon-moon { display: none; }
html.light .theme-icon-sun { display: none; }
html.light .theme-icon-moon { display: block; }

/* ── Scroll reveal (full agenda) ─────────────────────── */
.reveal-init {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal-init.reveal-in {
  opacity: 1;
  transform: none;
}
@media print {
  .reveal-init { opacity: 1 !important; transform: none !important; }
}

/* ── Marketing site (Next.js-style dark) ─────────────── */
/* Marketing pages stay dark regardless of the app theme */
html.light body.mkt-body { background-color: #000; }

.mkt-gradient-text {
  background: linear-gradient(100deg, #60a5fa 0%, #a78bfa 45%, #f472b6 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mkt-hero-glow {
  position: absolute;
  top: -240px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.22), rgba(167, 139, 250, 0.08) 45%, transparent 70%);
  pointer-events: none;
}

.mkt-cta-glow {
  position: absolute;
  bottom: -300px;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(167, 139, 250, 0.16), transparent 65%);
  pointer-events: none;
}

.mkt-frame-glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(ellipse at top, rgba(59, 130, 246, 0.18), transparent 60%);
  pointer-events: none;
}

.mkt-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
  pointer-events: none;
}

/* ── Blog article body (rendered WordPress HTML) ─────── */
.mkt-prose { color: #a1a1aa; font-size: 1.0625rem; line-height: 1.8; }
.mkt-prose p { margin-bottom: 1.5rem; }
.mkt-prose h2 { color: #fff; font-size: 1.5rem; font-weight: 700; margin: 2.5rem 0 1rem; letter-spacing: -0.01em; }
.mkt-prose h3 { color: #fff; font-size: 1.25rem; font-weight: 600; margin: 2rem 0 0.75rem; }
.mkt-prose h4 { color: #e4e4e7; font-size: 1.05rem; font-weight: 600; margin: 1.5rem 0 0.5rem; }
.mkt-prose a { color: #60a5fa; text-decoration: underline; text-underline-offset: 3px; }
.mkt-prose a:hover { color: #93c5fd; }
.mkt-prose strong, .mkt-prose b { color: #fff; font-weight: 600; }
.mkt-prose ul, .mkt-prose ol { margin: 0 0 1.5rem 1.5rem; }
.mkt-prose ul { list-style: disc; }
.mkt-prose ol { list-style: decimal; }
.mkt-prose li { margin-bottom: 0.5rem; }
.mkt-prose blockquote { border-left: 3px solid #3b82f6; padding-left: 1.25rem; margin: 2rem 0; color: #d4d4d8; font-style: italic; }
.mkt-prose img { border-radius: 0.75rem; border: 1px solid rgba(255, 255, 255, 0.1); margin: 2rem 0; }
.mkt-prose pre { background: #18181b; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 0.75rem; padding: 1.25rem; overflow-x: auto; margin: 2rem 0; font-size: 0.875rem; }
.mkt-prose code { color: #93c5fd; font-size: 0.9em; }
.mkt-prose hr { border-color: rgba(255, 255, 255, 0.1); margin: 3rem 0; }
.mkt-prose figcaption { text-align: center; font-size: 0.8125rem; color: #71717a; margin-top: -1.25rem; margin-bottom: 2rem; }

/* ── Mobile / tablet app chrome (below lg) ───────────── */
@media (max-width: 1023px) {
  .app-sidebar { display: none; }
  html.sidebar-mobile-open .app-sidebar {
    display: flex;
    z-index: 60;
    box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.55);
  }
  .app-main {
    margin-left: 0 !important;
    padding: 4.25rem 1rem 1.5rem !important;
  }
  .sidebar-expand-btn { display: flex !important; }
}
