/* ============================================
   DESIGN TOKENS
   Palette: Warm earth — gold, terra cotta, krem, antik taş
   ============================================ */
:root {
  /* Colors */
  --c-bg:        #F7F3ED;   /* krem arka plan */
  --c-surface:   #EFE9DF;   /* hafif daha koyu yüzey */
  --c-gold:      #B8902A;   /* altın vurgu */
  --c-gold-lt:   #D4AA50;   /* açık altın, hover */
  --c-terra:     #8B3A2A;   /* terra cotta, aksan */
  --c-stone:     #5C5347;   /* antik taş, koyu metin */
  --c-text:      #2E2A24;   /* ana metin */
  --c-muted:     #8C8077;   /* ikincil metin */
  --c-border:    #D6CBBC;   /* ince çizgiler */
  --c-white:     #FDFAF6;   /* saf beyaz değil, sıcak */

  /* Typography */
  --f-display: 'Cormorant Garamond', 'Georgia', serif;
  --f-body:    'Inter', 'Helvetica Neue', sans-serif;

  /* Type scale */
  --fs-xs:   0.75rem;
  --fs-sm:   0.875rem;
  --fs-base: 1rem;
  --fs-md:   1.125rem;
  --fs-lg:   1.375rem;
  --fs-xl:   1.75rem;
  --fs-2xl:  2.25rem;
  --fs-3xl:  3rem;
  --fs-hero: clamp(2.8rem, 6vw, 5.5rem);

  /* Spacing */
  --sp-xs:  0.5rem;
  --sp-sm:  1rem;
  --sp-md:  1.5rem;
  --sp-lg:  2.5rem;
  --sp-xl:  4rem;
  --sp-2xl: 6rem;

  /* Layout */
  --max-w:    1200px;
  --max-w-sm: 720px;
  --radius:   2px;

  /* Transitions */
  --tr-fast: 180ms ease;
  --tr-mid:  320ms ease;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--f-body);
  font-size: var(--fs-base);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--c-stone);
}

h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }

.section-label {
  font-family: var(--f-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-gold);
  display: block;
  margin-bottom: var(--sp-sm);
}

/* ============================================
   LAYOUT UTILITIES
   ============================================ */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--sp-lg);
}

.container--sm {
  max-width: var(--max-w-sm);
  margin-inline: auto;
  padding-inline: var(--sp-lg);
}

.section {
  padding-block: var(--sp-2xl);
}

.section--alt {
  background: var(--c-surface);
}

/* Tessera divider — mozaik dokusu çağrışımı */
.tessera-divider {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  margin-block: var(--sp-xl);
}
.tessera-divider::before,
.tessera-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--c-border);
}
.tessera-divider__icon {
  width: 10px; height: 10px;
  background: var(--c-gold);
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* ============================================
   HEADER / NAV
   ============================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(247, 243, 237, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--c-border);
  transition: box-shadow var(--tr-mid);
}

.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(46, 42, 36, 0.08);
}

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

.nav__logo {
  font-family: var(--f-display);
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--c-stone);
  letter-spacing: 0.01em;
}

.nav__logo span {
  color: var(--c-gold);
}

.nav__links {
  display: flex;
  gap: var(--sp-lg);
  align-items: center;
}

.nav__links a {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--c-stone);
  letter-spacing: 0.03em;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: border-color var(--tr-fast), color var(--tr-fast);
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--c-gold);
  border-bottom-color: var(--c-gold);
}

/* Dil geçişi */
.lang-switcher {
  display: flex;
  gap: 4px;
  align-items: center;
  margin-left: var(--sp-md);
  padding-left: var(--sp-md);
  border-left: 1px solid var(--c-border);
}

.lang-btn {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--c-muted);
  cursor: pointer;
  padding: 2px 6px;
  border-radius: var(--radius);
  transition: color var(--tr-fast), background var(--tr-fast);
  background: none;
  border: none;
}

.lang-btn.active,
.lang-btn:hover {
  color: var(--c-stone);
  background: var(--c-border);
}

/* Mobile hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--c-stone);
  transition: transform var(--tr-mid), opacity var(--tr-fast);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: 68px; /* header height */
}

.hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--sp-2xl) var(--sp-xl) var(--sp-2xl) calc((100vw - var(--max-w)) / 2 + var(--sp-lg));
}

.hero__unvan {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-terra);
  margin-bottom: var(--sp-md);
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
}

.hero__unvan::before {
  content: '';
  display: inline-block;
  width: 28px; height: 2px;
  background: var(--c-terra);
}

