/* ============================================================
   cvNet — dark theme (logo: cyan/teal gradient)
   ============================================================ */
:root {
  --brand: #22d3ee;
  --brand-2: #0891b2;
  --brand-3: #0e7490;
  --brand-grad: linear-gradient(135deg, #2dd4ee 0%, #06b6d4 55%, #0e7490 100%);
  --brand-glow: rgba(34, 211, 238, 0.35);

  --bg: #070b14;
  --bg-2: #0c1422;
  --surface: rgba(148, 178, 214, 0.05);
  --surface-2: rgba(148, 178, 214, 0.08);
  --surface-solid: #101a2c;
  --border: rgba(148, 178, 214, 0.14);
  --border-strong: rgba(148, 178, 214, 0.26);

  --text: #e8eef7;
  --muted: #93a4bd;
}

/* Bootstrap dark overrides → brand cyan */
[data-bs-theme="dark"] {
  --bs-primary: #22d3ee;
  --bs-primary-rgb: 34, 211, 238;
  --bs-body-bg: var(--bg);
  --bs-body-color: var(--text);
  --bs-secondary-color: var(--muted);
  --bs-border-color: var(--border);
  --bs-link-color: #5fe3f5;
  --bs-link-hover-color: #9af0ff;
  --bs-emphasis-color: #ffffff;
}

html { font-size: 15px; position: relative; min-height: 100%; }
@media (min-width: 768px) { html { font-size: 16px; } }

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(1100px 620px at 88% -8%, rgba(34, 211, 238, 0.12), transparent 60%),
    radial-gradient(900px 600px at 4% 0%, rgba(14, 116, 144, 0.16), transparent 55%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

/* ============================================================
   Side navbar (collapsible sidebar)
   ============================================================ */
:root {
  --sidebar-w: 240px;        /* expanded width  */
  --sidebar-w-min: 72px;     /* collapsed width (icons only) */
}

.site-sidebar {
  position: fixed; top: 0; left: 0; z-index: 1040;
  width: var(--sidebar-w); height: 100vh;
  display: flex; flex-direction: column;
  background: rgba(10, 16, 28, 0.82);
  backdrop-filter: saturate(140%) blur(12px);
  border-right: 1px solid var(--border);
  box-shadow: 6px 0 26px rgba(0, 0, 0, 0.32);
  padding: .6rem .7rem 1rem;
  transition: width .22s ease, transform .22s ease;
  overflow-x: hidden;
}

/* Sidebar header: brand + collapse toggle */
.sidebar-top {
  display: flex; align-items: center; gap: .4rem;
  padding: .2rem .25rem .7rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: .7rem; min-height: 62px;
}
.sidebar-brand { flex: 1 1 auto; min-width: 0; display: block; padding: 0; }
.sidebar-brand img {
  width: auto; display: block;
  filter: drop-shadow(0 0 12px var(--brand-glow));
}
.sidebar-brand .brand-full { height: 44px; }
.sidebar-brand .brand-icon { height: 40px; display: none; margin: 0 auto; }
.sidebar-toggle {
  flex: 0 0 auto; width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-2); color: var(--brand);
  border: 1px solid var(--border); border-radius: 10px;
  cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.sidebar-toggle:hover { background: var(--surface); color: #9af0ff; border-color: var(--brand); }
.sidebar-toggle:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.sidebar-toggle svg { width: 20px; height: 20px; }
.sidebar-toggle .ico-open { display: none; }   /* > shown only when collapsed */
.sidebar-toggle .ico-close { display: block; } /* < shown when expanded */

/* Nav links */
.sidebar-nav { display: flex; flex-direction: column; gap: .3rem; }
.sidebar-nav .nav-link {
  display: flex; align-items: center; gap: .75rem;
  color: var(--muted); font-weight: 600; border-radius: 11px;
  padding: .6rem .7rem; white-space: nowrap;
  transition: color .15s, background .15s;
}
.sidebar-nav .nav-link:hover { color: var(--text); background: var(--surface-2); }
.sidebar-nav .nav-link.active { color: #04222b; background: var(--brand-grad); box-shadow: 0 4px 12px rgba(6,182,212,.3); }
.sidebar-nav .nav-ico { flex: 0 0 auto; width: 22px; height: 22px; }
.sidebar-nav .nav-label { overflow: hidden; transition: opacity .15s; }

/* Floating opener button (visible only when sidebar fully hidden on mobile) */
.sidebar-opener {
  position: fixed; top: .8rem; left: .8rem; z-index: 1030;
  width: 42px; height: 42px; display: none;
  align-items: center; justify-content: center;
  background: rgba(10, 16, 28, 0.88); color: var(--brand);
  border: 1px solid var(--border-strong); border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,.4); cursor: pointer;
}
.sidebar-opener:hover { color: #9af0ff; border-color: var(--brand); }
.sidebar-opener svg { width: 22px; height: 22px; }

/* Backdrop for mobile off-canvas */
.sidebar-backdrop {
  position: fixed; inset: 0; z-index: 1039;
  background: rgba(3, 6, 12, 0.55); backdrop-filter: blur(2px);
  border: 0; display: none; opacity: 0; transition: opacity .2s;
}

/* Content shifts to make room for the sidebar; flex column keeps the footer pinned
   to the bottom on short pages and right after the content on long ones (consistent). */
.layout-shell {
  margin-left: var(--sidebar-w); transition: margin-left .22s ease;
  min-height: 100vh; display: flex; flex-direction: column;
}
.layout-shell > main { flex: 1 0 auto; }
.layout-shell > .footer { flex-shrink: 0; margin-top: 1.5rem; }

/* ---------- Collapsed state (desktop: icon-only rail) ---------- */
body.sidebar-collapsed .site-sidebar { width: var(--sidebar-w-min); }
body.sidebar-collapsed .layout-shell { margin-left: var(--sidebar-w-min); }
body.sidebar-collapsed .sidebar-brand .brand-full { display: none; }
body.sidebar-collapsed .sidebar-brand .brand-icon { display: block; }
body.sidebar-collapsed .sidebar-top { flex-direction: column; gap: .5rem; }
body.sidebar-collapsed .nav-label { opacity: 0; width: 0; }
body.sidebar-collapsed .sidebar-nav .nav-link { justify-content: center; padding: .6rem; }
body.sidebar-collapsed .sidebar-toggle .ico-open { display: block; }  /* show > */
body.sidebar-collapsed .sidebar-toggle .ico-close { display: none; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}
.card-header, .card-footer {
  background: var(--surface-2);
  border-color: var(--border);
}
.card.shadow-sm { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25) !important; }

/* Candidate cards: hover lift + accent top edge */
.candidate-card { transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; position: relative; }
.candidate-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--brand-grad); opacity: .0; transition: opacity .18s ease;
}
.candidate-card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: 0 18px 42px rgba(0, 0, 0, 0.4); }
.candidate-card:hover::before { opacity: 1; }
.candidate-card .card-title { color: #fff; font-weight: 600; }

/* ---------- Buttons ---------- */
.btn { border-radius: 11px; font-weight: 600; transition: transform .12s ease, box-shadow .15s ease, filter .15s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--brand-grad);
  border: none;
  color: #04222b;
  box-shadow: 0 6px 18px rgba(6, 182, 212, 0.32);
}
.btn-primary:hover, .btn-primary:focus { color: #04222b; filter: brightness(1.08); box-shadow: 0 10px 26px rgba(6, 182, 212, 0.45); }
.btn-outline-primary {
  border: 1px solid var(--border-strong);
  color: var(--brand);
  background: transparent;
}
.btn-outline-primary:hover { background: var(--surface-2); color: #9af0ff; border-color: var(--brand); }

/* Shimmering CTA — pulsing glow + sweeping shine */
.btn-glow { position: relative; overflow: hidden; isolation: isolate; animation: glowPulse 2.2s ease-in-out infinite; }
.btn-glow::after {
  content: ""; position: absolute; top: 0; left: -150%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.65), transparent);
  transform: skewX(-18deg); animation: shine 2.6s ease-in-out infinite; z-index: 1;
}
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 6px 18px rgba(6,182,212,.35); }
  50%      { box-shadow: 0 0 0 4px rgba(34,211,238,.18), 0 10px 30px rgba(34,211,238,.6); }
}
@keyframes shine {
  0%   { left: -150%; }
  60%, 100% { left: 150%; }
}
@media (prefers-reduced-motion: reduce) {
  .btn-glow, .btn-glow::after { animation: none; }
}

