:root {
  --bg-light: #e2e2e2;
  --bg-grid: #dedede;
  --text-dark: #171717;
  --text-light: #ffffff;
  --nav-height: 64px;
  --serif: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-light);
  color: var(--text-dark);
  font-family: var(--serif);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

#app { min-height: 100vh; }

/* ---------- Top nav bar (subpages) ---------- */
.topnav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 3vw, 46px);
  height: var(--nav-height);
  padding: 0 40px;
  background: var(--bg-light);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  overflow-x: auto;
}
.home-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  opacity: 0.7;
  transition: opacity 0.2s ease;
}
.home-btn:hover { opacity: 1; }
.home-btn svg { width: 19px; height: 19px; display: block; }
.topnav a {
  font-family: var(--serif);
  font-size: 15px;
  white-space: nowrap;
  position: relative;
  padding-bottom: 6px;
}
.topnav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: var(--item-color, #999);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.topnav a:hover::after,
.topnav a.active::after {
  transform: scaleX(1);
}
.topnav a.active { font-weight: 700; }

/* ---------- Home page ---------- */
.home-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.home-menu {
  width: 100%;
  max-width: 490px;
  margin-left: 16.6%;
}
@media (max-width: 900px) {
  .home-menu { margin-left: 6%; max-width: 90%; }
}
.home-menu-item {
  display: block;
  position: relative;
  padding: 14px 20px;
  font-family: var(--serif);
  font-size: 22px;
  text-align: right;
  color: var(--text-dark);
  background: transparent;
  transition: background-color .28s ease, color .28s ease;
  cursor: pointer;
}
.home-menu-item:hover,
.home-menu-item:focus-visible {
  background-color: var(--item-color, #999);
}
.home-menu-item.bold { font-weight: 700; }

/* ---------- Category page ---------- */
.category-page {
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  flex-wrap: wrap;
}
.category-hero {
  flex: 1 1 40%;
  min-width: 320px;
  background: var(--cat-color, #999);
  display: flex;
  align-items: center;
  padding: 60px;
}
.category-hero h1 {
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 80px);
  line-height: 1.05;
  margin: 0;
  color: var(--text-dark);
  word-break: break-word;
}
.category-grid-wrap {
  flex: 1 1 55%;
  min-width: 320px;
  background: var(--bg-grid);
  padding: 50px 40px;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 32px;
}
@media (max-width: 700px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); }
}
.brand-tile {
  background: none;
  border: none;
  padding: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s ease, opacity .2s ease;
}
.brand-tile:hover { transform: translateY(-3px); opacity: .8; }
.brand-tile img {
  max-width: 100%;
  max-height: 90px;
  object-fit: contain;
}
.empty-note {
  font-family: var(--serif);
  font-style: italic;
  color: #777;
  font-size: 18px;
}

/* ---------- About page ---------- */
/* Mobil: basit üst-alta akış */
.about-page {
  min-height: calc(100vh - var(--nav-height));
  display: block;
}
.about-hero {
  background: var(--cat-color, #F5A83C);
  padding: 40px 24px;
  position: relative;
}
.about-photo-wrap {
  width: min(70%, 340px);
  margin: 0 auto 28px;
  position: relative;
  z-index: 3;
  border: 6px solid var(--cat-color, #F5A83C);
  line-height: 0;
}
.about-photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  filter: grayscale(1);
  display: block;
}
.about-info { max-width: 100%; text-align: right; }
.about-hero h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 44px);
  margin: 0 0 14px;
}
.about-hero .role {
  color: var(--text-light);
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 14px;
}
.about-hero .email {
  color: var(--text-light);
  font-style: italic;
  font-size: 14px;
}
.about-bio-wrap {
  background: var(--bg-grid);
  padding: 40px 24px;
}
.about-bio {
  font-weight: 500;
  line-height: 1.7;
  font-size: 16px;
  max-width: 640px;
  margin: 0;
}

