/**
 * Kartanesi — Kişisel Portfolyo & Fotoğraf Günlüğü
 * Sıcak Açık Krem (Warm Ivory) & Rafine Tipografi
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,600;0,6..72,700;1,6..72,400&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg-main: #f8f6f1;        /* Sıcak ham kağıt / açık keten tonu */
  --bg-surface: #ffffff;     /* İçerik kartları için doğal beyaz */
  --bg-subtle: #f2ece1;      /* İkincil hafif zeminler */
  --bg-tag: #eee8de;         /* Teknoloji etiketleri zemini */
  
  --border-color: #ded7ca;   /* İnce, el yapımı hissi veren doğal çizgi */
  --border-dark: #1b1e22;    /* Vurgulu kenarlıklar */
  
  --text-main: #181c20;      /* Koyu kömür (okunaklı ve yumuşak) */
  --text-muted: #535a66;     /* Sıcak kurşuni gri */
  --text-dim: #848c99;       /* Yardımcı altyazı rengi */
  
  --accent: #254b77;         /* Mürekkep laciverti */
  
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-full: 9999px;
  
  --shadow-subtle: 0 2px 8px rgba(35, 25, 15, 0.04);
  --shadow-hover: 0 6px 20px rgba(35, 25, 15, 0.07);
  
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Newsreader", "Playfair Display", Georgia, serif;
  --font-mono: "JetBrains Mono", Consolas, monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

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

/* Kapsayıcılar */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 780px;
}

/* ==========================================================
 * Header & Doğal Navigasyon
 * ========================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(248, 246, 241, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 0;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 28px;
  height: 28px;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.brand-slogan {
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-left: 6px;
  font-weight: 500;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 4px 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-main);
}

.nav-link.active {
  border-bottom: 2px solid var(--text-main);
}

.admin-link-btn {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 5px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xs);
  color: var(--text-muted);
  background: var(--bg-surface);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.admin-link-btn:hover {
  border-color: var(--border-dark);
  color: var(--text-main);
}

/* Mobil Hamburger Butonu */
.mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xs);
  padding: 8px 10px;
  cursor: pointer;
  color: var(--text-main);
}

.mobile-nav-drawer {
  display: none;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 24px;
}

.mobile-nav-drawer.open {
  display: block;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mobile-nav-links a {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-main);
  padding: 8px 0;
  border-bottom: 1px dashed var(--border-color);
}

/* ==========================================================
 * "Ben Kimim" / Ana Sayfa (Portre & Biyografi Odaklı)
 * ========================================================== */
.bio-hero {
  padding: 64px 0 44px 0;
}

.bio-profile-header {
  display: flex;
  align-items: center;
  gap: 36px;
  margin-bottom: 24px;
}

.bio-avatar-frame {
  position: relative;
  flex-shrink: 0;
}

.bio-avatar {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--bg-surface);
  outline: 1px solid var(--border-color);
  box-shadow: 0 12px 32px rgba(35, 25, 15, 0.12);
  background-color: #eee8de;
}

.bio-header-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bio-name {
  font-family: var(--font-serif);
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-main);
  letter-spacing: -0.025em;
  margin-bottom: 8px;
}

.bio-subtitle {
  font-size: 1.05rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.bio-story-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 36px;
  box-shadow: var(--shadow-subtle);
  margin-bottom: 36px;
}

.bio-story-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 14px;
}

.bio-text {
  font-size: 1.025rem;
  color: var(--text-main);
  line-height: 1.85;
}

.bio-text p {
  margin-bottom: 16px;
}

.bio-text p:last-child {
  margin-bottom: 0;
}

/* Butonlar (Zarif, Sade ve Doğal) */
.btn-raw {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-dark);
  background: transparent;
  color: var(--text-main);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
}

.btn-raw:hover {
  background: var(--text-main);
  color: var(--bg-main);
}

.btn-raw-primary {
  background: var(--text-main);
  color: var(--bg-main);
}

.btn-raw-primary:hover {
  background: #2e333b;
  border-color: #2e333b;
}

/* Teknoloji Rozetleri */
.tech-stack-group {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.tech-stack-title {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-badge {
  font-size: 0.825rem;
  font-weight: 500;
  color: var(--text-main);
  background: var(--bg-tag);
  padding: 4px 11px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-color);
}

/* 2 Kolonlu Donanım & Çalışma Masası */
.setup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 36px 0;
}

