/* =======================================================
   ARDIYÉ // PURE BAUHAUS DESIGN SYSTEM
   Master Stylesheet — 100% Responsive & Hardware-Accelerated
   ======================================================= */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;600;700&display=swap');

:root {
  --b-bg: #f5f2eb;       
  --b-ink: #111111;      
  --b-red: #da291c;      
  
  --border-main: 2.5px solid var(--b-ink);
  --pad: clamp(16px, 4vw, 50px);
  --h-height: clamp(56px, 7vh, 80px);
  --f-main: 'Space Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html { 
  scroll-behavior: smooth; 
  scroll-padding-top: var(--h-height);
  background: var(--b-bg); 
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--b-bg);
  color: var(--b-ink);
  font-family: var(--f-main);
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.5;
  text-transform: lowercase; 
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
}

a, button { 
  text-decoration: none; 
  color: inherit; 
  outline: none; 
  background: none; 
  border: none; 
  cursor: pointer; 
}

/* --- HEADER & NAVIGATION --- */
.header {
  position: fixed; 
  top: 0; 
  left: 0; 
  width: 100%; 
  height: var(--h-height);
  display: grid;
  grid-template-columns: 35% 65%;
  background: var(--b-bg);
  border-bottom: var(--border-main);
  z-index: 1000;
  transform: translateZ(0);
}

.logo { 
  font-weight: 700; 
  font-size: clamp(1.3rem, 2vw, 2rem); 
  padding: 0 var(--pad); 
  border-right: var(--border-main);
  height: 100%; 
  display: flex; 
  align-items: center;
  background-color: var(--b-ink); 
  color: var(--b-bg);
  width: 100%;
  letter-spacing: -0.02em;
  transition: color 0.15s ease;
  white-space: nowrap;
}
.logo:hover { 
  color: var(--b-red); 
}

.desktop-nav { 
  display: grid; 
  grid-template-columns: repeat(4, 1fr);
  height: 100%; 
  width: 100%;
}

.nav-link { 
  padding: 0 10px; 
  font-weight: 600;
  border-right: var(--border-main);
  display: flex; 
  align-items: center; 
  justify-content: center;
  height: 100%;
  background: var(--b-bg);
  color: var(--b-ink);
  transition: background-color 0.1s ease, color 0.1s ease;
  white-space: nowrap;
}
.nav-link:last-child {
  border-right: var(--border-main);
}
.nav-link:hover { 
  background-color: var(--b-red); 
  color: var(--b-bg); 
}

.menu-btn { 
  display: none; 
  padding: 0 var(--pad); 
  font-family: var(--f-main);
  font-weight: 700; 
  font-size: clamp(0.9rem, 1.2vw, 1rem);
  height: 100%; 
  border-left: var(--border-main); 
  background: var(--b-bg);
  color: var(--b-ink);
  transition: background-color 0.1s ease, color 0.1s ease;
  white-space: nowrap;
}
.menu-btn:hover { 
  background-color: var(--b-red); 
  color: var(--b-bg); 
}

/* Detay Sayfaları İçin Özel Header */
.header-detail {
  display: flex !important;
  justify-content: space-between;
  align-items: stretch;
  width: 100%;
}
.header-detail .logo {
  width: auto;
  flex: none;
  border-right: var(--border-main);
  padding: 0 var(--pad);
}
.header-detail .back-btn {
  padding: 0 var(--pad);
  height: 100%;
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: clamp(0.85rem, 1.2vw, 1rem);
  border-left: var(--border-main);
  background: var(--b-bg);
  color: var(--b-ink);
  transition: background-color 0.1s ease, color 0.1s ease;
  white-space: nowrap;
}
.header-detail .back-btn:hover {
  background-color: var(--b-red);
  color: var(--b-bg);
}

/* --- MOBILE DRAWER --- */
.mobile-drawer {
  position: fixed; 
  top: var(--h-height); 
  left: 0; 
  width: 100%;
  max-height: calc(100vh - var(--h-height));
  overflow-y: auto;
  background: var(--b-bg); 
  border-bottom: var(--border-main);
  display: flex; 
  flex-direction: column; 
  transform: translateY(-100%); 
  opacity: 0; 
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease; 
  z-index: 999;
}
.mobile-drawer.is-open { 
  transform: translateY(0); 
  opacity: 1; 
  pointer-events: auto; 
}
.mobile-drawer .nav-link { 
  border-right: none; 
  border-bottom: var(--border-main); 
  padding: 18px var(--pad); 
  justify-content: flex-start; 
  font-size: 1.2rem;
}
.mobile-drawer .nav-link:last-child { 
  border-bottom: none; 
}
.mobile-drawer .nav-link:hover { 
  background-color: var(--b-red); 
  color: var(--b-bg); 
}

