/* ============================================
   Aybüke Yılmazer — Portfolio Site
   styles.css
   ============================================ */

/* --- CSS Variables --- */
:root {
  --color-bg:         #ffffff;
  --color-text:       #1a1a1a;
  --color-text-muted: #888888;
  --color-border:     #e0e0e0;
  --color-bg-alt:     #f7f7f7;
  --font-serif:       'Cormorant Garamond', Georgia, serif;
  --font-sans:        'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --max-width:        1100px;
  --header-height:    64px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* ============================================
   HEADER & NAV
   ============================================ */
header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
}

.site-title {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.site-title a { text-decoration: none; }

nav { display: flex; gap: 36px; align-items: center; }
nav a {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.2s;
}
nav a:hover,
nav a.active { border-bottom-color: var(--color-text); text-decoration: none; }

/* ============================================
   SHARED: SECTION HEADER
   ============================================ */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 44px;
}
.section-header h2 {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0;
}

/* ============================================
   NEWS PAGE — HERO VIDEO
   ============================================ */
.hero-video {
  background: #000;
  width: 100%;
}
.hero-video iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
}
.hero-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 48px;
  background: #000;
  color: #fff;
  border-bottom: 1px solid #2a2a2a;
}
.hero-caption-left {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
}
.hero-caption-right {
  font-size: 11px;
  color: #666;
  letter-spacing: 0.05em;
  font-style: italic;
}

/* ============================================
   NEWS PAGE — LAYOUT
   ============================================ */
.news-page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 64px 48px 100px;
}

/* ── Featured card (full-width hero card) ── */
.featured-card {
  display: grid;
  grid-template-columns: 40% 1fr;
  gap: 48px;
  margin-bottom: 72px;
  padding-bottom: 72px;
  border-bottom: 1px solid var(--color-border);
  text-decoration: none;
  color: inherit;
}
.featured-card:hover { text-decoration: none; }
.featured-card .fc-image {
  overflow: hidden;
  background: #111;
  align-self: start;
  aspect-ratio: 3 / 4;
  position: relative;
}
.featured-card .fc-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.featured-card:hover .fc-image img { transform: scale(1.04); }
.fc-image img { transition: transform 0.6s ease, opacity 0.2s ease; }
.fc-slide-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}
.fc-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  transition: background 0.2s;
}
.fc-dot.active { background: #fff; }
.featured-card .fc-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8px 0;
}
.featured-card .fc-meta {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 14px;
}
.featured-card .fc-title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.01em;
  margin-bottom: 20px;
}
.featured-card .fc-excerpt {
  font-size: 13.5px;
  line-height: 1.85;
  color: #444;
  margin-bottom: 24px;
}
.featured-card .fc-link {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  display: inline-block;
  color: var(--color-text);
}

/* ── News grid ── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px 32px;
}

.news-card {
  display: block;
  text-decoration: none;
  color: inherit;
}
.news-card:hover { text-decoration: none; }

.nc-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #1a1a1a;
  margin-bottom: 16px;
  position: relative;
}
.nc-image img,
.nc-image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
  display: block;
}
.news-card:hover .nc-image img,
.news-card:hover .nc-image video { transform: scale(1.05); }

/* Vimeo background embed in card */
.nc-image--vimeo {
  position: relative;
}
.nc-image--vimeo iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 137%;
  height: 100%;
  border: none;
  pointer-events: none;
}

/* Dark placeholder tile */
.nc-image.dark {
  display: flex;
  align-items: flex-end;
  padding: 16px 18px;
}
.nc-image.dark .dark-label {
  color: rgba(255,255,255,0.35);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-family: var(--font-sans);
}

.nc-meta {
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 7px;
}
.nc-title {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.35;
  margin-bottom: 9px;
  transition: opacity 0.2s;
}
.news-card:hover .nc-title { opacity: 0.65; }

.nc-excerpt {
  font-size: 12.5px;
  line-height: 1.75;
  color: #666;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================
   INNER PAGES — Shared container
   ============================================ */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 72px 40px 100px;
}

