/* ===================================================================
   KİŞİSEL WEBSİTE - Donanım Uzmanı Teması
   Tipografi: Space Grotesk (başlık) / Inter (metin) / JetBrains Mono (veri)
   =================================================================== */

:root {
  --bg:         #f5f6f5;
  --bg-alt:     #ffffff;
  --card:       #ffffff;
  --border:     #dfe3e0;
  --text:       #14171a;
  --text-dim:   #545c58;
  --accent:     #0d8f7c;   /* teal - PCB izi rengi */
  --accent-2:   #b5652f;   /* bakır / lehim rengi */
  --accent-soft: rgba(13,143,124,0.12);
  --mono-bg:    #101314;
  --mono-text:  #d7f5ec;
  --shadow: 0 8px 24px rgba(20,23,26,0.07);
  --radius: 10px;
}

html[data-theme="dark"] {
  --bg:         #0d1012;
  --bg-alt:     #12161a;
  --card:       #161b1f;
  --border:     #262c31;
  --text:       #edf1ef;
  --text-dim:   #97a3a0;
  --accent:     #33d9bd;
  --accent-2:   #e08a4d;
  --accent-soft: rgba(51,217,189,0.12);
  --mono-bg:    #05070a;
  --mono-text:  #8ff5d8;
  --shadow: 0 8px 28px rgba(0,0,0,0.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.6;
  transition: background .25s ease, color .25s ease;
}

h1, h2, h3, .logo, .btn, .section-eyebrow {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
}

.mono, .terminal, .spec-value, .badge {
  font-family: 'JetBrains Mono', monospace;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

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

img { max-width: 100%; display: block; }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  letter-spacing: -0.02em;
}
.logo-bracket { color: var(--accent); }

.main-nav { display: flex; gap: 28px; }
.main-nav a {
  color: var(--text-dim);
  font-size: 0.95rem;
  font-weight: 500;
}
.main-nav a:hover { color: var(--accent); }

.theme-toggle {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.theme-toggle .icon-moon { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

.header-tools {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

/* Yazı boyutu kaydırıcısı */
.font-size-control {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 12px;
}
.font-size-label {
  color: var(--text-dim);
  font-weight: 700;
  line-height: 1;
  user-select: none;
}
.font-size-label-sm { font-size: 0.65rem; }
.font-size-label-lg { font-size: 1rem; }
.font-size-control input[type="range"] {
  width: 72px;
  accent-color: var(--accent);
  cursor: pointer;
  height: 4px;
  padding: 0;
}

/* Webmail butonu */
.webmail-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  flex-shrink: 0;
  white-space: nowrap;
}
.webmail-btn:hover { border-color: var(--accent); color: var(--accent); }

@media (max-width: 900px) {
  .main-nav { display: none; }
  .font-size-label, .webmail-btn span { display: none; }
  .font-size-control { padding: 6px 8px; }
  .webmail-btn { padding: 8px; border-radius: 50%; }
}

/* ---------------- Hero / Neofetch Panel ---------------- */
.hero {
  padding: 72px 0 56px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1.15;
  margin: 0 0 14px;
}
.hero .title-line { color: var(--accent); }

.hero p.lead {
  color: var(--text-dim);
  font-size: 1.05rem;
  max-width: 46ch;
}

.hero-actions { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: #06201b; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* Terminal / neofetch bilgi paneli - imza görsel öğe */
.terminal {
  background: var(--mono-bg);
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.terminal-bar {
  display: flex;
  gap: 7px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.terminal-bar span {
  width: 11px; height: 11px; border-radius: 50%;
  background: #444;
}
.terminal-bar span:nth-child(1) { background: #ff5f57; }
.terminal-bar span:nth-child(2) { background: #febc2e; }
.terminal-bar span:nth-child(3) { background: #28c840; }

.terminal-body {
  padding: 22px 24px;
  color: var(--mono-text);
  font-size: 0.88rem;
}
.terminal-body .prompt { color: var(--accent-2); }
.term-avatar {
  width: 64px; height: 64px;
  border-radius: 8px;
  object-fit: cover;
  float: left;
  margin-right: 18px;
  border: 1px solid rgba(255,255,255,0.1);
}
.spec-row { display: flex; gap: 8px; margin: 3px 0; }
.spec-key { color: var(--text-dim); min-width: 92px; }
.spec-value { color: var(--mono-text); font-weight: 500; }
.spec-clear { clear: both; }

/* ---------------- Sections ---------------- */
section { padding: 64px 0; border-top: 1px solid var(--border); }
section:first-of-type { border-top: none; }

.section-head { margin-bottom: 34px; max-width: 60ch; }
.section-head h2 { font-size: 1.8rem; margin: 6px 0 8px; }
.section-head p { color: var(--text-dim); margin: 0; }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 36px;
  align-items: start;
}
@media (max-width: 700px) { .about-grid { grid-template-columns: 1fr; } }
.about-photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.about-text p { color: var(--text-dim); }

/* Skills */
.skills-list { display: grid; gap: 18px; }
.skill-item .skill-top {
  display: flex; justify-content: space-between; margin-bottom: 6px;
  font-weight: 600; font-size: 0.95rem;
}
.skill-item .skill-cat {
  font-size: 0.75rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: .04em;
}
.skill-bar-track {
  height: 8px; border-radius: 6px; background: var(--border); overflow: hidden;
}
.skill-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 6px;
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}
.project-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.project-card img { width: 100%; height: 160px; object-fit: cover; }
.project-body { padding: 18px; }
.project-body h3 { margin: 0 0 8px; font-size: 1.1rem; }
.project-body p { color: var(--text-dim); font-size: 0.92rem; margin: 0 0 12px; }
.badge {
  display: inline-block;
  font-size: 0.72rem;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 3px 8px;
  border-radius: 5px;
  margin: 2px 4px 0 0;
}

/* Contact */
.contact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
}
.contact-links { display: flex; gap: 16px; flex-wrap: wrap; }
.contact-links a {
  color: var(--text);
  font-weight: 500;
  border: 1px solid var(--border);
  padding: 9px 14px;
  border-radius: 8px;
}
.contact-links a:hover { border-color: var(--accent); color: var(--accent); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 26px 0; }
.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  color: var(--text-dim); font-size: 0.88rem; flex-wrap: wrap; gap: 10px;
}
.admin-link { color: var(--text-dim); }
.admin-link:hover { color: var(--accent); }

/* ---------------- Admin Panel ---------------- */
.admin-body { background: var(--bg); min-height: 100vh; }
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 240px;
  background: var(--bg-alt);
  border-right: 1px solid var(--border);
  padding: 22px 16px;
  flex-shrink: 0;
}
.admin-sidebar .logo { display: block; margin-bottom: 24px; }
.admin-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text-dim);
  font-weight: 500;
  font-size: 0.92rem;
  margin-bottom: 4px;
}
.admin-nav a:hover, .admin-nav a.active {
  background: var(--accent-soft);
  color: var(--accent);
}
.admin-main { flex: 1; padding: 30px 36px; max-width: 900px; }
.admin-topbar {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px;
}
.admin-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  margin-bottom: 22px;
  box-shadow: var(--shadow);
}
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 6px; }
.form-group .hint { font-size: 0.8rem; color: var(--text-dim); margin-top: 4px; }
input[type=text], input[type=email], input[type=password], input[type=tel],
input[type=url], input[type=number], input[type=file], textarea, select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text);
  font-family: inherit;
  font-size: 0.94rem;
}
textarea { resize: vertical; min-height: 100px; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

.alert {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 18px;
  font-size: 0.92rem;
}
.alert-success { background: rgba(40,200,80,0.12); color: #1f9d4c; border: 1px solid rgba(40,200,80,0.3); }
.alert-error { background: rgba(255,95,87,0.12); color: #d1402f; border: 1px solid rgba(255,95,87,0.3); }

.table-simple { width: 100%; border-collapse: collapse; }
.table-simple th, .table-simple td {
  text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); font-size: 0.9rem;
}
.table-simple th { color: var(--text-dim); font-weight: 600; }
.row-actions a { margin-right: 10px; font-size: 0.85rem; }
.row-actions .danger { color: #d1402f; }

.login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: var(--bg); padding: 20px;
}
.login-card {
  width: 100%; max-width: 380px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px;
  box-shadow: var(--shadow);
}
.login-card h1 { font-size: 1.3rem; margin-bottom: 4px; }
.login-card p.sub { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 22px; }

.thumb-preview {
  width: 90px; height: 90px; object-fit: cover; border-radius: 8px;
  border: 1px solid var(--border); margin-bottom: 10px;
}
