﻿:root {
  --brand-900: #0a2540;
  --brand-700: #103a66;
  --brand-500: #1f6feb;
  --brand-300: #6ea8fe;
  --accent: #ff9500;
  --bg: #f4f6fb;
  --card: #ffffff;
}

html { font-size: 15px; }
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: #1c2430;
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
main { flex: 1 0 auto; }

/* Navbar */
.app-navbar {
  background: linear-gradient(120deg, var(--brand-900), var(--brand-700));
  box-shadow: 0 2px 12px rgba(10, 37, 64, .25);
}
.app-navbar .navbar-brand,
.app-navbar .nav-link-pill { color: #fff; text-decoration: none; }
.nav-link-pill {
  padding: .35rem .7rem; border-radius: 8px; font-size: 1.1rem;
  transition: background .15s;
}
.nav-link-pill:hover { background: rgba(255,255,255,.15); }
.lang-menu { max-height: 60vh; overflow-y: auto; }

.app-footer { background: var(--brand-900); color: rgba(255,255,255,.7); flex-shrink: 0; }

/* Kullanici cipi (navbar) */
.user-chip {
  display: flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18);
  color: #fff; padding: .25rem .6rem .25rem .25rem; border-radius: 999px; cursor: pointer;
}
.user-chip:hover { background: rgba(255,255,255,.2); }
.user-chip-img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.user-chip-initials {
  width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .8rem;
}
.user-chip-name { font-size: .9rem; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-menu { min-width: 240px; border: none; box-shadow: 0 10px 30px rgba(16,58,102,.18); border-radius: 14px; padding: .4rem; }
.user-menu-head { padding: .5rem .8rem; }
.user-menu .dropdown-item { border-radius: 8px; padding: .55rem .8rem; }

/* Profil basligi (CV sayfasi) */
.profile-header {
  display: flex; align-items: center; gap: 1rem;
  background: linear-gradient(120deg, var(--brand-900), var(--brand-500)); color: #fff;
  border-radius: 16px; padding: 1.1rem 1.4rem; margin-bottom: 1.2rem;
}
.profile-header .ph-avatar, .profile-header .ph-avatar-img {
  width: 60px; height: 60px; border-radius: 50%; object-fit: cover;
  border: 2px solid rgba(255,255,255,.5); flex-shrink: 0;
}
.profile-header .ph-avatar {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); font-weight: 800; font-size: 1.3rem;
}
.profile-header .ph-name { font-weight: 800; font-size: 1.2rem; line-height: 1.1; }
.profile-header .ph-email { opacity: .85; font-size: .9rem; }

/* Cards */
.card { border: none; border-radius: 16px; box-shadow: 0 6px 22px rgba(16, 58, 102, .08); }
.card-title { font-weight: 700; }

