:root {
  --bg: #f5f6f8;
  --card: #ffffff;
  --text: #1a1d26;
  --muted: #5c6068;
  --accent: #9e2a2e;
  --gold: #e8b82e;
  --divider: #eeeeee;
  --shadow-soft: 0 2px 8px rgba(15, 23, 42, 0.06);
  /* iPhone güvenli alan dışında görünen boşluklar banner tonu (beyaz şerit olmasın) */
  --edge-fill: #121620;
}

* {
  box-sizing: border-box;
}

/* Koyu body = içerikten kısa sayfada “siyah bant”; mobilde tamamı beyaz zemin */
html {
  height: 100%;
  color-scheme: light;
  /* Tek renk: gradient alt bölümde mavi-gri blok yaratıyordu */
  background-color: var(--bg);
  overscroll-behavior-y: none;
}

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  background-color: var(--bg);
  color: var(--text);
  overscroll-behavior-y: none;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

/* Sabit banner: viewport (0,0); negatif top bazı iOS sürümlerinde çift kayma yapıyor */
.hero-banner-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 0;
  pointer-events: none;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  /* Orijinal banner yüksekliği (~248px içerik + güvenli alan + padding) */
  height: calc(300px + env(safe-area-inset-top, 0px));
  background-color: #3d4a5c;
  background-image:
    linear-gradient(180deg, rgba(12, 20, 35, 0.1) 20%, rgba(12, 20, 35, 0.78) 100%),
    url("./assets/banner.JPEG");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

.app {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: none;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  margin: 0;
  background: transparent;
  border-radius: 0;
  overflow-x: hidden;
  box-shadow: none;
}

@media (min-width: 480px) {
  .hero-banner-bg {
    display: none;
  }

  html {
    background-color: transparent;
    background-image: none;
    height: 100%;
  }

  body {
    background: radial-gradient(circle at top, #101b35 0%, #060810 50%, #03040a 100%);
    padding: 20px 0;
    display: grid;
    place-items: center;
    min-height: 100vh;
  }

  .app {
    width: min(430px, 100vw);
    max-width: 430px;
    margin: 0 auto;
    min-height: 840px;
    min-height: min(840px, 90vh);
    background: var(--bg);
    border-radius: 32px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  .hero {
    margin-top: 0;
    padding: 50px 20px 22px;
    background-color: var(--edge-fill);
    background-image:
      linear-gradient(180deg, rgba(12, 20, 35, 0.1) 20%, rgba(12, 20, 35, 0.78) 100%),
      url("./assets/banner.JPEG");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }

  .hero-content {
    padding-top: 0;
  }

  .list-wrapper {
    flex: 1 1 auto;
    padding: 16px 24px 24px;
  }
}

/* Mobil: banner .hero üzerinde (scroll ile gider); masaüstü kartta .hero kendi bg’si */
/* Banner görseli: assets/banner.JPEG — öneri 1200×675 veya 1200×800 px, yatay */
.hero {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  min-height: 248px;
  margin: 0;
  padding: calc(50px + env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-right, 0px)) 22px
    max(20px, env(safe-area-inset-left, 0px));
}

@media (max-width: 479px) {
  /* Sabit banner yok: örnek siteler gibi hero sayfayla birlikte kayar */
  .hero-banner-bg {
    display: none;
  }

  /* Alt boşluk + Safari alt çubuğu arkası: tam beyaz (gri --bg şerit olmasın) */
  html {
    background-color: #ffffff;
  }

  body {
    background-color: #ffffff;
    min-height: 100dvh;
    min-height: 100svh;
  }

  .app {
    flex: 1 1 auto;
    min-height: 100dvh;
    min-height: 100svh;
    background-color: #ffffff;
  }

  .list-wrapper {
    flex: 1 1 0;
    min-height: 0;
    background-color: #ffffff;
  }

  .hero {
    background-color: var(--edge-fill);
    background-image:
      linear-gradient(180deg, rgba(12, 20, 35, 0.1) 20%, rgba(12, 20, 35, 0.78) 100%),
      url("./assets/banner.JPEG");
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
  }
}

.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(13, 13, 14, 0.12), rgba(13, 13, 14, 0.12));
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
}

.hero-content p {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.hero-content .hero-lead {
  color: var(--gold);
  font-weight: 600;
}

.hero-content .hero-subline {
  margin: 12px 0 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.hero-content h1 {
  margin: 0;
  font-size: 23px;
  line-height: 1.28;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.hero-content h1 span {
  display: inline;
  color: var(--gold);
  font-weight: 700;
  font-size: 24px;
}

.list-wrapper {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  min-height: 0;
  align-self: stretch;
  background: #fff;
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  margin-top: -28px;
  padding: 16px max(20px, env(safe-area-inset-right, 0px))
    max(28px, calc(16px + env(safe-area-inset-bottom, 0px))) max(20px, env(safe-area-inset-left, 0px));
  box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.1);
}

.project-card {
  background: var(--card);
  display: grid;
  grid-template-columns: 118px 1fr auto;
  gap: 10px;
  align-items: stretch;
  padding: 12px 14px;
  margin: 0 0 12px;
  border-radius: 16px;
  border: 1px solid #e8ecf2;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

a.project-card {
  text-decoration: none;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

.project-card:last-child {
  margin-bottom: 0;
}

.project-thumb {
  width: 118px;
  height: 100px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: var(--shadow-soft);
}

.project-content {
  min-width: 0;
}

.project-content h2 {
  margin: 0 0 8px;
  padding-bottom: 7px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--text);
  border-bottom: 1px solid var(--divider);
}

.meta {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
}

.meta:last-of-type {
  margin-bottom: 0;
}

.meta-icon {
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--accent);
}

.arrow {
  align-self: center;
  color: var(--accent);
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
  padding-right: 0;
}

@media (max-width: 390px) {
  .hero-content h1 {
    font-size: 21px;
  }

  .hero-content h1 span {
    font-size: 22px;
  }

  .project-card {
    grid-template-columns: 104px 1fr auto;
    padding: 10px 12px;
  }

  .project-thumb {
    width: 104px;
    height: 90px;
  }

  .project-content h2 {
    font-size: 13px;
  }

  .meta {
    font-size: 12.5px;
  }
}
