/* =====================================================================
   Şevket Emre Akdağ — Kişisel Portfolyo
   Açık / kurumsal tema · Bootstrap 5 üzerine
   ===================================================================== */

:root {
  --navy:        #0f2942;
  --navy-700:    #16385a;
  --accent:      #1f6feb;
  --accent-dark: #1657c2;
  --accent-soft: #e8f0fe;
  --ink:         #16202b;
  --body:        #4b5a6b;
  --muted:       #7c8a99;
  --line:        #e3e8ef;
  --surface:     #ffffff;
  --surface-2:   #f6f8fb;
  --radius:      14px;
  --shadow-sm:   0 1px 2px rgba(15, 41, 66, .06), 0 2px 8px rgba(15, 41, 66, .05);
  --shadow-md:   0 10px 30px rgba(15, 41, 66, .09);

  --bs-primary: var(--accent);
}

/* --- Temel ---------------------------------------------------------- */
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--body);
  background: var(--surface);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 { color: var(--ink); font-weight: 700; letter-spacing: -.015em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.15; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.25rem; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

code, pre, .mono { font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace; }

.btn { border-radius: 10px; font-weight: 600; }
.btn-primary { background: var(--accent); border-color: var(--accent); }
.btn-primary:hover, .btn-primary:focus { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-outline-primary { color: var(--accent); border-color: #c9d9f5; }
.btn-outline-primary:hover { background: var(--accent); border-color: var(--accent); }
.btn-lg { padding: .7rem 1.5rem; }

.skip-link {
  position: absolute; top: .5rem; left: .5rem; z-index: 1080;
  background: var(--navy); color: #fff; padding: .5rem .9rem; border-radius: 8px;
}

/* --- Başlık / navigasyon -------------------------------------------- */
.site-header {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
  z-index: 1030;
}
.navbar { min-height: 72px; }

.brand-mark {
  display: inline-grid; place-items: center;
  width: 42px; height: 42px; border-radius: 11px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--accent) 130%);
  color: #fff; font-weight: 700; font-size: .8rem; letter-spacing: .04em;
  flex: 0 0 auto;
}
.brand-mark-light { background: rgba(255, 255, 255, .12); }
.brand-name { font-weight: 700; color: var(--ink); font-size: 1rem; letter-spacing: -.01em; }
.brand-role { color: var(--muted); font-size: .72rem; letter-spacing: .02em; }

.navbar .nav-link {
  color: var(--body); font-weight: 500; font-size: .95rem;
  padding: .5rem .85rem; border-radius: 8px;
}
.navbar .nav-link:hover { color: var(--ink); background: var(--surface-2); }
.navbar .nav-link.active { color: var(--accent); background: var(--accent-soft); }

.lang-switch {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .82rem; font-weight: 600; color: var(--body);
  border: 1px solid var(--line); border-radius: 8px; padding: .35rem .6rem;
}
.lang-switch:hover { border-color: var(--accent); color: var(--accent); }

/* --- Bölüm başlıkları ------------------------------------------------ */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-alt { background: var(--surface-2); }

.eyebrow {
  display: inline-block; font-size: .74rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
  margin-bottom: .6rem;
}
.section-title { margin-bottom: .5rem; }
.section-sub { color: var(--muted); max-width: 58ch; }

/* --- Hero ------------------------------------------------------------ */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 420px at 88% -10%, rgba(31, 111, 235, .10), transparent 60%),
    linear-gradient(180deg, #fbfcfe 0%, #ffffff 100%);
  border-bottom: 1px solid var(--line);
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}
.hero::after {                       /* devre izleri dokusu */
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 80% 20%, #000 0%, transparent 65%);
}
.hero > .container { position: relative; z-index: 1; }
.hero-hi { color: var(--muted); font-weight: 600; letter-spacing: .02em; }
.hero-role {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: 'JetBrains Mono', monospace; font-size: .9rem;
  color: var(--accent); background: var(--accent-soft);
  border-radius: 999px; padding: .35rem .9rem; margin-bottom: 1rem;
}
.hero-lead { font-size: 1.1rem; max-width: 56ch; }

