/* ============================================================================
   Gelecekbul — Premium UI Layer
   Tüm yeni HTML sayfalarına link ile dahil edilir.
   Font + animasyon + arka plan + reaktif buton stili.
   ============================================================================ */

/* ── FONT: Plus Jakarta Sans (modern, kontemporary) + Söhne benzeri Inter fallback ── */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@500&display=swap');

:root {
  --font-display: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body:    'Inter', 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', monospace;

  /* Renk paleti — modern dark */
  --bg-0: #0a0a1f;
  --bg-1: #14143a;
  --bg-2: #1e1b4b;
  --violet: #7c3aed;
  --violet-soft: #a78bfa;
  --indigo: #4338ca;
  --cyan: #06b6d4;
  --emerald: #10b981;
  --rose: #ef4444;
  --amber: #f59e0b;
  --slate-50: #f8fafc;
  --slate-200: #e2e8f0;
  --slate-400: #94a3b8;
  --slate-600: #475569;
}

* { box-sizing: border-box; }

/* Tailwind preflight'tan sonra uygulanması için yüksek specificity */
html body,
html body.app-premium {
  font-family: var(--font-body) !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv11', 'ss01';
}

html body.app-premium {
  background: var(--bg-0);
  color: var(--slate-200);
  min-height: 100vh;
}

html h1, html h2, html h3, html h4 {
  font-family: var(--font-display) !important;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 { letter-spacing: -0.035em; }
code, pre, .mono { font-family: var(--font-mono); }

/* ── KAPSAMLI ARKA PLAN: mesh gradient + noise ── */
body.app-premium {
  background:
    /* Üst-sol mor halo */
    radial-gradient(900px 600px at 10% -10%, rgba(124,58,237,0.18) 0%, transparent 55%),
    /* Sağ-üst pembe halo */
    radial-gradient(700px 500px at 100% 0%, rgba(236,72,153,0.10) 0%, transparent 50%),
    /* Sol-alt cyan halo */
    radial-gradient(800px 600px at 0% 100%, rgba(6,182,212,0.10) 0%, transparent 55%),
    /* Sağ-orta indigo halo */
    radial-gradient(600px 500px at 100% 60%, rgba(79,70,229,0.12) 0%, transparent 50%),
    /* Taban gradient */
    linear-gradient(180deg, #0a0a1f 0%, #14143a 50%, #0a0a1f 100%);
  background-attachment: fixed;
  position: relative;
}

/* Noise overlay */
body.app-premium::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
  opacity: 0.04;
  mix-blend-mode: overlay;
  z-index: 0;
}

body.app-premium > * { position: relative; z-index: 1; }

/* ── PARLAK GLASS KART ── */
.glass {
  background: linear-gradient(135deg, rgba(30,30,60,0.55) 0%, rgba(15,15,40,0.45) 100%);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  box-shadow:
    0 1px 0 0 rgba(255,255,255,0.06) inset,
    0 20px 60px -20px rgba(0,0,0,0.5);
}

.glass-soft {
  background: rgba(30,30,60,0.35);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 16px;
}

/* ── REAKTİF BUTON SİSTEMİ ── */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.875rem;
  font-family: var(--font-display);
  letter-spacing: -0.005em;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
  outline: none;
  overflow: hidden;
  white-space: nowrap;
  isolation: isolate;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.25s;
  z-index: -1;
}

.btn:focus-visible { outline: 2px solid var(--violet-soft); outline-offset: 2px; }