.hero__name {
  font-size: var(--fs-hero);
  font-weight: 400;
  color: var(--c-stone);
  line-height: 1.05;
  margin-bottom: var(--sp-md);
}

.hero__name em {
  font-style: italic;
  color: var(--c-gold);
}

.hero__logo {
  display: block;
  width: auto;
  max-width: min(100%, 420px);
  height: auto;
}

.hero__desc {
  font-size: var(--fs-md);
  color: var(--c-muted);
  max-width: 42ch;
  margin-bottom: var(--sp-xl);
  line-height: 1.75;
}

.hero__actions {
  display: flex;
  gap: var(--sp-sm);
  flex-wrap: wrap;
}

.hero__image {
  position: relative;
  overflow: hidden;
  background: var(--c-surface);
}

.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 8s ease;
}

.hero__image:hover img {
  transform: scale(1.03);
}

/* Mozaik doku overlay */
.hero__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    transparent 40%,
    rgba(184, 144, 42, 0.08) 100%
  );
  pointer-events: none;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-xs);
  font-family: var(--f-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--tr-fast);
  border: none;
  text-decoration: none;
}

.btn--primary {
  background: var(--c-gold);
  color: var(--c-white);
}

.btn--primary:hover {
  background: var(--c-gold-lt);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(184, 144, 42, 0.3);
}

.btn--outline {
  background: transparent;
  color: var(--c-stone);
  border: 1.5px solid var(--c-border);
}

.btn--outline:hover {
  border-color: var(--c-gold);
  color: var(--c-gold);
}

/* ============================================
   MOZAIK NEDIR (Ana sayfa mini bölümü)
   ============================================ */
.mozaik-intro {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--sp-xl);
  align-items: center;
}

.mozaik-intro__stat {
  text-align: center;
  padding: var(--sp-lg);
  border: 1px solid var(--c-border);
  background: var(--c-white);
}

.mozaik-intro__stat-num {
  font-family: var(--f-display);
  font-size: 3.5rem;
  color: var(--c-gold);
  line-height: 1;
  display: block;
}

.mozaik-intro__stat-label {
  font-size: var(--fs-sm);
  color: var(--c-muted);
  margin-top: var(--sp-xs);
}

/* ============================================
   FEATURED WORKS (Ana sayfa 3'lü önizleme)
   ============================================ */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px; /* tessera boşluğu gibi */
}

.work-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--c-surface);
  cursor: pointer;
}

.work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--tr-mid);
}

.work-card:hover img {
  transform: scale(1.05);
}

.work-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(46,42,36,0.85) 0%, transparent 55%);
  opacity: 0;
  transition: opacity var(--tr-mid);
  display: flex;
  align-items: flex-end;
  padding: var(--sp-md);
}

.work-card:hover .work-card__overlay {
  opacity: 1;
}

.work-card__info h3 {
  font-family: var(--f-display);
  font-size: var(--fs-lg);
  color: var(--c-white);
  font-weight: 400;
}

.work-card__info span {
  font-size: var(--fs-xs);
  color: var(--c-gold-lt);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ============================================
   GALLERY (Eserlerim sayfası)
   ============================================ */
.gallery-filters {
  display: flex;
  gap: var(--sp-xs);
  flex-wrap: wrap;
  margin-bottom: var(--sp-xl);
}

.filter-btn {
  font-size: var(--fs-sm);
  font-weight: 500;
  padding: 0.4rem 1.1rem;
  border: 1.5px solid var(--c-border);
  background: transparent;
  color: var(--c-muted);
  cursor: pointer;
  border-radius: 999px;
  transition: all var(--tr-fast);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--c-gold);
  border-color: var(--c-gold);
  color: var(--c-white);
}

.gallery-grid {
  columns: 4;
  column-gap: var(--sp-sm);
}

@media (max-width: 1200px) {
  .gallery-grid { columns: 3; }
}

.gallery-item {
  break-inside: avoid;
  margin: 0 0 var(--sp-sm);
  background: var(--c-white);
  border: 1px solid var(--c-border);
  cursor: pointer;
  position: relative;
}

.gallery-item__media {
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  display: block;
  transition: transform var(--tr-mid);
}

.gallery-item:hover img {
  transform: scale(1.03);
}

.gallery-item__info {
  padding: var(--sp-sm) var(--sp-md);
}

.gallery-item__name {
  display: block;
  font-weight: 500;
  color: var(--c-stone);
  font-size: var(--fs-sm);
}