.hero-photo {
  width: 100%; max-width: 330px; aspect-ratio: 1; object-fit: cover;
  border-radius: 24px; box-shadow: var(--shadow-md);
  border: 6px solid #fff;
}
.hero-photo-fallback {
  display: grid; place-items: center;
  background: linear-gradient(140deg, var(--navy), var(--accent));
  color: #fff; font-size: 3.6rem; font-weight: 700; letter-spacing: .05em;
}

.badge-available {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .82rem; font-weight: 600; color: #0f7b4f;
  background: #e7f7ef; border-radius: 999px; padding: .35rem .85rem;
}
.badge-available .dot {
  width: 8px; height: 8px; border-radius: 50%; background: #17b26a;
  box-shadow: 0 0 0 3px rgba(23, 178, 106, .2);
}
.site-footer .badge-available { color: #7ee2b8; background: rgba(23, 178, 106, .14); }

/* --- İstatistikler ---------------------------------------------------- */
.stat { border-left: 3px solid var(--accent-soft); padding-left: 1rem; }
.stat-value { font-size: 1.9rem; font-weight: 700; color: var(--ink); line-height: 1; }
.stat-label { font-size: .85rem; color: var(--muted); }

/* --- Kartlar ---------------------------------------------------------- */
.card-soft {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  height: 100%;
}
.card-soft:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #cddcf5; }

.icon-badge {
  display: inline-grid; place-items: center;
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent); font-size: 1.35rem;
}

