/* ==========================================================================
   eBecayiş — Tasarım Sistemi v2
   Koyu indigo/mor + elektrik camgöbeği/lime paleti. Gerçek animasyonlar.
   ========================================================================== */

:root {
  --ink: #0e1029;
  --night: #10123a;
  --night-2: #1a1650;
  --violet: #6d28d9;
  --violet-2: #4c1d95;
  --cyan: #22d3ee;
  --lime: #a3e635;
  --bg: #f7f7fb;
  --card: #ffffff;
  --text: #1c1d2e;
  --text-muted: #666a85;
  --border: #e7e7f2;
  --success: #16a34a;
  --danger: #dc2626;
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow-soft: 0 20px 50px rgba(30, 20, 90, 0.14);
  --shadow-card: 0 6px 22px rgba(30, 20, 90, 0.07);
}

* { box-sizing: border-box; }

body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, .display-6 {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  letter-spacing: -0.02em;
  color: var(--ink);
}

a { color: var(--violet); text-decoration: none; }
a:hover { color: var(--violet-2); }

.text-gradient {
  background: linear-gradient(90deg, var(--cyan), var(--lime));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }
.reveal-delay-4 { transition-delay: .32s; }

/* ---------- Nav ---------- */
.ebecayis-nav {
  background: rgba(247,247,251,.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: .6rem 0;
  position: sticky; top: 0; z-index: 1000;
}
.ebecayis-nav .navbar-brand {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  color: var(--ink) !important;
  font-size: 1.35rem;
  display: flex; align-items: center; gap: .5rem;
}
.ebecayis-nav .navbar-brand .logo-dot {
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: .85rem;
}
.ebecayis-nav .nav-link { color: var(--text) !important; font-weight: 600; padding: .5rem 1rem !important; }
.ebecayis-nav .nav-link:hover { color: var(--violet) !important; }
.ebecayis-nav .navbar-toggler { border-color: var(--border); }

/* ---------- Buttons ---------- */
.btn { border-radius: 999px; font-weight: 700; padding: .7rem 1.5rem; transition: transform .15s ease, box-shadow .15s ease, filter .15s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(90deg, var(--violet), #8b5cf6); border: none; color: #fff;
  box-shadow: 0 8px 20px rgba(109,40,217,.35);
}
.btn-primary:hover { filter: brightness(1.08); color: #fff; transform: translateY(-1px); box-shadow: 0 12px 26px rgba(109,40,217,.42); }
.btn-warning {
  background: linear-gradient(90deg, var(--lime), #84cc16); border: none; color: #14210a; font-weight: 800;
  box-shadow: 0 8px 20px rgba(163,230,53,.35);
}
.btn-warning:hover { color: #14210a; filter: brightness(1.05); transform: translateY(-1px); }
.btn-outline-light { border-radius: 999px; border-width: 1.5px; }
.btn-outline-primary { border-radius: 999px; color: var(--violet); border-color: var(--violet); font-weight: 700; }
.btn-outline-primary:hover { background: var(--violet); border-color: var(--violet); }
.btn-sm { padding: .45rem 1rem; font-size: .85rem; }

/* ---------- Cards ---------- */
.ebecayis-card { border-radius: var(--radius-md); border: 1px solid var(--border); box-shadow: var(--shadow-card); background: var(--card); }
.card { border-radius: var(--radius-md); }

/* ---------- Hero ---------- */
.ebecayis-hero {
  background: linear-gradient(160deg, var(--night) 0%, var(--night-2) 55%, #2a1568 100%);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.hero-blob {
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; z-index: -1;
  animation: float-blob 14s ease-in-out infinite;
}
.hero-blob.b1 { width: 340px; height: 340px; background: var(--violet); top: -80px; right: -60px; }
.hero-blob.b2 { width: 260px; height: 260px; background: var(--cyan); bottom: -60px; left: 10%; animation-delay: -6s; }
.hero-blob.b3 { width: 200px; height: 200px; background: var(--lime); top: 40%; right: 25%; animation-delay: -3s; opacity: .35; }
@keyframes float-blob {
  0%, 100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(20px,-25px) scale(1.08); }
  66% { transform: translate(-15px,15px) scale(0.95); }
}
.hero-network { position: absolute; inset: 0; z-index: -1; opacity: .5; }
.hero-network circle.node { fill: var(--cyan); animation: node-pulse 2.6s ease-in-out infinite; }
.hero-network circle.node.n2 { fill: var(--lime); animation-delay: .5s; }
.hero-network circle.node.n3 { fill: #fff; animation-delay: 1s; }
.hero-network line { stroke: rgba(255,255,255,.18); stroke-width: 1; }
@keyframes node-pulse { 0%,100% { opacity: .3; r: 2.5; } 50% { opacity: 1; r: 4.5; } }

.hero-kicker {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: #c4b5fd; margin-bottom: 1rem;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px; padding: .35rem .8rem;
}
.hero-kicker .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); display: inline-block; animation: pulse-dot 1.8s infinite; box-shadow: 0 0 8px var(--lime); }
@keyframes pulse-dot { 0%,100%{opacity:1} 50%{opacity:.35} }
.ebecayis-hero h1 { color: #fff; font-weight: 800; line-height: 1.08; }
.ebecayis-hero h1 .underline-accent { position: relative; white-space: nowrap; }
.ebecayis-hero h1 .underline-accent svg { position: absolute; left: 0; bottom: -.15em; width: 100%; height: .3em; }
.ebecayis-hero p.lead { color: #d7d5f5; }
.stat-pill {
  display: inline-flex; align-items: center; gap: .6rem;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px; padding: .5rem 1rem; color: #eef0ff; font-size: .85rem; font-weight: 600;
  backdrop-filter: blur(6px);
}
.stat-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); animation: pulse-dot 1.8s infinite; box-shadow: 0 0 8px var(--cyan); }

.float-anim { animation: float-y 4s ease-in-out infinite; }
@keyframes float-y { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Glass match card ---------- */
.match-card-glass {
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.5);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.match-card { border-radius: var(--radius-md); background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow-card); overflow: hidden; }
.match-card-head { display: flex; align-items: center; justify-content: space-between; padding: .9rem 1.25rem; border-bottom: 1px solid var(--border); }

/* ---------- Feature cards ---------- */
.feature-card {
  border-radius: var(--radius-md);
  background: var(--card);
  border: 1px solid var(--border);
  padding: 1.75rem;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease, border-color .25s ease;
  position: relative;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); border-color: transparent; }
.feature-icon {
  width: 50px; height: 50px; border-radius: 14px;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.25rem; margin-bottom: 1.1rem;
  box-shadow: 0 8px 18px rgba(109,40,217,.28);
}

/* ---------- Steps (nasıl çalışır) ---------- */
.step-item { position: relative; text-align: center; padding: 0 1rem; }
.step-num {
  width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 1rem;
  background: linear-gradient(135deg, var(--violet), var(--cyan)); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.3rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  box-shadow: 0 10px 24px rgba(109,40,217,.3);
}
.step-line {
  position: absolute; top: 28px; left: calc(50% + 45px); width: calc(100% - 90px); height: 2px;
  background: repeating-linear-gradient(90deg, var(--border) 0 8px, transparent 8px 14px);
}

/* ---------- Stat band ---------- */
.stat-band { background: linear-gradient(135deg, var(--night), var(--violet-2)); border-radius: var(--radius-lg); color: #fff; position: relative; overflow: hidden; }
.stat-band .num { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 2.8rem; color: #fff; }
.stat-band .label { color: #c9c6f0; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; }

/* ---------- Badges & pills ---------- */
.pill { border-radius: 999px; padding: .3rem .75rem; font-size: .78rem; font-weight: 700; display: inline-flex; align-items: center; gap: .35rem; }
.pill-mint { background: #ecfeff; color: #0e7490; }
.pill-gold { background: #f7fee7; color: #4d7c0f; }
.pill-outline { background: transparent; border: 1px solid var(--border); color: var(--text-muted); }
.verified-badge { color: #2f6fed; }

.match-score-ring {
  --pct: 0; width: 64px; height: 64px; border-radius: 50%;
  background: conic-gradient(var(--violet) calc(var(--pct) * 1%), #eee 0);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.match-score-ring-inner {
  width: 50px; height: 50px; border-radius: 50%; background: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-family: 'Plus Jakarta Sans', sans-serif; color: var(--violet); font-size: .95rem;
}
.avatar-circle { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; font-size: .85rem; flex-shrink: 0; }
.criteria-chip { background: #f3e8ff; color: var(--violet-2); border-radius: 999px; padding: .3rem .7rem; font-size: .78rem; font-weight: 700; display: inline-flex; align-items: center; gap: .3rem; }

/* ---------- FAQ accordion ---------- */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%; text-align: left; background: none; border: none; padding: 1.2rem 0;
  font-weight: 700; font-size: 1.02rem; color: var(--ink); display: flex; justify-content: space-between; align-items: center;
  cursor: pointer;
}
.faq-question .chev { transition: transform .25s ease; color: var(--violet); }
.faq-item.open .faq-question .chev { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .3s ease; color: var(--text-muted); }
.faq-item.open .faq-answer { max-height: 300px; }
.faq-answer p { padding-bottom: 1.1rem; margin: 0; }

/* ---------- Trust strip ---------- */
.trust-strip { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; align-items: center; justify-content: center; }
.trust-item { display: flex; align-items: center; gap: .55rem; font-weight: 700; color: var(--text-muted); font-size: .9rem; }
.trust-item i { color: var(--violet); }

/* ---------- Forms ---------- */
.form-label { font-weight: 700; color: var(--ink); font-size: .88rem; }
.form-control, .form-select { border-radius: var(--radius-sm); border: 1.5px solid var(--border); padding: .65rem .9rem; }
.form-control:focus, .form-select:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(109,40,217,.12); }

/* ---------- Footer ---------- */
.ebecayis-footer { background: var(--night); color: #c9c6f0; }
.ebecayis-footer a { color: #eef0ff; }

.ebecayis-blur { filter: blur(3px); user-select: none; color: #94a3b8; }
.fw-800 { font-weight: 800; }

/* ---------- Alerts ---------- */
.alert { border-radius: var(--radius-md); border: none; }
.alert-info { background: #ecfeff; color: #0e7490; }
.alert-warning { background: #f7fee7; color: #4d7c0f; }
.alert-danger { background: #fef2f2; color: var(--danger); }
.alert-success { background: #f0fdf4; color: var(--success); }

/* ---------- Auth split panel ---------- */
.auth-shell { max-width: 980px; margin: 0 auto; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-soft); }
.auth-brand-panel { border-radius: 0 !important; min-height: 100%; }
.auth-form-panel { border-radius: 0 !important; border: none !important; box-shadow: none !important; min-height: 520px; }

/* ---------- Page hero (iç sayfa başlığı) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--night), var(--violet-2));
  border-radius: var(--radius-lg);
  color: #fff;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.page-hero-icon {
  width: 56px; height: 56px; border-radius: 16px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem; color: #fff;
}

/* ---------- Typeahead (DETSİS görev yeri arama) ---------- */
.typeahead-wrap { position: relative; }
.typeahead-list {
  display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 50;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft); max-height: 260px; overflow-y: auto; margin-top: 4px;
}
.typeahead-list.show { display: block; }
.typeahead-item {
  display: flex; flex-direction: column; width: 100%; text-align: left; gap: 2px;
  padding: .6rem .9rem; border: none; background: none; border-bottom: 1px solid var(--border);
  font-size: .85rem; cursor: pointer;
}
.typeahead-item:last-child { border-bottom: none; }
.typeahead-item:hover { background: var(--bg); }
.typeahead-item strong { color: var(--ink); font-weight: 700; }
.typeahead-item span { color: var(--text-muted); font-size: .78rem; }

/* ---------- Mini stat card (panelim) ---------- */
.mini-stat { border-radius: var(--radius-md); background: var(--card); border: 1px solid var(--border); padding: 1.25rem; }
.mini-stat .mini-icon { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.05rem; margin-bottom: .75rem; }
.mini-stat .mini-num { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 1.7rem; color: var(--ink); }

@media (max-width: 767px) {
  .ebecayis-hero h1, .page-hero h1 { font-size: 2.1rem; }
  .step-line { display: none; }
  .auth-shell { border-radius: var(--radius-md); }
}
