/* Music Trend Radar — ortak tasarim belirteçleri.
 *
 * Değerler mobil uygulamanın temasından (mobile/lib/presentation/theme/app_theme.dart)
 * birebir alınıyor. İki yüzey aynı markayı konuşmalı; renk kodunu web'de yeniden
 * "yaklaştırmak" iki tarafın zamanla birbirinden ayrılması demekti.
 */

:root {
  color-scheme: dark;

  /* Logodan alınan palet */
  --magenta: #ff2e7e;
  --violet:  #8b3dff;
  --cyan:    #22d3ee;
  --ember:   #ff8a2b;
  --success: #35d07f;

  /* Zeminler — saf siyah değil: hafif mavi-mor bir siyah daha derinlikli okunuyor */
  --bg:      #07070c;
  --card:    #14141d;
  --chrome:  #0d0d14;
  --raised:  #1b1b26;

  --text:    #edeaf3;
  --muted:   #9e99ae;
  --dim:     #6e6980;

  --line:    #2a2a38;
  --line-strong: #3a3a4a;

  /* Madalya tonları — ilk üç sırayı bir bakışta okunur kılıyor */
  --gold:   #f5c242;
  --silver: #b6becc;
  --bronze: #ce8b4e;

  --brand-gradient: linear-gradient(135deg, #ff2e7e 0%, #8b3dff 52%, #22d3ee 100%);

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-xl: 24px;

  --shell-max: 1440px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;

  --ease: cubic-bezier(0.22, 0.68, 0.36, 1);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { margin: 0; letter-spacing: -0.02em; font-weight: 800; line-height: 1.15; }
p { margin: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
input { font: inherit; color: inherit; }

/* Klavye kullanıcısı her zaman nerede olduğunu görmeli; fare kullanıcısı
   halkalarla rahatsız edilmemeli. */
:focus-visible {
  outline: 2px solid var(--magenta);
  outline-offset: 2px;
  border-radius: 6px;
}
:focus:not(:focus-visible) { outline: none; }

::selection { background: rgba(255, 46, 126, 0.32); }

/* İnce, koyu zemine uygun kaydırma çubuğu */
* { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 99px; border: 3px solid transparent; background-clip: content-box; }
*::-webkit-scrollbar-thumb:hover { background: #4b4b5e; background-clip: content-box; }
*::-webkit-scrollbar-track { background: transparent; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Hareketi azalt tercihi: tüm geçişleri ve dekoratif animasyonları kapat. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --- Paylaşılan küçük parçalar ------------------------------------------- */

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; letter-spacing: -0.03em;
}

/* Marka işareti mobil uygulamanın GERÇEK ikonu (bkz. assets/img/logo-64.png —
   kaynağı mobile/ios/.../AppIcon.appiconset). Bir uygulama ikonu olduğu için
   siyah zemini kendi içinde taşıyor; sayfa zemini (#07070C) ile arasındaki fark
   neredeyse görünmez ama köşeleri yuvarlamak onu "kenarı belli olmayan bir
   dikdörtgen" olmaktan çıkarıp bilinçli bir uygulama karosu haline getiriyor. */
.brand img {
  width: 30px; height: 30px; flex: none;
  border-radius: 7px;
}
.brand span { font-size: 16px; white-space: nowrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: var(--r-md);
  font-weight: 700; font-size: 14.5px; white-space: nowrap;
  transition: transform 0.15s var(--ease), background 0.15s var(--ease), border-color 0.15s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--magenta); color: #fff; }
.btn--primary:hover { background: #ff4a90; }
.btn--ghost { border: 1px solid var(--line-strong); color: var(--text); }
.btn--ghost:hover { border-color: var(--muted); background: rgba(255,255,255,0.03); }
.btn--sm { padding: 8px 14px; font-size: 13.5px; border-radius: var(--r-sm); }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 99px;
  font-size: 12px; font-weight: 700; letter-spacing: -0.01em;
}