h2 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 1.3;
  margin-bottom: 16px;
}
h4 {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}
p {
  font-size: 14px;
  line-height: 1.85;
  color: #333;
  margin-bottom: 14px;
}
em { font-style: italic; color: var(--color-text-muted); }

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-main {
  min-height: calc(100vh - var(--header-height));
  background: url('images/1-4K.png') center center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
}
.about-card {
  background: #fff;
  max-width: 960px;
  width: 100%;
  padding: 48px 40px;
}
.about-card h2 { margin-top: 0; }
.bio {
  font-size: 14px;
  line-height: 1.85;
  color: #333;
  margin-bottom: 14px;
}
.bio:last-child { margin-bottom: 0; }
.reel-section { margin-top: 64px; }
.reel-section h2 { margin-bottom: 6px; }
.reel-section .subtitle {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 24px;
  font-style: italic;
}
.video-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ============================================
   LAUREL OVERLAY
   ============================================ */
.video-wrap {
  position: relative;
}
.laurel-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease;
}
.laurel-overlay img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.laurel-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

/* ============================================
   FILMS PAGE
   ============================================ */
.film-entry {
  margin-bottom: 80px;
  padding-bottom: 80px;
  border-bottom: 1px solid var(--color-border);
}
.film-entry:last-of-type { border-bottom: none; }
.film-entry .video-placeholder { margin: 22px 0; }

/* Recollection — portrait video + prints side by side */
.recollection-layout {
  aspect-ratio: 16 / 9;
  display: flex;
  gap: 14px;
  margin: 22px 0;
  background: #ffffff;
}
.recollection-layout video {
  height: 100%;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.recollection-prints {
  flex: 1;
  display: flex;
  flex-direction: row;
  gap: 14px;
  min-width: 0;
  background: #ffffff;
}
.recollection-prints img {
  flex: 1;
  height: 100%;
  min-width: 0;
  object-fit: cover;
  display: block;
}

/* Recollection stills grid — forced square crop */
.recollection-stills img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.video-embed {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 22px 0;
}
.video-embed iframe,
.video-embed video {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  object-fit: cover;
}

/* Images in a row — max 3 per row, edges align with content above */
.images-grid,
.film-images-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 14px;
}
.images-grid img,
.film-images-row img {
  width: 100%;
  height: auto;
  display: block;
}

/* 4-across */
.images-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 14px;
}
.images-grid-4 img {
  width: 100%;
  height: auto;
  display: block;
}

/* 5-across exception */
.images-grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 14px;
}
.images-grid-5 img {
  width: 100%;
  height: auto;
  display: block;
}

/* 2-across — same height, natural width */
.images-grid-2 {
  display: flex;
  gap: 14px;
  margin-top: 14px;
  align-items: flex-start;
}
.images-grid-2 img {
  height: 400px;
  width: auto;
  display: block;
}
.laurels-img {
  width: 100%;
  max-height: 110px;
  object-fit: contain;
  margin: 22px 0;
}
.film-images {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
  align-items: flex-start;
}
.imdb-link {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  margin: 8px 0 16px;
}

/* ============================================
   GRAPHIC DESIGN PAGE
   ============================================ */
.gd-page {
  padding: 72px 48px 100px;
}
.project-entry {
  display: grid;
  grid-template-columns: 40% 1fr;
  column-gap: 5%;
  row-gap: 0;
  align-items: start;
  margin-bottom: 100px;
  padding-bottom: 100px;
  border-bottom: 1px solid var(--color-border);
}
.project-entry:last-of-type { border-bottom: none; }
.project-info {
  position: sticky;
  top: calc(var(--header-height) + 32px);
}
.project-info h2 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 16px;
}
.project-visuals { min-width: 0; }
.project-hero { width: 100%; margin-bottom: 14px; }

