@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;700&family=Inter:wght@400;500;600&display=swap');

:root {
  --bg: #0B0C0F;
  --surface: #16171C;
  --surface-2: #1D1F26;
  --ink: #F3F4F7;
  --muted: #9599A6;
  --line: #292B33;
  --blue: #4C7CFF;
  --orange: #FF7A29;
  --white: #FFFFFF;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand-word {
  font-family: 'Space Grotesk', Arial, sans-serif;
}

a { color: inherit; }

/* ---- Navbar ---- */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 6%;
  background: transparent;
}
.navbar img { height: 30px; display: block; }
.navbar .contact-link {
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 9px 18px;
  border-radius: 999px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.navbar .contact-link:hover { border-color: var(--orange); background: var(--surface); }

/* ---- Hero ---- */
.hero {
  padding: 70px 6% 110px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -160px; left: 10%;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(76,124,255,0.35), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -220px; right: 4%;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(255,122,41,0.28), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}
.hero-inner { max-width: 680px; position: relative; z-index: 1; }
.hero-eyebrow {
  font-size: 15px;
  color: var(--muted);
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--orange);
}
.hero h1 {
  font-size: clamp(42px, 7vw, 76px);
  font-weight: 700;
  margin: 0 0 20px;
  line-height: 1.02;
  letter-spacing: -1.5px;
  background: linear-gradient(100deg, var(--white) 40%, var(--blue) 75%, var(--orange) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 36px;
  max-width: 480px;
}

.mail-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: var(--bg);
  padding: 15px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.mail-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(76,124,255,0.35); }

/* ---- Portfolio section ---- */
.section {
  max-width: 1160px;
  margin: 0 auto;
  padding: 20px 6% 110px;
  position: relative;
  z-index: 1;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}
.section-head h2 {
  font-size: 15px;
  font-weight: 700;
  margin: 0;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0.3px;
}
.section-head span { color: var(--muted); font-size: 13px; }

/* Öne çıkan (ilk) proje */
.featured-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 22px;
  transition: border-color 0.2s ease;
}
.featured-card:hover { border-color: rgba(76,124,255,0.5); }
.featured-card .card-image-wrap { min-height: 260px; }
.featured-card .card-image { height: 100%; min-height: 260px; }
.featured-card .card-body {
  padding: 36px 38px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.featured-card .card-tag {
  font-size: 12px;
  color: var(--orange);
  font-weight: 700;
  margin: 0 0 12px;
}
.featured-card h3 { font-size: 26px; margin: 0 0 14px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: rgba(76,124,255,0.5); transform: translateY(-3px); }

.card-image-wrap { overflow: hidden; background: var(--surface-2); }
.card-image {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.card:hover .card-image { transform: scale(1.04); }

.card-body { padding: 20px 22px 24px; }
.card-body h3 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
  font-size: 13.5px;
}
.card-link:hover { color: var(--orange); }

.empty-state {
  text-align: center;
  color: var(--muted);
  padding: 80px 20px;
  border: 1px dashed var(--line);
  border-radius: 14px;
}

footer {
  text-align: center;
  padding: 30px;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--line);
}
footer a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }

@media (max-width: 760px) {
  .featured-card { grid-template-columns: 1fr; }
  .featured-card .card-image-wrap, .featured-card .card-image { min-height: 220px; }
}

/* =====================================================
   ADMIN (fonksiyonel, aç\u0131k tema — okunurluk önceli\u011fi)
   ===================================================== */
.admin-body { background: #F5F6F8; min-height: 100vh; color: #16171C; font-family: 'Inter', Arial, sans-serif; }
.admin-wrap { max-width: 980px; margin: 0 auto; padding: 40px 20px 80px; }
.admin-top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 28px; flex-wrap: wrap; gap: 12px;
}
.admin-top h1 { color: #0B0C0F; font-size: 22px; margin: 0; font-weight: 700; font-family: 'Space Grotesk', Arial, sans-serif; }

.btn {
  display: inline-block; border: none; cursor: pointer;
  padding: 11px 20px; font-weight: 600; font-size: 14px;
  text-decoration: none; transition: opacity 0.15s ease; border-radius: 8px;
}
.btn:hover { opacity: 0.88; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-orange { background: var(--orange); color: #fff; }
.btn-outline { background: #fff; color: #16171C; border: 1px solid #DADDE3; }
.btn-danger { background: #D33636; color: #fff; }

.panel {
  background: #fff; padding: 26px; margin-bottom: 24px;
  border: 1px solid #E3E5EA; border-radius: 12px;
}
.panel h2 { margin-top: 0; color: #0B0C0F; font-size: 16px; font-weight: 700; }

.form-row { margin-bottom: 16px; }
.form-row label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 13.5px; color: #16171C; }
.form-row input[type=text],
.form-row input[type=url],
.form-row input[type=password],
.form-row input[type=file] {
  width: 100%; padding: 10px 13px; border: 1px solid #CBD2DE;
  border-radius: 8px; font-size: 14px; font-family: inherit;
}
.form-row input:focus { outline: 2px solid var(--blue); border-color: transparent; }
.hint { color: #6B7280; font-size: 12.5px; margin-top: 5px; }

table.admin-table { width: 100%; border-collapse: collapse; }
table.admin-table th, table.admin-table td {
  text-align: left; padding: 12px 10px; border-bottom: 1px solid #E3E5EA;
  font-size: 14px; vertical-align: middle;
}
table.admin-table th { color: #6B7280; font-weight: 600; font-size: 12px; }
table.admin-table img.thumb { width: 80px; height: 60px; object-fit: cover; border-radius: 6px; border: 1px solid #E3E5EA; }

.alert { padding: 12px 16px; border-radius: 8px; font-size: 14px; margin-bottom: 18px; }
.alert-error { background: #FBE4E4; color: #A32323; }
.alert-success { background: #E1F3E6; color: #1D6B36; }

.login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: var(--bg); padding: 20px;
}
.login-card {
  background: #fff; padding: 40px 34px; width: 100%; max-width: 380px;
  text-align: center; border-radius: 16px;
}
.login-card img { height: 28px; margin-bottom: 22px; filter: none; }
.login-card h2 { margin: 0 0 22px; color: #0B0C0F; font-size: 19px; font-family: 'Space Grotesk', Arial, sans-serif; }
.login-card button { width: 100%; margin-top: 8px; }
