/* ===== Mimarlık Portfolyo - Siyah/Beyaz Minimalist Tema ===== */
:root {
  --black: #111111;
  --dark-gray: #333333;
  --mid-gray: #777777;
  --light-gray: #e4e4e4;
  --off-white: #f7f7f7;
  --white: #ffffff;
  --max-width: 960px;
}

* { box-sizing: border-box; }

.admin-login-link {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 100;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: var(--black);
  transition: background 0.2s ease, color 0.2s ease;
}

.admin-login-link svg { width: 18px; height: 18px; }

.admin-login-link:hover {
  background: var(--black);
  color: var(--white);
}

.lang-switch-link {
  position: fixed;
  top: 16px;
  right: 64px;
  z-index: 100;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: var(--black);
  transition: background 0.2s ease, color 0.2s ease;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-decoration: none;
}

.lang-switch-link:hover {
  background: var(--black);
  color: var(--white);
}

body {
  margin: 0;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; }

/* ---- Profil Başlığı ---- */
.profile-header {
  text-align: center;
  padding: 64px 24px 48px;
  border-bottom: 1px solid var(--light-gray);
}

.avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 24px;
  border: 3px solid var(--black);
  background: var(--off-white);
}

.avatar-placeholder {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  margin: 0 auto 24px;
  border: 3px solid var(--black);
  background: var(--off-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: var(--mid-gray);
}

.profile-header h1 {
  font-size: 2.2rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 0 6px;
}

.profile-title {
  font-size: 1rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--mid-gray);
  margin: 0 0 24px;
}

.profile-bio {
  max-width: 640px;
  margin: 0 auto 28px;
  color: var(--dark-gray);
}

.contact-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  font-size: 0.9rem;
  color: var(--dark-gray);
  text-align: left;
}

.contact-info .item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-info svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ---- Bölüm başlıkları ---- */
section.block {
  padding: 56px 24px;
  border-bottom: 1px solid var(--light-gray);
}

section.block:last-child { border-bottom: none; }

.section-title {
  text-align: center;
  font-size: 1.4rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin: 0 0 40px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  background: var(--black);
  margin: 14px auto 0;
}

/* ---- Zaman Çizelgesi (Eğitim / Deneyim) ---- */
.timeline {
  --tl-line-width: 2px;
  --tl-indent: 32px;
  --tl-dot-size: 12px;
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  padding-left: var(--tl-indent);
  border-left: var(--tl-line-width) solid var(--black);
}

.timeline-item {
  position: relative;
  padding-bottom: 32px;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-item::before {
  content: '';
  position: absolute;
  /* Dikey çizginin merkezine (kalınlığın yarısı kadar içeride) hizalanır */
  left: calc(-1 * (var(--tl-indent) + var(--tl-line-width) / 2));
  transform: translateX(-50%);
  top: 4px;
  width: var(--tl-dot-size);
  height: var(--tl-dot-size);
  border-radius: 50%;
  background: var(--white);
  border: var(--tl-line-width) solid var(--black);
}

.timeline-year {
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--black);
  font-size: 0.85rem;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.timeline-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 2px;
}

.timeline-sub {
  color: var(--mid-gray);
  font-size: 0.9rem;
}

/* ---- Beceri Çubukları ---- */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 900px;
  margin: 0 auto;
}

.skill-category h3 {
  font-size: 1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 0 24px;
  color: var(--dark-gray);
}

.skill-row { margin-bottom: 20px; }

.skill-row-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.skill-bar-track {
  height: 8px;
  background: var(--light-gray);
  border-radius: 4px;
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  background: var(--black);
  border-radius: 4px;
}

/* ---- Projeler ---- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}

.project-card {
  display: block;
  cursor: pointer;
  border: 1px solid var(--light-gray);
  background: var(--white);
  text-decoration: none;
  color: inherit;
}

.project-card .cover-wrap {
  position: relative;
  overflow: hidden;
}

.project-card .cover {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--off-white);
  display: block;
  transition: transform 0.4s ease;
}

.project-card:hover .cover {
  transform: scale(1.04);
}

.project-card .cover-placeholder {
  width: 100%;
  height: 200px;
  background: var(--off-white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mid-gray);
  font-size: 0.85rem;
}

.project-card .cover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.55);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.project-card:hover .cover-overlay {
  opacity: 1;
  transform: translateY(0);
}

.project-card .info {
  padding: 16px;
}

.project-card .info h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}

.project-card .info .year {
  color: var(--mid-gray);
  font-size: 0.85rem;
}

.project-card .info .desc-preview {
  margin: 10px 0 0;
  font-size: 0.88rem;
  color: var(--dark-gray);
  line-height: 1.5;
}

/* ---- Proje Detay Sayfası ---- */
.project-detail-page {
  padding: 40px 24px 64px;
}