/* Two-column equal grid — used for 2026 Starbucks image pairs */
.images-grid-2-cover {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.images-grid-2-cover img {
  width: 100%;
  height: auto;
  display: block;
}

/* Starbucks: left col = starbucks + filler, right col = mockup spanning both rows */
.starbucks-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.starbucks-grid img { width: 100%; display: block; }
.starbucks-grid img:nth-child(1) { grid-column: 1; grid-row: 1; height: auto; }
.starbucks-grid img:nth-child(2) { grid-column: 2; grid-row: 1 / 3; height: auto; }
.starbucks-grid img:nth-child(3) { grid-column: 1; grid-row: 2; height: 100%; object-fit: contain; }

/* Büke unified grid — 6 cols; images 1&2 span 3, rest span 2 */
.buke-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.buke-grid img {
  width: 100%;
  height: auto;
  display: block;
}
.buke-grid img:nth-child(1),
.buke-grid img:nth-child(2) { grid-column: span 3; }
.buke-grid img:nth-child(3),
.buke-grid img:nth-child(4),
.buke-grid img:nth-child(5),
.buke-grid img:nth-child(6),
.buke-grid img:nth-child(7),
.buke-grid img:nth-child(8) { grid-column: span 2; }

/* ============================================
   ILLUSTRATIONS PAGE
   ============================================ */
.illus-page {
  padding: 72px 48px 100px;
}
/* Brick / masonry layout via CSS columns */
.illus-grid {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.illus-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.illus-item {
  position: relative;
  position: relative;
  overflow: hidden;
}
/* Vignette overlay — fades edges like the text gradient */
.illus-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.14) 100%),
    radial-gradient(ellipse at center, transparent 60%, rgba(0,0,0,0.07) 100%);
  pointer-events: none;
  z-index: 1;
}
.illus-caption {
  z-index: 2;
}
.illus-item img {
  width: 100%;
  height: auto;
  display: block;
}
/* Text overlay on image */
.illus-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px 12px 12px;
  background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.55));
}
.illus-title {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
  letter-spacing: 0.03em;
}
.illus-year {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 400;
  color: rgba(255,255,255,0.75);
  margin-top: 2px;
  letter-spacing: 0.04em;
}

/* ============================================
   FOOTER / CONTACT
   ============================================ */
footer {
  background: var(--color-bg-alt, #f7f7f7);
  border-top: 1px solid var(--color-border);
  padding: 72px 48px 60px;
}
.footer-inner { max-width: var(--max-width); margin: 0 auto; }

footer h2 {
  font-family: var(--font-serif);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 400;
  margin-bottom: 36px;
}
.contact-form { max-width: 480px; margin-bottom: 52px; }
.contact-form input,
.contact-form textarea {
  display: block;
  width: 100%;
  border: none;
  border-bottom: 1px solid #ccc;
  padding: 11px 2px;
  background: transparent;
  font-size: 13px;
  font-family: inherit;
  margin-bottom: 22px;
  outline: none;
  color: var(--color-text);
  transition: border-color 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus { border-bottom-color: var(--color-text); }
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #bbb; }
.contact-form textarea { resize: none; height: 80px; }
.contact-form button {
  background: var(--color-text);
  color: #fff;
  border: none;
  padding: 13px 38px;
  font-size: 11px;
  font-family: inherit;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}
.contact-form button:hover { background: #444; }

.social-links { display: flex; gap: 14px; align-items: center; }
.social-links a img { width: 28px; height: 28px; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .featured-card { grid-template-columns: 1fr; gap: 24px; }
  .news-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 20px; }
  .hero-caption { padding: 12px 20px; }
  header { padding: 0 20px; }
  .news-page { padding: 48px 20px 80px; }
  footer { padding: 52px 20px 48px; }

  /* Graphic design: stack info + visuals vertically like films */
  .gd-page { padding: 48px 20px 80px; }
  .project-entry {
    grid-template-columns: 1fr;
    margin-bottom: 60px;
    padding-bottom: 60px;
  }
  .project-info { position: static; }
  .illus-grid { gap: 12px; }
  .illus-col { gap: 12px; }
  .illus-page { padding: 48px 20px 80px; }
}
@media (max-width: 560px) {
  header { height: auto; flex-direction: column; padding: 18px 20px; gap: 14px; }
  nav { gap: 18px; flex-wrap: wrap; justify-content: center; }
  .news-grid { grid-template-columns: 1fr; }
  .featured-card .fc-title { font-size: 22px; }
}