.chip {
  display: inline-block; font-size: .78rem; font-weight: 500;
  color: var(--body); background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 7px;
  padding: .22rem .6rem; margin: 0 .3rem .4rem 0;
}
.chip-accent { color: var(--accent); background: var(--accent-soft); border-color: #d5e3fb; }

/* --- Proje / yazı kartı ----------------------------------------------- */
.thumb {
  aspect-ratio: 16 / 9; width: 100%; object-fit: cover;
  border-radius: calc(var(--radius) - 2px) calc(var(--radius) - 2px) 0 0;
  background: linear-gradient(135deg, #eef3fb, #dde7f7);
}
.card-title-link { color: var(--ink); }
.card-title-link:hover { color: var(--accent); }
.meta { font-size: .82rem; color: var(--muted); }
.meta i { color: var(--accent); }

/* --- Zaman çizelgesi (özgeçmiş) --------------------------------------- */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: ''; position: absolute; left: 7px; top: .4rem; bottom: .4rem;
  width: 2px; background: linear-gradient(var(--accent) 0%, var(--line) 100%);
}
.timeline-item { position: relative; padding-bottom: 2rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ''; position: absolute; left: -2rem; top: .45rem;
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 3px solid var(--accent);
}
.timeline-period {
  font-family: 'JetBrains Mono', monospace; font-size: .78rem;
  color: var(--accent); font-weight: 600;
}
.timeline-role { font-size: 1.05rem; margin: .15rem 0 .1rem; }
.timeline-company { color: var(--body); font-weight: 600; }
.timeline-place { color: var(--muted); font-size: .85rem; }
.timeline-list { margin: .6rem 0 0; padding-left: 1.1rem; }
.timeline-list li { margin-bottom: .3rem; }

/* --- Dil çubuğu ------------------------------------------------------- */
.level-bar { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; }
.level-bar > span { display: block; height: 100%; background: var(--accent); border-radius: 99px; }

/* --- Yazı içeriği (prose) --------------------------------------------- */
.prose { font-size: 1.03rem; color: #354458; }
.prose > * + * { margin-top: 1.1rem; }
.prose h2 { margin-top: 2.2rem; font-size: 1.45rem; }
.prose h3 { margin-top: 1.8rem; font-size: 1.18rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .35rem; }
.prose img { max-width: 100%; border-radius: 12px; }
.prose blockquote {
  border-left: 4px solid var(--accent); background: var(--surface-2);
  padding: .9rem 1.2rem; border-radius: 0 10px 10px 0; color: var(--ink);
  font-style: italic;
}
.prose code {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 6px; padding: .1rem .35rem; font-size: .88em; color: #b3306e;
}
.prose pre {
  background: var(--navy); color: #e6edf5; border-radius: 12px;
  padding: 1.1rem 1.2rem; overflow-x: auto; font-size: .87rem; line-height: 1.6;
}
.prose pre code { background: none; border: 0; color: inherit; padding: 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: .55rem .75rem; }
.prose th { background: var(--surface-2); }

/* --- Kenar çubuğu ----------------------------------------------------- */
.sidebar-box {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.25rem;
}
.sidebar-title {
  font-size: .78rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); margin-bottom: .9rem;
}
.cat-list a {
  display: flex; justify-content: space-between; align-items: center;
  padding: .45rem 0; color: var(--body); border-bottom: 1px dashed var(--line);
  font-size: .93rem;
}
.cat-list a:last-child { border-bottom: 0; }
.cat-list a:hover { color: var(--accent); }
.cat-list .count { font-size: .78rem; color: var(--muted); }

/* --- Sayfalama -------------------------------------------------------- */
.pagination .page-link { color: var(--body); border-radius: 9px; margin: 0 .18rem; border-color: var(--line); }
.pagination .active .page-link { background: var(--accent); border-color: var(--accent); color: #fff; }

/* --- Formlar ---------------------------------------------------------- */
.form-control, .form-select {
  border-radius: 10px; border-color: var(--line); padding: .65rem .85rem;
  font-size: .95rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--accent); box-shadow: 0 0 0 .2rem rgba(31, 111, 235, .12);
}
.form-label { font-weight: 600; font-size: .88rem; color: var(--ink); }

/* --- Çağrı bandı ------------------------------------------------------ */
.cta-band {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-700) 60%, #1c4f8a 100%);
  color: #dbe6f2; border-radius: 20px; padding: clamp(2rem, 4vw, 3rem);
  position: relative; overflow: hidden;
}
.cta-band h2 { color: #fff; }
.cta-band::before {
  content: ''; position: absolute; right: -60px; top: -60px;
  width: 240px; height: 240px; border-radius: 50%;
  background: rgba(255, 255, 255, .06);
}

/* --- Alt bilgi -------------------------------------------------------- */
.site-footer { background: var(--navy); color: #b7c5d4; }
.site-footer h6, .site-footer .fw-semibold { color: #fff; }
.footer-title {
  font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  color: #8ea3b8 !important; margin-bottom: 1rem;
}
.footer-links a { color: #b7c5d4; font-size: .93rem; display: inline-block; padding: .22rem 0; }
.footer-links a:hover { color: #fff; }
.text-muted-light { color: #93a6ba; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); color: #8ea3b8; font-size: .85rem; }
.footer-lang { color: #b7c5d4; }
.footer-lang:hover { color: #fff; }

/* --- Yukarı çık ------------------------------------------------------- */
.to-top {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 1040;
  width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: var(--navy); color: #fff; box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all .22s ease;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--accent); }

/* --- Yardımcılar ------------------------------------------------------ */
.breadcrumb-nav { font-size: .85rem; color: var(--muted); }
.breadcrumb-nav a { color: var(--muted); }
.breadcrumb-nav a:hover { color: var(--accent); }
.page-head { padding: 3rem 0 1.5rem; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.divider { height: 1px; background: var(--line); border: 0; }

/* --- Yazdırma (özgeçmiş) ---------------------------------------------- */
@media print {
  .site-header, .site-footer, .to-top, .no-print, .btn { display: none !important; }
  body { color: #000; font-size: 11pt; }
  .section, .page-head { padding: .4rem 0; }
  .card-soft { box-shadow: none; border-color: #ccc; }
  a { color: #000; text-decoration: none; }
}

/* --- Duyarlılık ------------------------------------------------------- */
@media (max-width: 991.98px) {
  .navbar-collapse { padding: .75rem 0 1rem; }
  .navbar .nav-link { padding: .6rem .25rem; }
  .lang-switch { margin-top: .5rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