.gallery-item__date {
  display: block;
  font-size: var(--fs-xs);
  color: var(--c-muted);
  margin-top: 4px;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(30, 26, 22, 0.95);
  align-items: center;
  justify-content: center;
}

.lightbox.open {
  display: flex;
}

.lightbox__inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox__img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
}

.lightbox__close {
  position: absolute;
  top: -40px; right: 0;
  background: none;
  border: none;
  color: var(--c-white);
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity var(--tr-fast);
}

.lightbox__close:hover { opacity: 1; }

.lightbox__caption {
  text-align: center;
  margin-top: var(--sp-sm);
  color: var(--c-border);
  font-size: var(--fs-sm);
  font-style: italic;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: var(--c-white);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.75;
  transition: opacity var(--tr-fast), background var(--tr-fast);
  z-index: 2;
  user-select: none;
}

.lightbox__nav:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.18);
}

.lightbox__nav--prev { left: 3vw; }
.lightbox__nav--next { right: 3vw; }

@media (max-width: 768px) {
  .lightbox__nav { width: 44px; height: 44px; font-size: 1.5rem; }
  .lightbox__nav--prev { left: 12px; }
  .lightbox__nav--next { right: 12px; }
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: var(--sp-2xl);
  align-items: start;
}

.about-photo {
  position: sticky;
  top: 90px;
}

.about-photo img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}

.about-photo__badge {
  background: var(--c-gold);
  color: var(--c-white);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: var(--sp-sm) var(--sp-md);
  text-align: center;
  line-height: 1.5;
}

.about-text p {
  margin-bottom: var(--sp-md);
  color: var(--c-stone);
  font-size: var(--fs-md);
}

/* CV Timeline */
.cv-section {
  margin-top: var(--sp-xl);
  border-top: 1px solid var(--c-border);
  padding-top: var(--sp-xl);
}

.cv-entry {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: var(--sp-md);
  padding-bottom: var(--sp-md);
  border-bottom: 1px solid var(--c-border);
  margin-bottom: var(--sp-md);
}

.cv-entry__year {
  font-family: var(--f-display);
  font-size: var(--fs-lg);
  color: var(--c-gold);
  font-weight: 400;
}

.cv-entry__desc {
  font-size: var(--fs-base);
  color: var(--c-stone);
}

/* ============================================
   EXHIBITIONS (Sergiler)
   ============================================ */
.exhibitions-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.exhibition-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: var(--sp-md);
  padding: var(--sp-md) var(--sp-lg);
  background: var(--c-white);
  align-items: center;
  border-left: 3px solid transparent;
  transition: border-color var(--tr-fast), background var(--tr-fast);
}

.exhibition-item:hover {
  border-left-color: var(--c-gold);
  background: var(--c-surface);
}

.exhibition-item__year {
  font-family: var(--f-display);
  font-size: var(--fs-xl);
  color: var(--c-gold);
  font-weight: 400;
}

.exhibition-item__name {
  font-weight: 500;
  color: var(--c-stone);
}

.exhibition-item__location {
  font-size: var(--fs-sm);
  color: var(--c-muted);
  margin-top: 2px;
}

.exhibition-item__type {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-terra);
  padding: 2px 8px;
  border: 1px solid var(--c-terra);
  white-space: nowrap;
}

/* ============================================
   STUDENTS
   ============================================ */
.students-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--sp-sm);
}

.student-card {
  background: var(--c-white);
  overflow: hidden;
  border: 1px solid var(--c-border);
  cursor: pointer;
}

.student-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.student-card__info {
  padding: var(--sp-md);
}

.student-card__name {
  font-weight: 500;
  color: var(--c-stone);
  font-size: var(--fs-sm);
}

.student-card__note {
  font-size: var(--fs-xs);
  color: var(--c-muted);
  margin-top: 4px;
}

/* ============================================
   CONTACT STRIP
   ============================================ */
.contact-strip {
  background: var(--c-stone);
  padding: var(--sp-xl) 0;
}

/* İsim + iletişim de footer gibi geniş alan kullansın (biraz daha açık) */
.contact-strip .container {
  max-width: 1750px;
}

.contact-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-lg);
  flex-wrap: wrap;
}

/* Sanatçı adı — solda */
.contact-brand {
  font-family: var(--f-display);
  font-size: var(--fs-3xl);
  color: var(--c-white);
  line-height: 1.1;
}

/* Soru bloğu — sağda, sağa yaslı */
.contact-ask {
  text-align: right;
  margin-left: auto;
}