/* Login (personel.com tarzi koyu mavi) */
.auth-hero {
  background: linear-gradient(160deg, #0a2540 0%, #103a66 55%, #1f6feb 130%);
  min-height: calc(100vh - 120px);
  display: flex; align-items: center; justify-content: center;
  border-radius: 20px; padding: 2rem 1rem; color: #fff;
}
.auth-card {
  width: 100%; max-width: 420px; background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.15); border-radius: 20px;
  padding: 2rem; backdrop-filter: blur(6px);
}
.auth-card h1 { font-size: 1.9rem; font-weight: 800; }
.btn-social {
  width: 100%; padding: .8rem; border-radius: 12px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: .6rem;
  border: none; margin-bottom: .8rem;
}
.btn-google { background: #fff; color: #1c2430; }
.btn-apple { background: #000; color: #fff; }
.divider { display: flex; align-items: center; gap: .6rem; color: rgba(255,255,255,.6); margin: 1rem 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: rgba(255,255,255,.25); }

/* CV form (personel.com) */
.cv-hero { background: linear-gradient(160deg, #0a2540, #1f6feb); color: #fff; border-radius: 20px 20px 0 0; padding: 1.6rem; }
.form-floating > label { color: #6b7686; }
.form-control, .form-select { border-radius: 12px; padding: .7rem .9rem; border: 1.5px solid #e3e8f0; }
.form-control:focus, .form-select:focus { border-color: var(--brand-500); box-shadow: 0 0 0 .2rem rgba(31,111,235,.15); }
.btn-primary { background: var(--brand-500); border: none; border-radius: 12px; padding: .7rem 1.2rem; font-weight: 600; }
.btn-primary:hover { background: var(--brand-700); }
.btn-accent { background: var(--accent); border: none; color: #fff; border-radius: 12px; padding: .7rem 1.2rem; font-weight: 600; }

.choice-pill { cursor: pointer; }
.choice-pill input { display: none; }
.choice-pill span {
  display: block; padding: .6rem 1rem; border: 1.5px solid #e3e8f0; border-radius: 12px;
  text-align: center; transition: all .15s;
}
.choice-pill input:checked + span { border-color: var(--brand-500); background: rgba(31,111,235,.08); font-weight: 600; }

/* Dashboard */
.stat-card { border-radius: 16px; color: #fff; padding: 1.2rem; }
.stat-card .num { font-size: 2.1rem; font-weight: 800; line-height: 1; }
.stat-card .lbl { opacity: .9; font-size: .85rem; }
.bg-grad-1 { background: linear-gradient(135deg, #1f6feb, #6ea8fe); }
.bg-grad-2 { background: linear-gradient(135deg, #ff9500, #ffb84d); }
.bg-grad-3 { background: linear-gradient(135deg, #16a34a, #4ade80); }
.bg-grad-4 { background: linear-gradient(135deg, #7c3aed, #a78bfa); }

.badge-status-1 { background: #6b7280; }
.badge-status-2 { background: #f59e0b; }
.badge-status-3 { background: #16a34a; }
.badge-status-4 { background: #dc2626; }

.avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; background: #e3e8f0; }

[dir="rtl"] .text-start { text-align: right !important; }

/* CV kagidi — KIRMIZI TENCERE CV formatindan uyarlandi (solda koyu sutun, sagda beyaz).
   AYNI TASARIM MOBILDE: YurtdisiCVApp/src/cvHtml.ts — biri degisirse DIGERI DE degismelidir. */
.cv-sheet { max-width:800px; margin:0 auto; background:#fff; overflow:hidden;
    border:1px solid #e3e8f0; border-radius:8px; box-shadow:0 6px 22px rgba(16,58,102,.08);
    color:#1c2430;
    /* Yazdirmada koyu sutun ve beyaz ikon daireleri KAYBOLMASIN (tarayicinin
       "arka plan grafikleri" secenegi kapali olsa bile basilir). */
    -webkit-print-color-adjust:exact; print-color-adjust:exact; }
.cv-tbl { width:100%; border-collapse:collapse; table-layout:fixed; }
.cv-tbl > tbody > tr > td { vertical-align:top; padding:0; }
.cv-left { width:38%; background:#0a2540; color:#fff; }
.cv-right { width:62%; padding:26px 28px; }
/* Fotograf alani SABIT: yuklenen resmin oleti ne olursa olsun ayni olcude kutu.
   overflow:hidden + object-fit -> resim ASLA cerceveden tasmaz; object-position:top
   ile boy fotograflarinda bas kesilmez. */
.cv-photo { width:100%; height:300px; background:#103a66; overflow:hidden; position:relative; }
.cv-photo img { width:100%; height:300px; max-width:100%; object-fit:cover; object-position:center top; display:block; }
.cv-photo-ph { width:100%; height:300px; line-height:300px; text-align:center; }
.cv-photo-ph svg { width:64px; height:64px; fill:rgba(255,255,255,.35); vertical-align:middle; }
.cv-lb { padding:20px 20px; border-bottom:2px solid rgba(255,255,255,.15); }
.cv-lb.last { border-bottom:0; }
.cv-name { font-size:19px; font-weight:800; letter-spacing:.04em; text-transform:uppercase; text-align:center; margin:0; line-height:1.25; }
.cv-sub { text-align:center; font-size:13px; color:#ff9f1c; margin-top:5px; font-weight:600; }
.cv-lt { font-size:14px; font-weight:800; letter-spacing:.06em; text-transform:uppercase; color:#ff9f1c; margin:0 0 14px; }
ul.cv-list { list-style:none; margin:0; padding:0; }
ul.cv-list li { margin-bottom:13px; font-size:12.5px; line-height:1.4; }
ul.cv-list li:last-child { margin-bottom:0; }
.cv-sheet .ic { display:inline-block; width:28px; height:28px; line-height:28px; border-radius:50%;
    background:#fff; text-align:center; margin-right:10px; vertical-align:middle; }
.cv-sheet .ic svg { fill:#0a2540; vertical-align:middle; }
.cv-sheet .tx { display:inline-block; width:calc(100% - 42px); vertical-align:middle; word-break:break-word; }
.cv-t { font-size:17px; font-weight:800; letter-spacing:.05em; text-transform:uppercase; color:#0a2540;
    margin:0 0 14px; padding-bottom:9px; border-bottom:2px solid #ff9f1c; }
.cv-sec { margin-bottom:26px; }
.cv-sec:last-child { margin-bottom:0; }
.cv-about { white-space:pre-wrap; line-height:1.7; font-size:13px; margin:0; }
table.cv-ov { width:100%; border-collapse:collapse; table-layout:fixed; }
table.cv-ov td { width:50%; vertical-align:top; padding:0 16px 18px 0; }
table.cv-ov .k { font-size:11.5px; font-weight:700; text-transform:uppercase; letter-spacing:.03em; color:#8a96a6; }
table.cv-ov .k svg { fill:#ff9f1c; vertical-align:-2px; margin-right:4px; }
table.cv-ov .v { font-size:13.5px; font-weight:600; color:#1c2430; line-height:1.45; margin-top:3px; word-break:break-word; }
.cv-video { width:100%; max-height:280px; border-radius:8px; background:#000; }
.cv-link { font-size:12px; color:#1f6feb; word-break:break-all; line-height:1.5; }
.cv-link svg { fill:#1f6feb; vertical-align:-2px; }
.cv-upd { margin-top:18px; font-size:11px; color:#8a96a6; }
/* Yazdirma: ust/alt kenar bosluklari HER sayfada (tarayici ust/alt bilgisi basilmasin diye
   @page margin 0 kullanildigindan blok margin yetmez). */
table.cv-pg { width:100%; border-collapse:collapse; }
table.cv-pg > * > tr > td { padding:0; }
.cv-pg-top, .cv-pg-bot { height:0; }
.print-only { display:none; }

@media print {
    .no-print { display:none !important; }
    .print-only { display:block !important; }
    .app-navbar, .app-footer, nav, footer { display:none !important; }
    body { background:#fff !important; }
    .cv-sheet { box-shadow:none; border:0; border-radius:0; max-width:100%; }
    .cv-left { -webkit-print-color-adjust:exact; print-color-adjust:exact; }
    @page { margin:10mm; }
}


/* --- Aday formu: iki adim gostergesi --- */
#stepBar { flex-wrap: wrap; }
.step-chip {
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .45rem .9rem; border-radius: 999px; cursor: pointer;
    background: #eef2f7; color: #6b7686; font-size: .86rem; font-weight: 600;
    border: 1px solid transparent; transition: all .15s ease;
}
.step-chip .n {
    display: inline-flex; align-items: center; justify-content: center;
    width: 1.35rem; height: 1.35rem; border-radius: 50%;
    background: #c9d3e0; color: #fff; font-size: .78rem;
}
.step-chip.active { background: #e7f0ff; color: #1f6feb; border-color: #b9d3ff; }
.step-chip.active .n { background: #1f6feb; }
.step-line { flex: 1; min-width: 20px; height: 2px; background: #e3e8f0; }