/* Primary — mor parlama */
.btn-primary {
  background: linear-gradient(135deg, var(--violet) 0%, var(--indigo) 100%);
  color: white;
  box-shadow: 0 8px 24px -8px rgba(124,58,237,0.6), 0 0 0 1px rgba(255,255,255,0.05) inset;
}
.btn-primary::before {
  background: linear-gradient(135deg, #9333ea 0%, #6366f1 100%);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px -8px rgba(124,58,237,0.75), 0 0 0 1px rgba(255,255,255,0.1) inset;
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary:active { transform: translateY(0); box-shadow: 0 4px 12px -4px rgba(124,58,237,0.5); }

/* Ghost — saydam */
.btn-ghost {
  background: rgba(255,255,255,0.04);
  color: var(--slate-200);
  border: 1px solid rgba(255,255,255,0.08);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.16);
  transform: translateY(-1px);
}
.btn-ghost:active { transform: translateY(0); }

/* Soft — pastel mor */
.btn-soft {
  background: rgba(124,58,237,0.12);
  color: var(--violet-soft);
  border: 1px solid rgba(124,58,237,0.25);
}
.btn-soft:hover {
  background: rgba(124,58,237,0.2);
  border-color: rgba(124,58,237,0.4);
  color: white;
}

/* Danger */
.btn-danger {
  background: rgba(239,68,68,0.12);
  color: #fca5a5;
  border: 1px solid rgba(239,68,68,0.3);
}
.btn-danger:hover {
  background: rgba(239,68,68,0.2);
  color: white;
}

/* Boyutlar */
.btn-sm { padding: 0.5rem 1rem; font-size: 0.8rem; border-radius: 10px; }
.btn-xs { padding: 0.375rem 0.75rem; font-size: 0.75rem; border-radius: 8px; }
.btn-lg { padding: 1rem 2rem; font-size: 1rem; border-radius: 14px; }

/* Ripple effect */
.btn::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transform: translate(-50%, -50%);
  transition: width 0.5s, height 0.5s;
  pointer-events: none;
  z-index: 0;
}
.btn:active::after { width: 300px; height: 300px; transition: 0s; }

/* ── INPUT — modern ── */
.input {
  background: rgba(15,15,40,0.5);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 0.625rem 0.875rem;
  color: var(--slate-200);
  font-family: var(--font-body);
  transition: all 0.2s;
  width: 100%;
}
.input::placeholder { color: var(--slate-600); }
.input:hover { border-color: rgba(255,255,255,0.16); }
.input:focus {
  outline: none;
  border-color: var(--violet-soft);
  background: rgba(15,15,40,0.7);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.15);
}

/* ── BADGE ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge-violet  { background: rgba(124,58,237,0.18); color: var(--violet-soft); border: 1px solid rgba(124,58,237,0.3); }
.badge-emerald { background: rgba(16,185,129,0.18); color: #6ee7b7;            border: 1px solid rgba(16,185,129,0.3); }
.badge-amber   { background: rgba(245,158,11,0.18); color: #fcd34d;            border: 1px solid rgba(245,158,11,0.3); }
.badge-rose    { background: rgba(239,68,68,0.18);  color: #fca5a5;            border: 1px solid rgba(239,68,68,0.3); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) both; }
.fade-up-1 { animation-delay: 0.05s; }
.fade-up-2 { animation-delay: 0.10s; }
.fade-up-3 { animation-delay: 0.15s; }
.fade-up-4 { animation-delay: 0.20s; }

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(124,58,237,0.4); }
  50%      { box-shadow: 0 0 0 8px rgba(124,58,237,0); }
}
.pulse-glow { animation: pulseGlow 2.4s ease-in-out infinite; }

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.shimmer {
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0) 100%);
  background-size: 200% 100%;
  animation: shimmer 2s linear infinite;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(124,58,237,0.3); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(124,58,237,0.5); }

/* ── SELECTION ── */
::selection { background: rgba(124,58,237,0.4); color: white; }

/* ── PROGRESS BAR — animated gradient ── */
.progress-bar {
  position: relative;
  height: 8px;
  background: rgba(15,15,40,0.6);
  border-radius: 999px;
  overflow: hidden;
}
.progress-bar > div {
  height: 100%;
  background: linear-gradient(90deg, var(--violet) 0%, var(--violet-soft) 50%, var(--cyan) 100%);
  background-size: 200% 100%;
  border-radius: inherit;
  animation: shimmer 3s linear infinite;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── LINK underline animation ── */
.link-anim {
  position: relative;
  color: var(--violet-soft);
  text-decoration: none;
}
.link-anim::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: currentColor;
  transition: width 0.25s;
}
.link-anim:hover::after { width: 100%; }

/* ── KART — hover effect ── */
.card-hover {
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.card-hover:hover {
  transform: translateY(-2px);
  border-color: rgba(124,58,237,0.4);
  box-shadow: 0 20px 50px -20px rgba(124,58,237,0.3);
}

/* ── TYPOGRAPHY UTILS ── */
.text-display { font-family: var(--font-display); }
.text-body    { font-family: var(--font-body); }
.text-mono    { font-family: var(--font-mono); }
.text-balance { text-wrap: balance; }

/* ── DİVİDER ── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.08) 50%, transparent 100%);
}

/* ── RESPONSIVE TYPO ── */
.h-display { font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.05; }
.h-section { font-size: clamp(1.5rem, 3.5vw, 2.25rem); line-height: 1.15; }