.contact-strip h2 {
  color: var(--c-white);
  font-size: var(--fs-2xl);
  margin-bottom: var(--sp-sm);
}

.contact-strip p {
  color: var(--c-border);
  margin-bottom: var(--sp-md);
  font-size: var(--fs-md);
}

.contact-strip .btn--primary {
  background: var(--c-gold);
}

.contact-links {
  display: flex;
  justify-content: flex-end;
  gap: var(--sp-md);
  margin-top: var(--sp-sm);
  flex-wrap: wrap;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--c-border);
  font-size: var(--fs-sm);
  transition: color var(--tr-fast);
}

.contact-link:hover { color: var(--c-gold-lt); }

.contact-link svg {
  width: 18px; height: 18px;
  fill: currentColor;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--c-text);
  padding: var(--sp-lg) 0;
}

/* Footer içeriği sayfanın geneline göre daha geniş bir alanı kullansın */
.site-footer .container {
  max-width: 1600px;
}

/* 3 sütun: logo (sol) — miras yazısı (sayfa ortası) — by LAMA (sağ) */
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--sp-md);
}

.footer-logo {
  justify-self: start;
}

.footer-logo__img {
  height: 110px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.95;
  display: block;
}

.footer-miras__text {
  justify-self: center;
  font-size: var(--fs-md);
  color: var(--c-muted);
  line-height: 1.45;
  text-align: center;
  white-space: nowrap;
  margin: 0;
}

.footer-credit {
  justify-self: end;
}

.footer-credit__link {
  font-size: var(--fs-md);
  color: var(--c-muted);
  transition: opacity var(--tr-fast);
}

.footer-credit__link:hover { opacity: 0.8; }

.footer-credit__lama {
  color: #3ba8df;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.footer-copy {
  font-size: var(--fs-xs);
  color: var(--c-muted);
}

/* Yukarı çık butonu */
.scroll-top {
  position: fixed;
  bottom: 26px;
  right: 26px;
  padding: 4px;
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--tr-fast), transform var(--tr-fast), visibility var(--tr-fast);
  z-index: 150;
  filter: drop-shadow(0 4px 10px rgba(30, 26, 22, 0.3));
}

.scroll-top.visible {
  opacity: 0.9;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover { opacity: 1; transform: translateY(-3px); }

.scroll-top img {
  height: 8em;
  width: auto;
  display: block;
}

@media (max-width: 768px) {
  .scroll-top { bottom: 18px; right: 16px; }
  .scroll-top img { height: 5em; }
}

/* ============================================
   PAGE HERO (İç sayfalar)
   ============================================ */
.page-hero {
  padding-top: calc(68px + var(--sp-2xl));
  padding-bottom: var(--sp-xl);
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
}

.page-hero h1 {
  font-size: var(--fs-3xl);
  margin-bottom: var(--sp-xs);
}

.page-hero p {
  color: var(--c-muted);
  font-size: var(--fs-md);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero__image {
    height: 55vw;
  }
  .hero__content {
    padding: var(--sp-xl) var(--sp-lg);
    padding-top: calc(68px + var(--sp-xl));
  }
  .works-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-grid { columns: 2; }
  .mozaik-intro { grid-template-columns: 1fr; }
  .about-layout { grid-template-columns: 1fr; }
  .about-photo { position: static; }
  .about-photo img { max-height: 400px; }
}

@media (max-width: 768px) {
  :root {
    --sp-2xl: 4rem;
    --sp-xl: 3rem;
  }
  .nav__links { display: none; }
  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: var(--c-bg);
    padding: var(--sp-lg);
    border-bottom: 1px solid var(--c-border);
    gap: var(--sp-md);
  }
  .nav__toggle { display: flex; }
  .works-grid { grid-template-columns: 1fr; }
  .gallery-grid { columns: 1; }
  .exhibition-item { grid-template-columns: 60px 1fr; }
  .exhibition-item__type { display: none; }
  .footer-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: var(--sp-md);
  }
  .footer-logo, .footer-credit { justify-self: center; }
  .footer-miras__text { white-space: normal; max-width: 320px; }

  .contact-inner { flex-direction: column; text-align: center; }
  .contact-brand { text-align: center; }
  .contact-ask { text-align: center; margin-left: 0; }
  .contact-links { justify-content: center; }
  .cv-entry { grid-template-columns: 70px 1fr; }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
  .fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .fade-up.visible {
    opacity: 1;
    transform: translateY(0);
  }
}
