/* assets/styles.css (FINAL) */

:root{
  --bg: #f5f3ef;
  --text: #1f1f1f;
  --muted: #5a5a5a;
  --line: rgba(31,31,31,.12);
  --focus: rgba(31,31,31,.28);
  --max: 980px;
  --gutter: clamp(16px, 4vw, 34px);
  --radius: 12px;
	  /* CV-style soft gradient background */
--bg-grad: linear-gradient(
  135deg,
  #eadfce 0%,   /* krem daha belirgin */
  #d9d9d9 28%,  /* gri bir tık koyu */
  #cfe1e8 62%,  /* mavi-gri biraz daha “var” */
  #e4bfb6 100%  /* pudra biraz daha görünür */
);
}

html, body { height: 100%; }

body{
  margin: 0;
  background: var(--bg-grad);
  background-attachment: fixed;
  color: var(--text);
  font-family: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, "Georgia", serif;
  line-height: 1.75;
  letter-spacing: 0.01em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


a{ color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover{ text-decoration-thickness: 2px; }
a:focus-visible{ outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.wrap{ max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.rule{ border: 0; border-top: 1px solid var(--line); margin: 0; }

/* =========================
   HEADER
   ========================= */
header{ padding: clamp(22px, 5vw, 44px) 0 clamp(10px, 2vw, 18px); }

.topbar{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: clamp(10px, 2.5vw, 18px);
}

.brand-mini{
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}

/* NAV: mobile (details) + desktop (inline) */
details.nav{ margin: 0; padding: 0; border: 0; width: auto; }

details.nav > summary{
  list-style: none;
  cursor: pointer;
  user-select: none;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 13px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
}

details.nav > summary::-webkit-details-marker{ display:none; }

details.nav > summary:focus-visible{
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 999px;
}

.navpanel{
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  background: rgba(255,255,255,.25);
  min-width: min(420px, calc(100vw - (2 * var(--gutter))));
}

.navpanel ul{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.navpanel a,
.nav-inline a{
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.navpanel a{
  display: block;
  padding: 8px 6px;
}

.navpanel a:hover{ border-bottom-color: var(--line); color: var(--text); }

.nav-inline{ display: none; }

.nav-inline ul{
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: clamp(12px, 2vw, 22px);
  justify-content: flex-end;
  align-items: baseline;
  flex-wrap: wrap;
}

.nav-inline a{ padding: 6px 0; }
.nav-inline a:hover{ border-bottom-color: var(--line); color: var(--text); }

.is-active{
  color: var(--text) !important;
  border-bottom-color: var(--line) !important;
}

@media (min-width: 880px){
  details.nav{ display: none; }
  .nav-inline{ display: block; }
}

/* Breadcrumb */
.crumbs{ padding: 6px 0 0; text-align: center; }

.crumbs nav{
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  max-width: 100%;
}

.crumbs a, .crumbs span{
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}

.crumbs a:hover{ text-decoration: underline; text-decoration-thickness: 1px; }
.crumbs .sep{ opacity: .55; user-select: none; }
.crumbs .current{ color: var(--text); }

/* =========================
   PAGE HEAD
   ========================= */
.pagehead{
  padding: clamp(18px, 4.5vw, 42px) 0 clamp(10px, 3vw, 20px);
  text-align: center;
}

.pagetitle{
  margin: 0 0 10px;
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.2;
  font-weight: 520;
}

.pagetitle2{
  margin: 0 0 10px;
  font-size: clamp(21px, 5vw, 44px);
  line-height: 1.2;
  font-weight: 420;
}

.pagesub{
  margin: 0 auto;
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 18px);
}

/* =========================
   MAIN
   ========================= */
main{ padding: clamp(18px, 4vw, 40px) 0 clamp(18px, 4vw, 44px); }

.content{ max-width: 760px; margin: 0 auto; }
.content p{ margin: 0 0 14px; }

.muted{ color: var(--muted); }

/* =========================
   FOOTER
   ========================= */
footer{ padding: clamp(18px, 4vw, 36px) 0 clamp(24px, 5vw, 54px); color: var(--muted); }

.foot{
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  font-size: 13px;
  letter-spacing: 0.02em;
}

/* =========================
   HOME SECTION GRID (BASE)
   ========================= */
.home-sections{
  margin-top: clamp(40px, 6vw, 72px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.home-grid{
  display: grid;
  grid-template-columns: 1fr; /* mobile default */
}

.home-cell{
  padding: clamp(22px, 4vw, 32px);
  border-top: 1px solid var(--line);
}

.home-cell:first-child{ border-top: none; }

/* ===== Premium alignment for home cards ===== */
.home-cell{
  display: flex;
  flex-direction: column;
}

.home-cell p{
  /* metin alanı esnesin */
  flex: 1 1 auto;
}

.home-cell a{
  /* CTA en altta sabitlensin */
  margin-top: 14px;
  align-self: flex-start;
}


/* Default desktop grid = 2 columns (site-wide baseline) */
@media (min-width: 820px){
  .home-grid{ grid-template-columns: 1fr 1fr; }
  .home-cell:nth-child(2){ border-top: none; }
  .home-cell:nth-child(odd){ border-right: 1px solid var(--line); }
}

.home-kicker{
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
}

.home-cell h2{ margin: 0 0 10px; font-size: 20px; font-weight: 520; }
.home-cell p{ margin: 0 0 16px; color: var(--muted); }

.home-cell a{
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

.home-cell a span{ opacity: .6; }
.home-cell a:hover{ border-bottom-color: rgba(31,31,31,.35); }

/* =========================
   Home grid – 3 column layout (ONLY when .home-grid--three is used)
   Breakpoints:
   <820px  -> 1 col
   820-979 -> 2 col
   >=980px -> 3 col
   ========================= */

/* 820–979 : 2 columns but keep it scoped to --three */
@media (min-width: 820px){
  .home-grid--three{
    grid-template-columns: 1fr 1fr;
  }

  /* 2-col borders for the 3-card section */
  .home-grid--three .home-cell{
    border-right: none;
  }
  .home-grid--three .home-cell:nth-child(odd){
    border-right: 1px solid var(--line);
  }

  /* ensure the 2nd item has no top border like other 2-col grids */
  .home-grid--three .home-cell:nth-child(2){
    border-top: none;
  }
}

/* >=980 : 3 columns in one row */
@media (min-width: 980px){
  .home-grid--three{
    grid-template-columns: repeat(3, 1fr);
  }

  /* reset and make it a clean single-row row with vertical separators */
  .home-grid--three .home-cell{
    border-right: none;
    border-top: none;
  }

  .home-grid--three .home-cell:not(:last-child){
    border-right: 1px solid var(--line);
  }
}

/* =========================
   HOME FEATURE IMAGE
   ========================= */
.home-image-block{
  margin-top: clamp(34px, 5vw, 56px);
  padding-top: clamp(26px, 4vw, 44px);
  border-top: 1px solid var(--line);
  text-align: center;
  margin-bottom: clamp(18px, 4vw, 34px);
}

.home-image-wrap{
  max-width: var(--max);
  margin: 0 auto;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.28);
  overflow: hidden;
}

.home-image-wrap img{ width: 100%; height: auto; display: block; }

.home-image-caption{
  margin: clamp(14px, 2vw, 18px) auto 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.01em;
}

.home-image-caption em{ font-style: italic; }

/* =========================
   Projects page (timeline)
   ========================= */
.projects-intro{
  padding-bottom: clamp(10px, 2vw, 18px);
}

.projects-controls{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0 0;
}

.projects-controls .hint{
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.projects-controls code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
  color: var(--muted);
}

.chip{
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.28);
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 12px;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.chip:hover{
  color: var(--text);
  border-color: rgba(31,31,31,.25);
  background: rgba(255,255,255,.28);
}

.chip:focus-visible{
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.timeline{
  margin-top: clamp(18px, 3vw, 24px);
  border-top: 1px solid var(--line);
}

.entry{
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: clamp(18px, 3.2vw, 26px) 0;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 860px){
  .entry{
    grid-template-columns: 170px 1fr;
    gap: 26px;
  }
}

.year{
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
  padding-top: 2px;
  white-space: nowrap;
}

.entry h2{
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 520;
  line-height: 1.35;
}

.entry p{
  margin: 0 0 10px;
  color: var(--muted);
}

.subnote{
  margin-top: 12px;
  color: var(--muted);
}

.links{
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.links a{
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 3px;
  display: inline-flex;
  gap: 10px;
  align-items: baseline;
  color: var(--muted);
}

.links a:hover{
  color: var(--text);
  border-bottom-color: rgba(31,31,31,.35);
}

.links small{
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: .65;
}

.note{
  margin-top: clamp(18px, 3vw, 26px);
  color: var(--muted);
  font-style: italic;
}

/* =========================
   Projects hub + category pages
   ========================= */
.grid3{
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 900px){
  .grid3{ grid-template-columns: repeat(3, 1fr); }
}

.cardlink{
  display: block;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.28);
  text-decoration: none;
}

.cardlink:hover{
  border-color: rgba(31,31,31,.18);
  background: rgba(255,255,255,.26);
}

.cardlink h2{
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 520;
}

.cardlink p{
  margin: 0;
  color: var(--muted);
}

/* =========================
   Project detail page
   ========================= */

.kicker{
  margin: 0 0 10px;
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.project-hero{
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  padding-top: 10px;
}

@media (min-width: 900px){
  .project-hero{
    grid-template-columns: 360px 1fr;
    gap: 28px;
    align-items: start;
  }
}

.poster{
  border: 1px solid var(--line);
  background: rgba(255,255,255,.28);
  overflow: hidden;
}

.poster img{
  width: 100%;
  height: auto;
  display: block;
}

.lead{
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.cta-row{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.gallery{
  margin-top: clamp(28px, 5vw, 46px);
  padding-top: clamp(18px, 4vw, 28px);
  border-top: 1px solid var(--line);
}

.gallery-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 14px;
}
@media (min-width: 720px){
  .gallery-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px){
  .gallery-grid{ grid-template-columns: repeat(3, 1fr); }
}


.gallery-item{
  display: block;
  border: 1px solid var(--line);
  background: transparent;
  overflow: hidden;
  text-decoration: none;
}


.gallery-item img{
  width: 100%;
  height: 260px;            /* tüm thumbnail'lar aynı yükseklik */
  object-fit: cover;        /* boşluk yok, kırpma var */
  display: block;
  transform: translateZ(0);
  transition: transform 180ms ease;
}

/* hover sadece çok hafif */
.gallery-item:hover img{
  transform: scale(1.02);
}


.back-row{
  margin-top: clamp(26px, 5vw, 44px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

/* =========================
   Projects Detail - Language toggle (EN | DE)
   ========================= */

.lang-toggle{
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;

  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lang-btn{
  appearance: none;
  -webkit-appearance: none;
  background: none;
  border: none;
  outline: none;
  box-shadow: none;

  padding: 0;
  margin: 0;

  cursor: pointer;
  color: var(--muted);

  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lang-btn:focus,
.lang-btn:focus-visible{
  outline: none;
  box-shadow: none;
}


.lang-btn:hover{
  color: var(--text);
}

.lang-btn.is-active{
  color: var(--text);
  border-bottom: 1px solid var(--line);
}

.lang-sep{
  opacity: .4;
}


/* Page sub-navigation (chips) for category pages */
.subnav{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.block{
  padding-top: 6px;
  padding-bottom: 6px;
}

.sectiontitle{
  margin: 0 0 14px 0;
}

.entrycard{
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.entrycard:first-of-type{
  border-top: 0;
}

.entrycard h3{
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: 520;
  line-height: 1.4;
}

.entrycard p{
  margin: 0;
  color: var(--muted);
}

/* =========================
   Index helpers
   ========================= */
.home-grid--single{
  grid-template-columns: 1fr !important;
}

@media (min-width: 820px){
  .home-grid--single{
    grid-template-columns: 1fr !important;
  }
  .home-grid--single .home-cell{
    border-right: none !important;
  }
}

.info-sections{
  margin-top: clamp(22px, 3.5vw, 34px);
}

/* =========================
   Header dropdown (desktop) - FINAL
   Uses .dd / .dd-menu to avoid collisions with .subnav
   ========================= */
.nav-inline li { position: relative; }

.dd { position: relative; }

.dd-trigger{
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}

/* Hidden by default */
.dd-menu{
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 320px;

  margin: 0;
  padding: 10px;
  list-style: none;

  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.65);
  backdrop-filter: blur(6px);

  display: none;
  z-index: 60;
}

/* Open on hover + keyboard focus */
.dd:hover .dd-menu,
.dd:focus-within .dd-menu{
  display: grid;
  gap: 6px;
}

.dd-menu a{
  display: block;
  padding: 8px 10px;
  border-radius: 10px;
  text-transform: none;
  letter-spacing: 0.02em;
  border-bottom: 0;
}

.dd-menu a:hover{
  background: rgba(255,255,255,.55);
  color: var(--text);
}

/* =========================
   Mobile: Projects accordion inside hamburger
   ========================= */
.m-sub__details{ width: 100%; }

.m-sub__summary{
  list-style: none;
  cursor: pointer;
  user-select: none;

  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 8px 6px;
  border-radius: 10px;
}

.m-sub__summary::-webkit-details-marker{ display:none; }

.m-sub__summary:hover{
  color: var(--text);
  background: rgba(255,255,255,.25);
}

.m-sub__list{
  list-style: none;
  margin: 8px 0 0;
  padding: 0 0 0 12px;
  display: grid;
  gap: 6px;
}

.m-sub__list a{
  display: block;
  padding: 8px 6px;
  border-radius: 10px;
}

/* ===== Add left border to 3-column home grid ===== */

@media (min-width: 980px){
  .home-grid--three{
    border-left: 1px solid var(--line);
  }
}

