/* =====================================================================
   Brodemy · Pusula — Runtime tokens & base styles
   Tailwind config theme.extend.* hex'leri tutar; bu dosya
   pseudo-element, gradient-bloom, scrollbar, motion preferences gibi
   Tailwind ile temiz yazılamayan parçalar için.
   ===================================================================== */
:root {
  /* Tier renkleri (sabit semantic) */
  --tier-plus: #10B981;
  --tier-plus-deep: #047857;
  --tier-plus-soft: rgba(16, 185, 129, 0.10);
  --tier-pro: #F59E0B;
  --tier-pro-deep: #B45309;
  --tier-pro-soft: rgba(245, 158, 11, 0.10);
  --tier-mo: #DC2626;
  --tier-mo-deep: #991B1B;
  --tier-mo-soft: rgba(220, 38, 38, 0.10);

  /* Meslek renkleri */
  --prof-emlak:    #3DB8E8;
  --prof-insaat:   #F59E0B;
  --prof-hizmet:   #10B981;
  --prof-guzellik: #EC4899;
  --prof-saglik:   #DC2626;
  --prof-ulasim:   #6366F1;
  --prof-satis:    #8B5CF6;
  --prof-teknik:   #64748B;

  /* Shadows (custom for elevation depth) */
  --shadow-primary: 0 8px 22px rgba(37, 36, 116, 0.32);
  --shadow-primary-lg: 0 16px 40px rgba(37, 36, 116, 0.20);
  --shadow-accent:  0 8px 22px rgba(224, 162, 58, 0.32);
  --shadow-card:    0 2px 8px rgba(19, 24, 43, 0.06);
  --shadow-card-hover: 0 16px 40px rgba(19, 24, 43, 0.12);
}

html, body {
  margin: 0;
  padding: 0;
  background: #FBFAF6;
  color: #13182B;
  font-family: 'Inter Tight', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

/* Global radial bloom — brand atmosphere */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 600px at 8% 0%, rgba(37, 36, 116, 0.06), transparent 60%),
    radial-gradient(700px 500px at 108% 80%, rgba(224, 162, 58, 0.07), transparent 60%);
}

/* Route picker overlay */
.route-picker {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  z-index: 100;
  background: rgba(19, 24, 43, 0.92);
  backdrop-filter: blur(20px);
  border-radius: 14px;
  padding: 6px;
  padding-left: 8px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.24);
  display: flex;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.route-picker::-webkit-scrollbar { display: none; }
.route-picker button {
  background: transparent;
  border: none;
  color: rgba(251, 250, 246, 0.6);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 9px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: -0.005em;
}
.route-picker button .num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: rgba(251, 250, 246, 0.35);
}
.route-picker button:hover {
  color: #FBFAF6;
  background: rgba(255, 255, 255, 0.06);
}
.route-picker button.active {
  background: #E0A23A;
  color: #13182B;
}
.route-picker button.active .num {
  color: rgba(19, 24, 43, 0.5);
}
.route-picker .divider {
  width: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 4px 2px;
}

/* Scroll behavior */
html { scroll-behavior: smooth; }

/* Focus rings */
:focus-visible {
  outline: 2px solid #252474;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Modal scrim animation */
@keyframes scrim-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Marquee for vendor logos / "trusted by" rail */
@keyframes scroll-x {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Accordion */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 320ms cubic-bezier(0.4, 0, 0.2, 1);
}
.accordion-content.open { max-height: 800px; }
.accordion-chevron { transition: transform 200ms cubic-bezier(0.4, 0, 0.2, 1); }
.accordion-chevron.open { transform: rotate(180deg); }

/* Range slider styling */
input[type='range'] {
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: #D9DCE7;
  border-radius: 2px;
  outline: none;
}
input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #252474;
  box-shadow: 0 1px 3px rgba(19, 24, 43, 0.12);
  cursor: pointer;
}

/* Course card image fallback */
.course-cover {
  background-image:
    linear-gradient(135deg, rgba(37, 36, 116, 0.72), rgba(19, 24, 43, 0.48)),
    var(--cover-img);
  background-size: cover;
  background-position: center;
}

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0ms !important;
    animation-duration: 0ms !important;
  }
  html { scroll-behavior: auto; }
}