.setup-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-subtle);
  display: flex;
  flex-direction: column;
}

.setup-box-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
}

.setup-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text-muted);
}

.setup-list li {
  margin-bottom: 6px;
}

.setup-list strong {
  color: var(--text-main);
  font-weight: 600;
}

/* İletişim & Sosyal Linkler */
.social-links-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.social-link-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xs);
  background: var(--bg-surface);
  color: var(--text-main);
}

.social-link-item:hover {
  border-color: var(--border-dark);
}

/* ==========================================================
 * Fotoğraf Galerisi (`galeri.php`)
 * ========================================================== */
.gallery-header {
  padding: 40px 0 20px 0;
  text-align: center;
}

.gallery-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

.gallery-desc {
  font-size: 1.025rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.category-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.category-tab {
  font-size: 0.85rem;
  font-weight: 500;
  padding: 6px 15px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-muted);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
}

.category-tab:hover {
  border-color: var(--border-dark);
  color: var(--text-main);
}

.category-tab.active {
  background: var(--text-main);
  color: var(--bg-main);
  border-color: var(--text-main);
}

/* Fotoğraf Gridi */
.gallery-grid {
  columns: 3 340px;
  column-gap: 20px;
  margin-bottom: 60px;
}

.photo-item {
  break-inside: avoid;
  margin-bottom: 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  cursor: pointer;
}

.photo-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.photo-item img {
  width: 100%;
  height: auto;
  display: block;
}

.photo-info-bar {
  padding: 12px 14px;
  background: var(--bg-surface);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
}

.photo-item-title {
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--text-main);
}

.photo-item-date {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-weight: 400;
}

/* ==========================================================
 * Projeler Kartları (`projeler.php`)
 * ========================================================== */
.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
  margin: 32px 0 60px 0;
}

.project-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-subtle);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.project-item:hover {
  border-color: var(--border-dark);
  transform: translateY(-2px);
}

.project-item-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
}

.project-item-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 18px;
}

.project-item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
}

/* ==========================================================
 * Fotoğraf Detay Sayfası (`photo.php`)
 * ========================================================== */
.photo-detail-frame {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
  text-align: center;
  box-shadow: var(--shadow-subtle);
  margin-bottom: 32px;
  position: relative;
}

.photo-detail-frame img {
  max-height: 82vh;
  margin: 0 auto;
  object-fit: contain;
  cursor: zoom-in;
  border-radius: var(--radius-xs);
}

.photo-detail-frame.zoomed img {
  max-height: none;
  cursor: zoom-out;
}

.exif-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-subtle);
}

.exif-card-header {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-main);
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}

.exif-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 0.85rem;
  border-bottom: 1px dashed var(--border-color);
}

.exif-row:last-child {
  border-bottom: none;
}

.exif-label {
  color: var(--text-muted);
}

.exif-value {
  font-weight: 500;
  color: var(--text-main);
}

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-surface);
  padding: 32px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  text-align: center;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

/* ==========================================================
 * Mobil Duyarlılık (Responsive)
 * ========================================================== */
@media (max-width: 768px) {
  .site-nav {
    display: none;
  }
  
  .mobile-toggle {
    display: inline-flex;
  }
  
  .brand-title {
    font-size: 1.15rem;
    line-height: 1.1;
    white-space: nowrap;
  }

  .brand-slogan {
    display: none;
  }
  
  .bio-profile-header {
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }
  
  .bio-avatar {
    width: 150px;
    height: 150px;
  }
  
  .bio-name {
    font-size: 1.95rem;
    line-height: 0.95;
    margin-top: 0;
    margin-bottom: 6px;
    letter-spacing: -0.025em;
  }
  
  .bio-subtitle {
    font-size: clamp(0.68rem, 3.3vw, 0.85rem);
    white-space: nowrap;
    letter-spacing: 0.02em;
    margin-top: 2px;
  }
  
  .bio-story-card {
    padding: 22px;
  }
  
  .setup-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-grid {
    columns: 1 100%;
  }
  
  .projects-container {
    grid-template-columns: 1fr;
  }
  
  .detail-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 480px) {
  .bio-name {
    font-size: 1.75rem;
    line-height: 0.95;
    margin-bottom: 6px;
  }
  .bio-subtitle {
    font-size: clamp(0.64rem, 3.2vw, 0.78rem);
  }
}