/* Masaüstü: fotoğraf iki panelin dikişine (ortasına) biner,
   isim solda, biyografi fotoğrafın sağında — referans tasarıma göre. */
@media (min-width: 821px) {
  .about-page {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .about-hero {
    position: relative;
    padding: 0 0 0 60px;
    overflow: visible;
  }
  .about-photo-wrap {
    position: absolute;
    top: 64px;
    left: 100%;
    /* Fotoğrafın beyaz (gri) tarafa taşan kısmı, kendi genişliğinin
       çeyreği kadar olacak şekilde sola kaydırıldı (önceden yarısı kadardı). */
    transform: translateX(-75%);
    width: clamp(260px, 27vw, 400px);
    margin: 0;
  }
  .about-info {
    position: absolute;
    top: 70px;
    right: calc(clamp(195px, 20.25vw, 300px) + 28px);
    max-width: 360px;
  }
  .about-bio-wrap {
    position: relative;
    padding: 0 60px;
  }
  .about-bio {
    position: absolute;
    top: 70px;
    left: calc(clamp(65px, 6.75vw, 100px) + 28px);
    max-width: 460px;
  }
}

/* ---------- Contact page ---------- */
.contact-page {
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  flex-wrap: wrap;
}
.contact-hero {
  flex: 1 1 40%;
  min-width: 320px;
  background: var(--cat-color, #9A9A9A);
  display: flex;
  align-items: center;
  padding: 60px;
}
.contact-hero h1 {
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 72px);
  margin: 0;
}
.contact-info-wrap {
  flex: 1 1 55%;
  min-width: 320px;
  background: var(--bg-grid);
  display: flex;
  align-items: center;
  padding: 60px;
}
.contact-info { font-size: 17px; line-height: 2.1; }
.contact-info a { border-bottom: 1px solid currentColor; }
.contact-info .label { color: #777; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; margin-top: 18px; }

/* ---------- Popup / modal ---------- */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 4vh 4vw;
}
.popup-modal {
  width: 100%;
  max-width: 1180px;
  max-height: 92vh;
  background: var(--brand-color, #999);
  display: flex;
  flex-wrap: wrap;
  position: relative;
  overflow: auto;
}
.popup-info {
  flex: 1 1 320px;
  padding: 46px;
  color: var(--text-light);
}
.popup-info h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 36px);
  margin: 0 0 4px;
  color: var(--text-dark);
}
.popup-info .subtitle {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  margin: 0 0 18px;
}
.popup-info .desc {
  font-size: 14px;
  line-height: 1.7;
  font-weight: 500;
  white-space: pre-line;
}
.popup-entries {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  max-height: 320px;
  overflow-y: auto;
}
.popup-entries li { margin-bottom: 2px; }
.entry-item {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 15px;
  color: var(--text-light);
  opacity: 0.65;
  padding: 7px 0;
  transition: opacity 0.2s ease;
}
.entry-item:hover { opacity: 0.9; }
.entry-item.active {
  opacity: 1;
  font-weight: 700;
  text-decoration: underline;
}
.popup-image-wrap {
  flex: 1.4 1 420px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 340px;
}
.popup-image-wrap img,
.popup-image-wrap video {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
}
.popup-image-wrap iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 70vh;
  border: none;
}
.popup-close {
  position: absolute;
  top: 16px; right: 20px;
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: var(--text-light);
  cursor: pointer;
  z-index: 5;
}
.popup-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.35);
  color: #fff;
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.popup-nav-btn.prev { left: 12px; }
.popup-nav-btn.next { right: 12px; }
.popup-nav-btn:disabled { opacity: .25; cursor: default; }
.popup-counter {
  position: absolute;
  bottom: 14px;
  right: 18px;
  font-size: 12px;
  color: #888;
}

/* ---------- Utility ---------- */
.footer-hint {
  position: fixed;
  bottom: 10px;
  left: 16px;
  font-size: 11px;
  color: rgba(0,0,0,.28);
}