.back-link {
  display: inline-block;
  margin-bottom: 32px;
  font-size: 0.9rem;
  color: var(--mid-gray);
  text-decoration: none;
}

.back-link:hover { color: var(--black); }

.project-article h1 {
  font-size: 1.8rem;
  letter-spacing: 1px;
  margin: 0 0 8px;
}

.project-year-detail {
  color: var(--mid-gray);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.project-description {
  max-width: 720px;
  color: var(--dark-gray);
  margin-bottom: 40px;
  font-size: 1.02rem;
}

.detail-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.detail-gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  cursor: pointer;
  border: 1px solid var(--light-gray);
  transition: opacity 0.2s ease;
}

.detail-gallery img:hover { opacity: 0.85; }

/* ---- Lightbox ---- */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  flex-direction: column;
  padding: 24px;
}

.lightbox-overlay.open { display: flex; }

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 75vh;
  object-fit: contain;
}

.lightbox-caption {
  color: var(--white);
  text-align: center;
  margin-top: 16px;
  font-size: 0.95rem;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--white);
  font-size: 2.5rem;
  cursor: pointer;
  background: none;
  border: none;
  padding: 12px;
  user-select: none;
}

.lightbox-nav.prev { left: 8px; }
.lightbox-nav.next { right: 8px; }

.lightbox-counter {
  color: var(--mid-gray);
  font-size: 0.85rem;
  margin-top: 4px;
}

footer.site-footer {
  text-align: center;
  padding: 24px;
  color: var(--mid-gray);
  font-size: 0.8rem;
}

.empty-note {
  text-align: center;
  color: var(--mid-gray);
  font-size: 0.9rem;
}

/* ---- İletişim Formu ---- */
.flash {
  max-width: 640px;
  margin: 0 auto 24px;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 0.9rem;
}
.flash.success { background: #e5f6ea; color: #1e7a3a; border: 1px solid #b8e6c5; }
.flash.error { background: #fbe6e9; color: #a3273b; border: 1px solid #f3bfc8; }

.contact-form {
  max-width: 640px;
  margin: 0 auto;
}

.hp-field {
  display: none;
}

.form-row {
  display: flex;
  gap: 20px;
}

.form-group {
  flex: 1;
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  color: var(--dark-gray);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--light-gray);
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--black);
  background: var(--off-white);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--black);
  background: var(--white);
}

.form-group textarea { resize: vertical; }

.btn-send {
  display: inline-block;
  padding: 12px 32px;
  background: var(--black);
  color: var(--white);
  border: none;
  border-radius: 4px;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.btn-send:hover { opacity: 0.85; }

@media (max-width: 600px) {
  .form-row { flex-direction: column; gap: 0; }
}

/* ---- Responsive ---- */
/* Bu genişlikten itibaren adres satırı diğerlerinden ayrı bir satıra taşıp
   kendi genişliğine göre ayrıca ortalanabiliyor; bunu önlemek için tüm
   satırları sol hizalı, sabit genişlikli tek bir blokta hizalıyoruz. */
@media (max-width: 900px) {
  .profile-bio {
    max-width: 320px;
    margin: 0 auto 28px;
    padding-left: 24px; /* ikon (16px) + ikon-metin boşluğu (8px) ile aynı: adres/telefon/e-posta metniyle hizalar */
    text-align: left;
  }
  .contact-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    max-width: 320px;
    margin: 0 auto;
  }
  .contact-info .item { align-items: flex-start; width: 100%; }
  .contact-info svg { margin-top: 2px; }
}

@media (max-width: 720px) {
  .skills-grid { grid-template-columns: 1fr; gap: 32px; }
  .profile-header { padding: 48px 16px 36px; }
  .avatar, .avatar-placeholder { width: 120px; height: 120px; }
  section.block { padding: 40px 16px; }
  .lightbox-nav { font-size: 2rem; padding: 6px; }
}