/* --- HERO SECTION --- */
.hero {
  margin-top: var(--h-height); 
  min-height: 38vh; 
  padding: var(--pad); 
  display: flex; 
  align-items: flex-end;
  border-bottom: var(--border-main);
}
.hero-title {
  font-size: clamp(2.75rem, 9vw, 9.5rem);
  font-weight: 700; 
  line-height: 0.88; 
  letter-spacing: -0.05em;
  user-select: none;
  word-break: break-word;
}
.hero-title span { 
  display: block; 
  font-size: clamp(0.95rem, 1.6vw, 1.7rem); 
  font-weight: 400; 
  color: var(--b-ink); 
  margin-bottom: 12px; 
  letter-spacing: 0; 
}

/* --- DETAIL PAGE HERO --- */
.artist-hero {
  margin-top: var(--h-height);
  padding: var(--pad);
  border-bottom: var(--border-main);
  background: var(--b-bg);
}
.artist-name {
  font-size: clamp(2.2rem, 6.5vw, 6rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.04em;
  word-break: break-word;
}
.artist-name span {
  display: block;
  font-size: clamp(0.85rem, 1.2vw, 1.1rem);
  font-weight: 400;
  color: var(--b-ink);
  margin-bottom: 8px;
  letter-spacing: 0;
}

/* --- GRID SYSTEM & SECTIONS --- */
.grid-section { 
  border-bottom: var(--border-main); 
  display: grid; 
  grid-template-columns: 35% 65%; 
  align-items: stretch; 
  width: 100%;
}

.section-head { 
  padding: var(--pad); 
  border-right: var(--border-main); 
  display: flex; 
  flex-direction: column; 
  justify-content: center; 
  gap: 16px; 
  height: 100%;
}
.title-group { 
  display: flex; 
  flex-direction: column; 
  gap: 5px; 
}
.section-num { 
  font-size: 1.1rem; 
  font-weight: 700; 
  color: var(--b-ink); 
  border-bottom: 2.5px solid var(--b-ink); 
  padding-bottom: 4px; 
  width: max-content; 
}
.section-title { 
  font-size: clamp(2rem, 3.8vw, 3.5rem); 
  font-weight: 700; 
  letter-spacing: -0.04em; 
  line-height: 1; 
}
.section-desc { 
  font-size: clamp(0.95rem, 1.25vw, 1.2rem); 
  font-weight: 600; 
  line-height: 1.4; 
}

.section-body { 
  padding: var(--pad); 
  height: 100%; 
  display: flex; 
  flex-direction: column; 
  justify-content: center; 
}

/* --- TYPOGRAPHY --- */
.text-body { 
  font-size: clamp(1rem, 1.3vw, 1.25rem); 
  display: flex; 
  flex-direction: column; 
  gap: 18px; 
  font-weight: 400; 
}

/* --- GALLERY CARDS --- */
.card-grid { 
  display: grid; 
  grid-template-columns: repeat(2, minmax(0, 1fr)); 
  gap: clamp(14px, 2vw, 24px); 
  width: 100%; 
}

.b-card { 
  border: var(--border-main); 
  padding: clamp(12px, 1.8vw, 18px); 
  display: flex; 
  flex-direction: column; 
  gap: 12px;
  background: var(--b-bg); 
  color: var(--b-ink);
  will-change: transform;
  transform: translate3d(0, 0, 0);
  transition: transform 0.15s ease-out, box-shadow 0.2s ease, background 0.15s ease, color 0.15s ease; 
  min-width: 0;
}
.b-card:hover { 
  box-shadow: 6px 6px 0px var(--b-ink); 
  background: var(--b-red); 
  color: var(--b-bg); 
}

.card-img { 
  width: 100%; 
  aspect-ratio: 4/3; 
  border: var(--border-main); 
  overflow: hidden; 
  background: var(--b-ink);
  position: relative;
}
.card-img.square { 
  aspect-ratio: 1/1; 
}
.card-img img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  filter: grayscale(100%) contrast(1.2); 
  transform: scale(1.08) translate3d(0, 0, 0);
  will-change: transform;
  transition: filter 0.3s ease; 
}
.b-card:hover .card-img img { 
  filter: grayscale(0%); 
}