/* ---------- Badges ---------- */
.badge.bg-info, .badge.bg-primary {
  background: linear-gradient(135deg, rgba(34, 211, 238, .18), rgba(8, 145, 178, .18)) !important;
  color: #7fe9f7 !important;
  border: 1px solid rgba(34, 211, 238, .3);
  font-weight: 600;
}

/* ---------- Forms ---------- */
.form-control, .form-select {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 11px;
}
.form-control::placeholder { color: #6f819b; }
.form-control:focus, .form-select:focus {
  background: var(--surface-solid);
  color: var(--text);
  border-color: var(--brand);
  box-shadow: 0 0 0 .22rem rgba(34, 211, 238, .18);
}
.form-text { color: var(--muted); }
.form-check-input { background-color: var(--surface-solid); border-color: var(--border-strong); }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.form-check-input:focus { border-color: var(--brand); box-shadow: 0 0 0 .22rem rgba(34, 211, 238, .18); }

/* Focus accessibility */
.btn:focus-visible, .form-control:focus-visible, a:focus-visible {
  outline: 2px solid var(--brand); outline-offset: 2px;
}

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 2.6rem 1rem 2rem; }
.hero-logo {
  width: auto; height: 230px; max-width: 86vw;
  filter: drop-shadow(0 0 32px var(--brand-glow));
  animation: floaty 4.5s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.hero h1 {
  font-weight: 800; letter-spacing: .4px; margin: .6rem 0 .2rem;
  background: var(--brand-grad);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-tagline {
  font-weight: 800; font-size: clamp(1.35rem, 3.4vw, 2.1rem);
  letter-spacing: .2px; margin: .8rem auto .2rem; max-width: 720px;
  line-height: 1.25;
  background: var(--brand-grad);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p { color: var(--muted); max-width: 560px; margin-left: auto; margin-right: auto; }
.hero-stat { margin-top: 1.1rem; font-size: .95rem; }
.hero-stat a { color: var(--muted); text-decoration: none; transition: color .15s; }
.hero-stat a:hover { color: var(--brand); }
.hero-stat strong { color: var(--brand); font-weight: 800; }

/* ---------- Landing: stat band ---------- */
.stat-band {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
  max-width: 720px; margin: 0 auto 1rem;
}
.stat-card {
  text-align: center; padding: 1.1rem .8rem; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--border);
  text-decoration: none; color: var(--text); transition: transform .15s, border-color .15s;
}
.stat-link:hover { transform: translateY(-3px); border-color: var(--brand); }
.stat-num {
  font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 800; line-height: 1;
  background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-label { margin-top: .35rem; font-size: .9rem; color: var(--muted); font-weight: 600; }
.stat-explore { color: var(--muted); text-decoration: none; font-weight: 600; }
.stat-explore:hover { color: var(--brand); }

/* ---------- Landing: feature promo ---------- */
.feature-promo { max-width: 980px; margin: 0 auto 2rem; }
.promo-lead {
  text-align: center; padding: 1.8rem 1.4rem; margin-bottom: 1.4rem; border-radius: 18px;
  background: linear-gradient(135deg, rgba(34,211,238,.10), rgba(14,116,144,.06));
  border: 1px solid rgba(34,211,238,.28);
}
.promo-badge {
  display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .4px;
  color: #04222b; background: var(--brand-grad); border-radius: 999px; padding: .2rem .7rem; margin-bottom: .6rem;
}
.promo-lead h2 { font-weight: 800; color: #fff; margin: 0 0 .5rem; }
.promo-lead h2 .grad { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.promo-lead p { color: var(--muted); max-width: 680px; margin: 0 auto 1.1rem; line-height: 1.6; }

.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.feature-card {
  padding: 1.2rem 1rem; border-radius: 16px; text-align: center;
  background: var(--surface); border: 1px solid var(--border); transition: transform .15s, border-color .15s;
}
.feature-card:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.feature-card--accent { border-color: rgba(34,211,238,.4); box-shadow: 0 0 0 1px rgba(34,211,238,.15), 0 10px 30px rgba(6,182,212,.12); }
.feature-ico { font-size: 1.9rem; margin-bottom: .4rem; }
.feature-card h3 { font-size: 1.02rem; font-weight: 700; color: #fff; margin: 0 0 .35rem; }
.feature-card p { font-size: .88rem; color: var(--muted); margin: 0; line-height: 1.5; }

@media (max-width: 767.98px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 479.98px) {
  .stat-band { grid-template-columns: 1fr; max-width: 320px; }
  .feature-grid { grid-template-columns: 1fr; }
}

/* ---------- Candidates grid (infinite scroll) ---------- */
.cand-card {
  display: flex; flex-direction: column; gap: .7rem; height: 100%;
  padding: 1.1rem; text-decoration: none; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.22); position: relative; overflow: hidden;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.cand-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--brand-grad); opacity: 0; transition: opacity .18s ease;
}
.cand-card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: 0 18px 42px rgba(0,0,0,.4); }
.cand-card:hover::before { opacity: 1; }
.cand-top { display: flex; align-items: center; gap: .75rem; }
.cand-avatar {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; color: #04222b; background: var(--brand-grad);
  box-shadow: 0 4px 12px rgba(6,182,212,.32);
}
.cand-id { min-width: 0; }
.cand-name { font-weight: 700; color: #fff; line-height: 1.2; }
.cand-sector { margin-top: .25rem; }
.cand-email { font-size: .85rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cand-foot {
  margin-top: auto; padding-top: .6rem; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
}
.cand-date { font-size: .8rem; color: var(--muted); }
.cand-go { font-size: .85rem; font-weight: 600; color: var(--brand); }
.cand-status { text-align: center; color: var(--muted); padding: 1.4rem 0 .5rem; min-height: 1.5rem; font-size: .9rem; }

/* Semantic search box */
.cand-search-row { display: flex; gap: .6rem; align-items: stretch; flex-wrap: wrap; }
.cand-search-row .cand-search-box { flex: 1 1 320px; }
.cand-sector-select {
  flex: 0 0 auto; min-width: 180px; background: var(--surface-solid); color: var(--text);
  border: 1px solid var(--border); border-radius: 14px; padding: .4rem .8rem; font-weight: 600;
}
.cand-sector-select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 .2rem rgba(34,211,238,.18); }
.cand-search-box {
  position: relative; display: flex; align-items: center;
  background: var(--surface-solid); border: 1px solid var(--border); border-radius: 14px;
  padding: .15rem .6rem;
}
.cand-search-box:focus-within { border-color: var(--brand); box-shadow: 0 0 0 .2rem rgba(34,211,238,.18); }
.cand-search-ico { width: 20px; height: 20px; color: var(--muted); flex: 0 0 auto; }
.cand-search-input {
  flex: 1 1 auto; border: 0; background: transparent; color: var(--text);
  padding: .6rem .6rem; outline: none; font-size: 1rem;
}
.cand-search-input::placeholder { color: #6f819b; }
.cand-search-input::-webkit-search-cancel-button { display: none; }
.cand-search-clear {
  flex: 0 0 auto; border: 0; background: var(--surface-2); color: var(--muted);
  width: 26px; height: 26px; border-radius: 50%; cursor: pointer; font-size: 1.1rem; line-height: 1;
}
.cand-search-clear:hover { color: var(--text); }

/* Matched snippet inside a search-result card */
.cand-match {
  font-size: .82rem; color: var(--muted); line-height: 1.4;
  background: rgba(34,211,238,.06); border: 1px solid rgba(34,211,238,.18);
  border-radius: 10px; padding: .45rem .55rem;
}
.cand-match-tag {
  display: inline-block; font-size: .68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .3px; color: #7fe9f7; margin-right: .35rem;
}
.section-title { font-weight: 700; color: #fff; }
.page-head { gap: .75rem; flex-wrap: wrap; }

/* ---------- Alerts ---------- */
.alert { border-radius: 14px; border: 1px solid var(--border); }
.alert-info { background: rgba(34, 211, 238, .08); color: #bfeefb; }
.alert-danger { background: rgba(239, 68, 68, .1); color: #fecaca; border-color: rgba(239,68,68,.3); }

/* ============================================================
   Profile (dark, themed — generated HTML uses semantic classes)
   ============================================================ */
.profile-surface {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.6rem 1.8rem 2rem;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(8px);
}
.cv-profile { color: var(--text); line-height: 1.6; }

/* Header */
.cv-head { padding-bottom: 1.1rem; margin-bottom: 1.3rem; border-bottom: 1px solid var(--border); }
.cv-head h1 {
  margin: 0 0 .5rem; font-weight: 800; font-size: clamp(1.5rem, 3vw, 2rem);
  background: var(--brand-grad);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.cv-meta { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.cv-sector {
  font-size: .8rem; font-weight: 600; color: #7fe9f7;
  background: linear-gradient(135deg, rgba(34,211,238,.16), rgba(8,145,178,.16));
  border: 1px solid rgba(34,211,238,.3); border-radius: 999px; padding: .2rem .7rem;
}
.cv-email { color: var(--brand); text-decoration: none; font-size: .92rem; }
.cv-email:hover { color: #9af0ff; text-decoration: underline; }

/* AI summary card */
.cv-summary {
  position: relative; margin-bottom: 1.6rem; padding: 1rem 1.15rem;
  border-radius: 14px; border: 1px solid rgba(34,211,238,.28);
  background: linear-gradient(135deg, rgba(34,211,238,.08), rgba(14,116,144,.06));
}
.cv-summary-tag {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .4px;
  text-transform: uppercase; color: #7fe9f7; margin-bottom: .35rem;
}
.cv-summary p { margin: 0; color: #d9ecf5; font-size: 1.02rem; line-height: 1.6; }

/* Kullanıcının kendi giriş cümlesi (CV'den ham) — AI özetinden görsel olarak ayrı (alıntı tonu) */
.cv-intro {
  position: relative; margin-bottom: 1rem; padding: .9rem 1.1rem;
  border-radius: 14px; border: 1px solid var(--border);
  border-left: 3px solid rgba(148,178,214,.5);
  background: var(--surface);
}
.cv-intro-tag {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .4px;
  text-transform: uppercase; color: var(--muted); margin-bottom: .35rem;
}
.cv-intro p { margin: 0; color: #c8d6ea; font-size: 1rem; line-height: 1.6; font-style: italic; white-space: pre-line; }

/* Sections */
.cv-section { margin-bottom: 1.5rem; }
.cv-section > h2 {
  display: flex; align-items: center; gap: .55rem;
  font-size: 1.18rem; font-weight: 700; color: #fff; margin: 0 0 .8rem;
  padding-bottom: .45rem; border-bottom: 1px solid var(--border);
}
.cv-section > h2::before {
  content: ""; width: 4px; height: 1.05rem; border-radius: 3px; background: var(--brand-grad);
}
.cv-section h3 { font-size: 1rem; font-weight: 700; color: #eaf6fb; margin: 0 0 .15rem; }
.cv-section p { margin: 0 0 .55rem; color: var(--text); }
.cv-section a { color: var(--brand); }
.cv-section ul { margin: .2rem 0 .7rem; padding-left: 1.15rem; }
.cv-section li { margin-bottom: .25rem; }

/* Experience / project / education "cards" */
.cv-item {
  position: relative; padding: .75rem 0 .75rem 1.1rem; margin-bottom: .2rem;
  border-left: 2px solid var(--border);
}
.cv-item::before {
  content: ""; position: absolute; left: -5px; top: 1.05rem;
  width: 9px; height: 9px; border-radius: 50%; background: var(--brand);
  box-shadow: 0 0 0 3px rgba(34,211,238,.18);
}
.cv-item:last-child { margin-bottom: 0; }
.cv-item-sub { font-size: .85rem; color: var(--muted); margin-bottom: .4rem !important; }

/* Skills / languages / interests → chips */
.cv-section[data-sec="skills"] ul,
.cv-section[data-sec="languages"] ul,
.cv-section[data-sec="interests"] ul {
  list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .45rem;
}
.cv-section[data-sec="skills"] li,
.cv-section[data-sec="languages"] li,
.cv-section[data-sec="interests"] li {
  margin: 0; padding: .35rem .75rem; font-size: .86rem; font-weight: 600;
  color: #cdeaf2; background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 999px;
  transition: border-color .15s, color .15s, transform .12s;
}
.cv-section[data-sec="skills"] li:hover,
.cv-section[data-sec="languages"] li:hover,
.cv-section[data-sec="interests"] li:hover {
  color: #9af0ff; border-color: var(--brand); transform: translateY(-1px);
}
/* Small models sometimes wrap a chip list in a cv-item with a redundant heading —
   strip the timeline chrome and the duplicate heading so chips render cleanly. */
.cv-section[data-sec="skills"] .cv-item,
.cv-section[data-sec="languages"] .cv-item,
.cv-section[data-sec="interests"] .cv-item {
  border: 0; padding: 0; margin: 0;
}
.cv-section[data-sec="skills"] .cv-item::before,
.cv-section[data-sec="languages"] .cv-item::before,
.cv-section[data-sec="interests"] .cv-item::before { display: none; }
.cv-section[data-sec="skills"] .cv-item > h3,
.cv-section[data-sec="languages"] .cv-item > h3,
.cv-section[data-sec="interests"] .cv-item > h3 { display: none; }

/* ---------- Upload tabs + manual form ---------- */
.upload-tabs .nav-link {
  color: var(--muted); font-weight: 600; border: 1px solid var(--border);
  background: var(--surface); border-radius: 11px; margin-right: .5rem; padding: .5rem 1rem;
}
.upload-tabs .nav-link:hover { color: var(--text); }
.upload-tabs .nav-link.active { color: #04222b; background: var(--brand-grad); border-color: transparent; box-shadow: 0 4px 12px rgba(6,182,212,.3); }

/* Prominent PDF dropzone */
.cv-dropzone {
  display: flex; align-items: center; gap: 1rem; width: 100%; cursor: pointer;
  padding: 1.15rem 1.25rem; margin: 0; border-radius: 14px;
  background: var(--surface); border: 2px dashed var(--border);
  transition: border-color .15s, background .15s, box-shadow .15s, transform .05s;
}
.cv-dropzone:hover { border-color: var(--brand); background: var(--surface-2); }
.cv-dropzone:focus-within { border-color: var(--brand); box-shadow: 0 0 0 .2rem rgba(34,211,238,.18); }
.cv-dropzone.is-dragover { border-color: var(--brand); border-style: solid; background: var(--surface-2); transform: scale(1.01); }
.cv-dropzone.has-file { border-style: solid; border-color: rgba(34,197,94,.55); background: rgba(34,197,94,.08); }
.cv-dropzone > input[type="file"] {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
.cv-dropzone-icon { font-size: 1.9rem; line-height: 1; flex: 0 0 auto; }
.cv-dropzone-main { display: flex; flex-direction: column; gap: .15rem; flex: 1 1 auto; min-width: 0; }
.cv-dropzone-title { color: #fff; font-weight: 700; font-size: 1.02rem; }
.cv-dropzone-sub { color: var(--muted); font-size: .86rem; }
.cv-dropzone.has-file .cv-dropzone-title { color: #bbf7d0; }
.cv-dropzone-btn {
  flex: 0 0 auto; padding: .5rem 1.05rem; border-radius: 11px; font-weight: 700; white-space: nowrap;
  color: #04222b; background: var(--brand-grad); box-shadow: 0 4px 12px rgba(6,182,212,.3);
}

.manual-group { margin: 1.1rem 0; }
.manual-group-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .55rem; }
.manual-group-head h5 { margin: 0; color: #fff; font-weight: 700; font-size: 1.02rem; }
.manual-row {
  position: relative; padding: .9rem 2.2rem .9rem .9rem; margin-bottom: .6rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
}
.manual-del {
  position: absolute; top: .5rem; right: .5rem; width: 26px; height: 26px; line-height: 1;
  border: 1px solid var(--border); background: var(--surface-2); color: var(--muted);
  border-radius: 8px; cursor: pointer; font-size: 1.1rem; transition: color .15s, border-color .15s;
}
.manual-del:hover { color: #fecaca; border-color: rgba(239,68,68,.5); }

/* Tag (chip) inputs */
.tag-input-row { display: flex; gap: .5rem; align-items: stretch; }
.tag-box {
  flex: 1 1 auto; display: flex; flex-wrap: wrap; gap: .4rem; align-items: center;
  background: var(--surface-solid); border: 1px solid var(--border); border-radius: 11px;
  padding: .35rem .5rem; min-height: 44px;
}
.tag-box:focus-within { border-color: var(--brand); box-shadow: 0 0 0 .2rem rgba(34,211,238,.18); }
.tag-entry {
  flex: 1 1 120px; min-width: 120px; border: 0 !important; background: transparent !important;
  box-shadow: none !important; padding: .25rem .15rem !important; color: var(--text);
}
.tag-add { flex: 0 0 auto; border-radius: 11px; white-space: nowrap; }

.tag-chip {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .28rem .3rem .28rem .65rem; border-radius: 999px;
  font-size: .85rem; font-weight: 600; color: #04222b;
  background: var(--brand-grad);
  box-shadow: 0 0 0 1px rgba(34,211,238,.25), 0 4px 14px rgba(34,211,238,.45);
  animation: chipPop .25s ease;
}
.tag-chip button {
  border: 0; background: rgba(0,0,0,.18); color: #04222b; cursor: pointer;
  width: 18px; height: 18px; border-radius: 50%; line-height: 1; font-size: .9rem;
  display: inline-flex; align-items: center; justify-content: center;
}
.tag-chip button:hover { background: rgba(0,0,0,.32); }
@keyframes chipPop { from { transform: scale(.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* AI summarize */
.summary-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .35rem; gap: .5rem; }
.summary-ai-btn {
  position: relative; overflow: visible;
  font-weight: 700; color: #04222b; background: var(--brand-grad); border: none; border-radius: 999px;
  padding: .3rem .8rem; box-shadow: 0 4px 14px rgba(6,182,212,.35);
}
.summary-ai-btn .btn-label { position: relative; z-index: 4; }
.summary-ai-btn:hover { filter: brightness(1.08); }
.summary-ai-btn:disabled { cursor: progress; }

/* ---- Real blue fire (only while .flaming); intensity driven by --flame 0..1 ---- */
.summary-ai-btn.flaming {
  color: #fff;
  box-shadow:
    0 0 calc(6px + var(--flame,0) * 26px) calc(var(--flame,0) * 6px) rgba(34,211,238, calc(.3 + var(--flame,0) * .45)),
    0 4px 14px rgba(6,182,212,.4);
}

/* Hot ember base behind the button */
.summary-ai-btn.flaming::before {
  content: ""; position: absolute; z-index: 1; left: 6px; right: 6px; bottom: 35%;
  height: calc(10px + var(--flame,0) * 22px);
  background: radial-gradient(60% 100% at 50% 100%, rgba(125,211,252,.9), rgba(34,211,238,.5) 45%, transparent 75%);
  filter: blur(4px); opacity: calc(.3 + var(--flame,0) * .7);
  pointer-events: none;
}

/* The rising flame tongues */
.summary-ai-btn .flames {
  position: absolute; left: 4px; right: 4px; bottom: 38%; height: 0;
  z-index: 2; pointer-events: none; opacity: 0; transition: opacity .25s;
}
.summary-ai-btn.flaming .flames { opacity: 1; }
.summary-ai-btn .flames i {
  position: absolute; bottom: 0; display: block; width: calc(11px + var(--flame,0) * 7px);
  background: linear-gradient(to top,
    #ffffff 0%, #cffafe 12%, #67e8f9 34%, #22d3ee 56%, #0891b2 78%, transparent 100%);
  clip-path: polygon(50% 0%, 66% 26%, 80% 52%, 70% 74%, 58% 88%, 50% 100%, 42% 88%, 30% 74%, 20% 52%, 34% 26%);
  filter: blur(.6px) saturate(1.4);
  transform-origin: 50% 100%;
  mix-blend-mode: screen;
  animation: fireDance .55s ease-in-out infinite alternate;
}
/* spread tongues across the width, taller in the middle */
.summary-ai-btn .flames i:nth-child(1) { left: 0%;  height: calc(13px + var(--flame,0) * 30px); animation-delay: -.05s; animation-duration: .5s; }
.summary-ai-btn .flames i:nth-child(2) { left: 15%; height: calc(18px + var(--flame,0) * 46px); animation-delay: -.22s; animation-duration: .62s; }
.summary-ai-btn .flames i:nth-child(3) { left: 31%; height: calc(22px + var(--flame,0) * 60px); animation-delay: -.11s; animation-duration: .48s; }
.summary-ai-btn .flames i:nth-child(4) { left: 46%; height: calc(24px + var(--flame,0) * 66px); animation-delay: -.30s; animation-duration: .54s; }
.summary-ai-btn .flames i:nth-child(5) { left: 61%; height: calc(22px + var(--flame,0) * 58px); animation-delay: -.16s; animation-duration: .6s;  }
.summary-ai-btn .flames i:nth-child(6) { left: 77%; height: calc(18px + var(--flame,0) * 44px); animation-delay: -.26s; animation-duration: .5s;  }
.summary-ai-btn .flames i:nth-child(7) { left: 92%; height: calc(13px + var(--flame,0) * 28px); animation-delay: -.08s; animation-duration: .58s; }

@keyframes fireDance {
  0%   { transform: scaleY(.78) scaleX(1.02) translateX(-1px) skewX(-5deg); opacity: .7; }
  40%  { transform: scaleY(1.12) scaleX(.9)  translateX(1px)  skewX(4deg);  opacity: 1;  }
  70%  { transform: scaleY(.96) scaleX(1.04) translateX(-1px) skewX(-3deg); opacity: .9; }
  100% { transform: scaleY(1.2)  scaleX(.88) translateX(1px)  skewX(6deg);  opacity: 1;  }
}
.summary-ai-btn .ai-spark { display: inline-block; }
.summary-ai-btn.flaming .ai-spark { animation: spark .5s linear infinite; }
@keyframes spark { 0%,100% { transform: scale(1); } 50% { transform: scale(1.25) rotate(15deg); } }
@media (prefers-reduced-motion: reduce) {
  .summary-ai-btn .flames i, .summary-ai-btn.flaming .ai-spark { animation: none; }
}
#summary-text.flash { animation: flashField 1.2s ease; }
@keyframes flashField {
  0% { border-color: var(--brand); box-shadow: 0 0 0 .25rem rgba(34,211,238,.3); }
  100% { border-color: var(--border); box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) {
  .tag-chip, .summary-ai-btn.loading .ai-spark, #summary-text.flash { animation: none; }
}

/* Upload visibility radios */
.vis-pass { padding-top: .2rem; }

/* Verify (OTP) page */
.verify-head { text-align: center; margin-bottom: 1.2rem; }
.verify-icon { font-size: 2.4rem; margin-bottom: .3rem; }
.verify-code {
  text-align: center; font-size: 1.8rem; font-weight: 800; letter-spacing: .5rem;
  padding: .7rem; border-radius: 14px;
}

/* Profil görüntülenme rozeti */
.profile-views {
  font-size: .82rem; color: var(--muted); font-weight: 600; letter-spacing: .2px;
}
.profile-views-sep { margin: 0 .4rem; opacity: .5; }

/* Legal / privacy document */
.legal-doc { max-width: 880px; margin: 0 auto; }
.legal-note { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--border); font-size: .85rem; color: var(--muted); }

/* ============================================================
   Chat (modern messenger style)
   ============================================================ */
.chat-shell {
  position: sticky; top: 1rem;
  display: flex; flex-direction: column;
  height: calc(100vh - 2rem); max-height: 680px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(8px);
  overflow: hidden;
}

/* Header */
.chat-head {
  display: flex; align-items: center; gap: .75rem;
  padding: .85rem 1rem; border-bottom: 1px solid var(--border);
  background: rgba(10, 16, 28, 0.4);
}
.chat-avatar {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; color: #04222b; background: var(--brand-grad);
  box-shadow: 0 4px 12px rgba(6,182,212,.35); font-size: 1rem;
}
.chat-avatar.sm { width: 30px; height: 30px; font-size: .78rem; }
.chat-head-info { min-width: 0; }
.chat-head-name { display: flex; align-items: center; gap: .4rem; font-weight: 700; color: #fff; }
.chat-online { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.2); }
.chat-head-sub { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; font-size: .76rem; color: var(--muted); margin-top: .1rem; }
.chat-sector-badge {
  font-weight: 600; color: #7fe9f7; background: rgba(34,211,238,.12);
  border: 1px solid rgba(34,211,238,.28); border-radius: 999px; padding: .05rem .5rem;
}

/* Message stream */
.chat-stream {
  flex: 1 1 auto; overflow-y: auto; padding: 1rem;
  display: flex; flex-direction: column; gap: .65rem;
  scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent;
}
.chat-stream::-webkit-scrollbar { width: 8px; }
.chat-stream::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 8px; }

.chat-empty { margin: auto; text-align: center; color: var(--muted); padding: 1rem; }
.chat-empty-emoji { font-size: 2rem; margin-bottom: .4rem; }
.chat-empty p { margin: 0; line-height: 1.5; }

.chat-row { display: flex; align-items: flex-end; gap: .5rem; max-width: 100%; }
.chat-row.is-user { justify-content: flex-end; }
.chat-row .chat-avatar.sm { margin-bottom: 2px; }

.chat-bubble {
  display: inline-block; max-width: 80%; padding: .6rem .85rem; border-radius: 16px;
  white-space: pre-wrap; word-wrap: break-word; line-height: 1.45; font-size: .94rem;
}
.chat-user { background: var(--brand-grad); color: #04222b; font-weight: 600; border-bottom-right-radius: 5px; }
.chat-bot { background: var(--surface-solid); border: 1px solid var(--border); color: var(--text); border-bottom-left-radius: 5px; }
.chat-bot strong { color: #fff; }
.chat-bot em { color: #d9ecf5; }
.chat-bot code {
  background: rgba(34,211,238,.12); border: 1px solid rgba(34,211,238,.22);
  border-radius: 6px; padding: .05rem .35rem; font-size: .86em; color: #9af0ff;
}
.chat-bot ul { margin: .3rem 0; padding-left: 1.15rem; }
.chat-bot li { margin-bottom: .15rem; }

/* Typing indicator */
.chat-typing { display: inline-flex; gap: 4px; align-items: center; }
.chat-typing span {
  width: 7px; height: 7px; border-radius: 50%; background: var(--muted);
  animation: typingBounce 1.2s infinite ease-in-out;
}
.chat-typing span:nth-child(2) { animation-delay: .15s; }
.chat-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: .5; }
  30% { transform: translateY(-5px); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .chat-typing span { animation: none; } }

/* Suggestion chips */
.chat-suggestions {
  display: flex; flex-wrap: wrap; gap: .4rem; padding: .6rem 1rem 0;
}
.chat-suggestions .chip {
  font-size: .82rem; font-weight: 600; color: #bfe9f3;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 999px; padding: .35rem .7rem; cursor: pointer;
  transition: color .15s, border-color .15s, background .15s, transform .12s;
}
.chat-suggestions .chip:hover { color: #04222b; background: var(--brand-grad); border-color: transparent; transform: translateY(-1px); }

/* Mode seçimi — kompakt selectbox (başlıkta, az yer kaplar; model sayısından bağımsız sabit) */
.chat-mode-select {
  flex: 0 1 auto; max-width: 11rem;
  font-size: .72rem; font-weight: 600; line-height: 1;
  color: var(--text); background-color: var(--surface-solid);
  border: 1px solid var(--border); border-radius: 999px;
  padding: .34rem 1.5rem .34rem .7rem; cursor: pointer;
  text-overflow: ellipsis;
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394b2d6' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .55rem center; background-size: .7rem;
  transition: border-color .15s, box-shadow .15s;
}
.chat-mode-select:hover { border-color: var(--brand); }
.chat-mode-select:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 .18rem rgba(34,211,238,.18);
}
/* Açılan liste OS tarafından çizilir; koyu temaya yaklaştır (destekleyen tarayıcılarda) */
.chat-mode-select option,
.chat-mode-select optgroup {
  background: var(--surface-solid); color: var(--text);
}

/* Composer */
.chat-composer { display: flex; gap: .5rem; padding: .75rem 1rem .45rem; }
.chat-disclaimer {
  margin: 0; padding: 0 1rem .8rem; text-align: center;
  font-size: .72rem; line-height: 1.35; color: var(--muted);
}
.chat-text {
  flex: 1 1 auto; background: var(--surface-solid); border: 1px solid var(--border);
  color: var(--text); border-radius: 999px; padding: .6rem 1rem; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.chat-text::placeholder { color: #6f819b; }
.chat-text:focus { border-color: var(--brand); box-shadow: 0 0 0 .2rem rgba(34,211,238,.18); }
.chat-text:disabled { opacity: .6; }
.chat-send {
  flex: 0 0 auto; width: 44px; height: 44px; border: none; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-grad); color: #04222b; cursor: pointer;
  box-shadow: 0 6px 16px rgba(6,182,212,.32); transition: filter .15s, transform .12s;
}
.chat-send:hover { filter: brightness(1.08); }
.chat-send:active { transform: scale(.94); }
.chat-send svg { width: 20px; height: 20px; }

/* ---------- Footer ---------- */
.footer {
  padding: 12px 0; line-height: 1.3; font-size: .85rem;
  background: rgba(10, 16, 28, 0.5);
  border-top: 1px solid var(--border) !important;
  color: var(--muted);
}
.footer a { color: var(--brand); text-decoration: none; }

/* ---------- Floating "Geri Bildirim" butonu (her sayfada sabit) ---------- */
.feedback-fab {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 1045;
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .68rem 1rem; border-radius: 999px;
  background: var(--brand-grad); color: #04222b !important; font-weight: 700;
  text-decoration: none; border: 1px solid transparent;
  box-shadow: 0 8px 24px var(--brand-glow);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.feedback-fab:hover { transform: translateY(-2px); box-shadow: 0 12px 32px var(--brand-glow); filter: brightness(1.06); }
.feedback-fab:focus-visible { outline: 2px solid #9af0ff; outline-offset: 3px; }
.feedback-fab svg { width: 20px; height: 20px; flex-shrink: 0; }
.feedback-fab-label { font-size: .9rem; white-space: nowrap; }

/* Mobilde yalnız ikon (yer kaplamasın), dokunma hedefi korunur */
@media (max-width: 575.98px) {
  .feedback-fab { right: .9rem; bottom: .9rem; padding: .8rem; }
  .feedback-fab-label { display: none; }
}

/* ---------- Responsive / mobile (sidebar becomes off-canvas) ---------- */
@media (max-width: 991.98px) {
  /* Sidebar slides off screen; content uses full width */
  .site-sidebar { transform: translateX(-100%); width: var(--sidebar-w); box-shadow: none; }
  .layout-shell { margin-left: 0; padding-top: 3.4rem; }
  .sidebar-opener { display: inline-flex; }

  /* Collapsed class on mobile means "open" (slid in) */
  body.sidebar-collapsed .site-sidebar { transform: translateX(0); width: var(--sidebar-w); box-shadow: 6px 0 26px rgba(0,0,0,.5); }
  body.sidebar-collapsed .layout-shell { margin-left: 0; }
  body.sidebar-collapsed .sidebar-opener { display: none; }
  body.sidebar-collapsed .sidebar-backdrop { display: block; opacity: 1; }
  /* Keep full labels & header layout when open on mobile */
  body.sidebar-collapsed .nav-label { opacity: 1; width: auto; }
  body.sidebar-collapsed .sidebar-nav .nav-link { justify-content: flex-start; padding: .6rem .7rem; }
  body.sidebar-collapsed .sidebar-top { flex-direction: row; }
  body.sidebar-collapsed .sidebar-brand .brand-full { display: block; height: 44px; }
  body.sidebar-collapsed .sidebar-brand .brand-icon { display: none; }
  body.sidebar-collapsed .sidebar-toggle .ico-open { display: none; }
  body.sidebar-collapsed .sidebar-toggle .ico-close { display: block; }
}

/* Chat: stop sticking & full-height once it stacks under the profile */
@media (max-width: 991.98px) {
  .chat-shell { position: static; height: auto; max-height: none; }
  .chat-stream { height: 50vh; min-height: 320px; }
}

@media (max-width: 575.98px) {
  .hero { padding: 1.4rem .5rem 1.2rem; }
  .hero-logo { height: 138px; width: auto; }
  .profile-surface { padding: 1.1rem 1rem 1.4rem; }
  .card { border-radius: 14px; }
}
