/**
 * Asta Technologies - Award-grade polish & micro-interactions
 * "Whitespace over Wireframes" - Fintech Slate 60-30-10 design system
 */

/* ── 60-30-10 Design Tokens ── */
:root {
  --asta-canvas: #0F172A;    /* 60% - Fintech Slate */
  --asta-surface: #1E293B;   /* 30% - Surfaces */
  --asta-emerald: #10b981;   /* 10% - Actions */
}

/* Smooth scroll with reduced-motion respect */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* Focus-visible for keyboard accessibility (WCAG 2.2) */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid #10b981;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Refined selection styling */
::selection {
  background: rgba(16, 185, 129, 0.35);
  color: #f4f4f5;
}

/* Flat hover for interactive cards - surface color change only */
.asta-card-lift {
  transition: background-color 0.3s ease-in-out;
}
.asta-card-lift:hover {
  background-color: rgba(51, 65, 85, 0.8);
}

/* Button press feedback */
.asta-btn-press:active {
  transform: scale(0.98);
}

/* Cursor pointer for interactive elements */
[role="button"]:not(:disabled),
button:not(:disabled),
a[href] {
  cursor: pointer;
}

/* Big screens: larger tap/hover targets, reduce hover-only reliance */
@media (min-width: 1400px) {
  a[href]:not(.cta-request):not([class*="px-"]) {
    padding: 0.25em 0;
  }
  .data-card,
  .asta-card-lift {
    min-height: 200px;
  }
}

/* Mobile: ensure 44px min touch targets */
@media (max-width: 768px) {
  button, a[role="button"], .cta-request {
    min-height: 44px;
    min-width: 44px;
  }
}

/* Orientation prompt - suggest landscape on mobile portrait */
.orientation-prompt {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(9, 9, 11, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 1;
  transition: opacity 0.4s ease;
}
.orientation-prompt-inner {
  text-align: center;
  max-width: 320px;
}
.orientation-icon {
  font-size: 64px;
  color: #10b981;
  display: block;
  margin-bottom: 1rem;
  animation: orientation-pulse 2s ease-in-out infinite;
}
@keyframes orientation-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.05); }
}
.orientation-text {
  color: #f4f4f5;
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}
.orientation-dismiss {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: #a1a1aa;
  padding: 0.5rem 1.5rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.orientation-dismiss:hover {
  border-color: #10b981;
  color: #10b981;
}

/* Hero tidbit dissolve */
#hero-tidbit {
  visibility: hidden;
  display: none;
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}
#hero-tidbit p {
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

/* Premium: reduce backdrop-blur on mobile for performance */
@media (max-width: 768px) {
  .backdrop-blur-xl { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
}

/* Premium: smoother CTA hover */
.cta-request {
  will-change: transform;
}
.cta-request:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -8px rgba(16, 185, 129, 0.25);
}

/* ── Flat Design System (Whitespace over Wireframes) ── */
.asta-surface {
  background-color: var(--asta-surface);
}
.asta-surface:hover {
  background-color: #334155;
}
.asta-card-flat {
  background-color: rgba(30, 41, 59, 0.6);
  transition: background-color 0.3s ease-in-out;
}
.asta-card-flat:hover {
  background-color: rgba(51, 65, 85, 0.7);
}
.asta-input-flat {
  background-color: rgba(30, 41, 59, 0.8);
  border: none;
  transition: box-shadow 0.3s ease-in-out, background-color 0.3s ease-in-out;
}
.asta-input-flat:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.5);
  background-color: rgba(30, 41, 59, 0.95);
}
.asta-label {
  color: #94a3b8;
  font-size: 0.875rem;
}
.asta-data {
  color: #ffffff;
  font-weight: 500;
}

/* GEO: visible breadcrumb trail (no borders; spacing + mono per Asta terminal aesthetic) */
.asta-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0;
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding: 0.5rem 1.5rem 0.25rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #64748b;
}
.asta-breadcrumb__link {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s ease;
}
.asta-breadcrumb__link:hover {
  color: #34d399;
}
.asta-breadcrumb__current {
  color: #e2e8f0;
  font-weight: 600;
}
.asta-breadcrumb__sep {
  color: #475569;
  margin: 0 0.4rem;
  user-select: none;
}