.card-meta { 
  font-size: clamp(0.8rem, 1vw, 0.9rem); 
  font-weight: 700; 
  border-bottom: 2.5px solid currentColor; 
  padding-bottom: 6px; 
  display: flex; 
  justify-content: space-between; 
}
.card-title { 
  font-size: clamp(1.25rem, 1.8vw, 2rem); 
  font-weight: 700; 
  letter-spacing: -0.5px; 
  line-height: 1.1; 
}
.card-desc { 
  font-size: clamp(0.9rem, 1.1vw, 1rem); 
  line-height: 1.4; 
}

/* --- DETAIL SPEC LIST & MEDIA FRAMES --- */
.spec-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: var(--border-main);
  padding-top: 20px;
}
.spec-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: clamp(0.9rem, 1.1vw, 1.05rem);
  word-break: break-word;
}
.spec-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: rgba(17, 17, 17, 0.6);
  text-transform: uppercase;
}
.spec-value {
  font-weight: 600;
  line-height: 1.35;
}

.artist-portrait-frame {
  width: 100%;
  aspect-ratio: 4/5;
  border: var(--border-main);
  overflow: hidden;
  background: var(--b-ink);
  position: relative;
}
.artist-portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(100%) contrast(1.15);
  display: block;
}

.detail-media-container {
  width: 100%;
  border: var(--border-main);
  overflow: hidden;
  background: var(--b-ink);
  position: relative;
}
.detail-media-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(100%) contrast(1.15);
}

/* --- FOOTER / CONTACT --- */
#contact {
  background-color: var(--b-ink);
  color: var(--b-bg);
  padding-bottom: 0;
}
#contact .section-head {
  border-right: 2.5px solid var(--b-bg);
}
#contact .section-num {
  color: var(--b-bg);
  border-bottom-color: var(--b-bg);
}
#contact .section-desc {
  color: rgba(245, 242, 235, 0.7);
}

.footer-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 24px;
}
.footer-main-action {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border: 2px solid var(--b-bg);
  color: var(--b-bg);
  font-weight: 700;
  font-size: clamp(1rem, 1.4vw, 1.35rem);
  letter-spacing: -0.5px;
  transition: all 0.2s ease;
  width: fit-content;
}
.footer-action-btn:hover {
  background-color: var(--b-red);
  border-color: var(--b-red);
  color: var(--b-bg);
  transform: translate(-3px, -3px);
  box-shadow: 3px 3px 0px var(--b-bg);
}
.footer-note {
  font-size: 0.85rem;
  font-weight: 400;
  color: rgba(245, 242, 235, 0.5);
  letter-spacing: 0.5px;
}

.social-nav { 
  display: flex; 
  flex-direction: column; 
  gap: 8px; 
  font-weight: 600; 
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  text-align: right; 
}
.social-nav a { 
  color: var(--b-bg); 
  transition: color 0.2s ease, padding 0.2s ease; 
}
.social-nav a:hover { 
  color: var(--b-red); 
  padding-right: 8px; 
}

/* --- RESPONSIVE BREAKPOINTS --- */
@media (max-width: 1024px) {
  .header:not(.header-detail) {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
  }
  .header:not(.header-detail) .logo {
    width: auto;
    flex: 1;
  }
  .desktop-nav { 
    display: none; 
  }
  .menu-btn { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    flex-shrink: 0;
  }
  .grid-section { 
    grid-template-columns: 1fr; 
  }
  .section-head { 
    border-right: none; 
    border-bottom: var(--border-main); 
    padding: var(--pad);
    gap: 12px;
  }
  #contact .section-head { 
    border-right: none;
    border-bottom: 2.5px solid var(--b-bg); 
  }
}

@media (max-width: 680px) {
  .card-grid { 
    grid-template-columns: 1fr; 
    gap: 16px;
  }
  .footer-container { 
    flex-direction: column; 
    align-items: flex-start; 
    gap: 28px; 
  }
  .social-nav { 
    text-align: left; 
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
  }
  .social-nav a:hover { 
    padding-right: 0; 
    color: var(--b-red); 
  }
  .hero {
    min-height: 30vh;
    padding-bottom: 24px;
  }
  .artist-portrait-frame {
    aspect-ratio: 1/1;
  }
}

@media (max-width: 380px) {
  :root {
    --pad: 14px;
  }
  .hero-title {
    font-size: 2.4rem;
  }
  .footer-action-btn {
    font-size: 0.95rem;
    padding: 10px 16px;
  }
}
