/* Netfly paleti: mor-siyah zemin, pembe → turuncu vurgu, altın detay */
:root {
  --bg: #0a0519;
  --bg-2: #120a26;
  --surface: #17102a;
  --surface-2: #1f1636;
  --text: #f4effb;
  --muted: #a59bbd;
  --line: rgba(255, 255, 255, .08);
  --pink: #e8417e;
  --orange: #ff8a3d;
  --gold: #ffc94d;
  --purple: #7b2cbf;
  --grad: linear-gradient(120deg, var(--pink), var(--orange));
  --radius: 22px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(900px 600px at 15% -10%, rgba(123, 44, 191, .35), transparent 60%),
    radial-gradient(700px 500px at 95% 10%, rgba(232, 65, 126, .18), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font: 16px/1.6 Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: "Bricolage Grotesque", Inter, sans-serif; line-height: 1.1; margin: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(10, 5, 25, .7);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font: 800 20px "Bricolage Grotesque", sans-serif; }
.logo-mark {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px;
  background: var(--grad); color: #fff; font-size: 18px;
  box-shadow: 0 4px 16px rgba(232, 65, 126, .4);
}
.nav-links { display: flex; align-items: center; gap: 22px; font-weight: 500; font-size: 15px; color: var(--muted); }
.nav-links > a:not(.btn):hover { color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 600;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 28px rgba(232, 65, 126, .35); }
.btn-primary:hover { box-shadow: 0 10px 34px rgba(232, 65, 126, .5); }
.btn-ghost { border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .04); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); }
.btn-coffee { background: var(--gold); color: #1a0f05; }
.nav .btn-coffee { color: #1a0f05; }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-lg { padding: 16px 28px; font-size: 18px; white-space: nowrap; }

/* Hero */
.hero { padding: 96px 20px 64px; text-align: center; }
.eyebrow {
  display: inline-block; margin: 0 0 20px; padding: 6px 14px; border-radius: 999px;
  border: 1px solid rgba(232, 65, 126, .35); background: rgba(232, 65, 126, .08);
  color: #ff9cbf; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: 12px;
}
.hero h1 { font-size: clamp(40px, 7vw, 80px); font-weight: 800; letter-spacing: -.02em; }
.hl { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { max-width: 560px; margin: 22px auto 34px; color: var(--muted); font-size: 18px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.stats {
  list-style: none; padding: 20px 12px; margin: 56px auto 0; max-width: 620px;
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: rgba(255, 255, 255, .03); border: 1px solid var(--line); border-radius: var(--radius);
}
.stats li { color: var(--muted); font-size: 13px; display: flex; flex-direction: column; align-items: center; }
.stats li + li { border-left: 1px solid var(--line); }
.stats b { font: 800 30px "Bricolage Grotesque", sans-serif; color: var(--text); }

/* Sections */
.section { padding: 64px 20px; }
.section h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; padding: 5px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.chip {
  border: 0; cursor: pointer; font: 500 14px Inter, sans-serif;
  padding: 8px 16px; border-radius: 999px; background: transparent; color: var(--muted);
  transition: color .15s, background .15s;
}
.chip:hover { color: var(--text); }
.chip.active { background: var(--grad); color: #fff; }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.card {
  position: relative;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 65, 126, .35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .4), 0 0 0 1px rgba(232, 65, 126, .15);
}
.card[hidden] { display: none; }
.card-top { display: flex; gap: 16px; align-items: center; }
.app-icon {
  width: 64px; height: 64px; border-radius: 16px; flex: none;
  display: grid; place-items: center; font-size: 32px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15), 0 6px 18px rgba(0, 0, 0, .45);
  object-fit: cover;
}
.card h3 { font-size: 22px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.badge { font: 600 11px Inter, sans-serif; text-transform: uppercase; letter-spacing: .05em; padding: 3px 8px; border-radius: 6px; background: rgba(255, 201, 77, .14); color: var(--gold); }
.tagline { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.desc { margin: 16px 0 12px; font-size: 15px; color: #d6cfe6; }
.tags { list-style: none; padding: 0; margin: 0 0 20px; display: flex; gap: 6px; flex-wrap: wrap; }
.tags li { font-size: 12px; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .06); color: var(--muted); }
.dls { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; }
.dl {
  flex: 1 1 140px; display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 14px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); color: var(--text);
  transition: background .15s, border-color .15s;
}
.dl:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .2); }
.dl-android { background: rgba(61, 220, 132, .1); border-color: rgba(61, 220, 132, .3); }
.dl-android:hover { background: rgba(61, 220, 132, .18); border-color: rgba(61, 220, 132, .5); }
.dl-premiere { background: rgba(153, 153, 255, .1); border-color: rgba(153, 153, 255, .3); }
.dl-premiere:hover { background: rgba(153, 153, 255, .18); border-color: rgba(153, 153, 255, .5); }
.dl-web { background: rgba(47, 107, 255, .12); border-color: rgba(47, 107, 255, .35); }
.dl-web:hover { background: rgba(47, 107, 255, .2); border-color: rgba(47, 107, 255, .55); }
.dl-arrow { margin-left: auto; opacity: .6; flex: none; }
.dl:hover .dl-arrow { opacity: 1; }
.dl-text { display: flex; flex-direction: column; line-height: 1.2; }
.dl-text b { font-size: 15px; }
.dl-text small { font-size: 12px; color: var(--muted); }
.meta { margin: 14px 0 0; font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; }
.more { color: #ff9cbf; font-weight: 600; transition: transform .15s; }
.card:hover .more { transform: translateX(3px); }
/* Kartın tamamı detay sayfasına gider; indirme butonları üstte kalır */
.card-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card .dls { position: relative; z-index: 1; }

/* How-to */
.howto { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 28px; }
.howto-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.howto-card h3 { font-size: 19px; display: flex; gap: 8px; align-items: baseline; }
.howto-card h3 small { font: 500 13px Inter, sans-serif; color: var(--muted); }
.howto-card ol { margin: 14px 0 0; padding-left: 20px; color: var(--muted); font-size: 15px; }
.howto-card li { margin-bottom: 6px; }
.howto-card li::marker { color: var(--pink); font-weight: 700; }
.howto-card b { color: var(--text); font-weight: 600; }

/* Coffee */
.coffee {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  padding: 48px; border-radius: 28px;
  background:
    radial-gradient(500px 300px at 100% 100%, rgba(255, 201, 77, .22), transparent 70%),
    radial-gradient(500px 300px at 0% 0%, rgba(123, 44, 191, .45), transparent 70%),
    linear-gradient(135deg, #2a0f1e, #1b1030);
  border: 1px solid rgba(255, 201, 77, .2);
}
.coffee-text { max-width: 560px; }
.coffee p { margin: 12px 0 0; color: #d6cfe6; }
.coffee .btn-coffee { box-shadow: 0 10px 30px rgba(255, 201, 77, .3); }

/* ---------- Detay sayfası ---------- */
.detail-page {
  background:
    radial-gradient(800px 520px at 10% -5%, color-mix(in srgb, var(--app-glow, #7b2cbf) 38%, transparent), transparent 62%),
    radial-gradient(700px 500px at 95% 10%, rgba(123, 44, 191, .25), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
.detail-hero { padding-top: 32px; padding-bottom: 36px; }
.back { display: inline-block; color: var(--muted); font-size: 14px; font-weight: 500; margin-bottom: 28px; }
.back:hover { color: var(--text); }
.detail-head { display: flex; gap: 24px; align-items: center; }
.app-icon-lg { width: 112px; height: 112px; border-radius: 26px; font-size: 56px; }
.detail-title h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; letter-spacing: -.02em; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.detail-tagline { margin: 6px 0 12px; color: var(--muted); font-size: 18px; }
.detail-title .tags { margin: 0; }
.detail-dls { margin-top: 28px; max-width: 520px; }
.detail-hero .meta { display: block; }

.gallery { display: grid; gap: 12px; }
.shot-main {
  position: relative; display: block; width: 100%; padding: 0; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; background: #000; cursor: zoom-in;
  aspect-ratio: 16 / 10;
}
.shot-main img { width: 100%; height: 100%; object-fit: contain; display: block; }
/* Dikey görseller (ör. panel) önizlemede üstten kırpılır, büyütünce tamamı görünür */
.shot-main.tall img { object-fit: cover; object-position: top; width: 46%; margin: 0 auto; }
.shot-cap {
  position: absolute; left: 14px; bottom: 14px; padding: 6px 12px; border-radius: 999px;
  background: rgba(10, 5, 25, .75); backdrop-filter: blur(8px); color: var(--text); font-size: 13px;
}
.thumbs { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.15) transparent; }
.thumb {
  flex: none; width: 150px; aspect-ratio: 16 / 10; padding: 0; border-radius: 12px; overflow: hidden;
  border: 2px solid transparent; background: #000; cursor: pointer; opacity: .55; transition: opacity .15s, border-color .15s;
}
.thumb.tall { width: 60px; }
.thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.thumb:hover { opacity: .85; }
.thumb.active { opacity: 1; border-color: var(--pink); }
.gallery-empty {
  display: grid; place-items: center; gap: 16px; aspect-ratio: 16 / 7; border-radius: var(--radius);
  border: 1px dashed rgba(255, 255, 255, .15); background: rgba(255, 255, 255, .02); color: var(--muted);
}
.gallery-empty p { margin: 0; }
.empty-icon { width: 80px; height: 80px; border-radius: 20px; display: grid; place-items: center; font-size: 40px; opacity: .8; }

.detail-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; padding-top: 56px; padding-bottom: 24px; align-items: start; }
.detail-main h2 { font-size: 26px; font-weight: 800; margin: 40px 0 14px; }
.detail-main h2:first-child { margin-top: 0; }
.detail-main > p { color: #d6cfe6; font-size: 17px; margin: 0 0 14px; }
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.feature { padding: 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.feature h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; }
.changelog { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid rgba(232, 65, 126, .35); }
.changelog li { position: relative; padding: 0 0 18px 6px; }
.changelog li::before { content: ""; position: absolute; left: -26px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--pink); }
.changelog li:first-child::before { background: var(--grad); border-color: transparent; }
.cl-head { display: flex; gap: 10px; align-items: baseline; }
.cl-head span { color: var(--muted); font-size: 13px; }
.changelog p { margin: 2px 0 0; color: #d6cfe6; font-size: 15px; }

.detail-side { display: grid; gap: 16px; position: sticky; top: 84px; }
.side-card { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.side-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 12px; }
.info { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; font-size: 14px; }
.info dt { color: var(--muted); }
.info dd { margin: 0; text-align: right; }
.reqs { margin: 0; padding-left: 18px; color: #d6cfe6; font-size: 14px; }
.reqs li { margin-bottom: 6px; }
.reqs li::marker { color: var(--pink); }
.side-coffee {
  background:
    radial-gradient(300px 200px at 100% 100%, rgba(255, 201, 77, .2), transparent 70%),
    linear-gradient(135deg, #2a0f1e, #1b1030);
  border-color: rgba(255, 201, 77, .2);
}
.side-coffee p { margin: 0 0 16px; color: #d6cfe6; font-size: 14px; }

.mini-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-top: 20px; }
.mini {
  display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line); transition: border-color .15s, transform .15s;
}
.mini:hover { border-color: rgba(232, 65, 126, .35); transform: translateY(-2px); }
.app-icon-sm { width: 48px; height: 48px; border-radius: 12px; font-size: 24px; }
.mini span { display: flex; flex-direction: column; line-height: 1.3; }
.mini small { color: var(--muted); font-size: 13px; }
.notfound { text-align: center; padding: 120px 20px; }
.notfound h1 { font-size: 40px; margin-bottom: 12px; }

/* Gömülü web aracı */
.tool-stage {
  padding: 40px 16px; border-radius: var(--radius); border: 1px solid var(--line);
  background:
    radial-gradient(500px 300px at 50% 0%, rgba(47, 107, 255, .14), transparent 70%),
    radial-gradient(500px 300px at 50% 100%, rgba(255, 138, 61, .1), transparent 70%),
    rgba(255, 255, 255, .02);
}
#tool-frame { display: block; width: 100%; max-width: 420px; height: 820px; margin: 0 auto; border: 0; background: transparent; color-scheme: dark; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 24px; background: rgba(5, 2, 12, .92); backdrop-filter: blur(6px);
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(1400px, 100%); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 110px); border-radius: 12px; display: block; }
.lightbox figcaption { color: var(--muted); font-size: 14px; }
.lb-btn {
  flex: none; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .15);
  background: rgba(255, 255, 255, .06); color: var(--text); font-size: 26px; line-height: 1; cursor: pointer;
}
.lb-btn:hover { background: rgba(255, 255, 255, .14); }
.lb-close { position: absolute; top: 18px; right: 18px; font-size: 18px; }
.lightbox.single .lb-prev, .lightbox.single .lb-next { visibility: hidden; }

/* Dil seçici (TR | EN) */
.lang-switch { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.lang-switch button {
  font: inherit; font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--muted);
  background: none; border: 0; border-radius: 999px; padding: 4px 10px; cursor: pointer;
}
.lang-switch button:hover { color: var(--text); }
.lang-switch button.on { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 14px; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer p { margin: 0; }

@media (max-width: 640px) {
  .nav-links > a:not(.btn) { display: none; }
  .nav-links { gap: 10px; }
  .nav-links .btn { white-space: nowrap; }
  .hero { padding: 56px 16px 40px; }
  .wrap, .section { padding-left: 16px; padding-right: 16px; }
  .grid { grid-template-columns: 1fr; }
  .coffee { padding: 28px; }
  .stats b { font-size: 24px; }
  .filters { border-radius: 16px; }
  .detail-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .app-icon-lg { width: 88px; height: 88px; font-size: 44px; border-radius: 22px; }
  .thumb { width: 110px; }
  .lightbox { padding: 12px; gap: 0; }
  .lb-prev, .lb-next { position: absolute; bottom: 20px; }
  .lb-prev { left: calc(50% - 60px); }
  .lb-next { right: calc(50% - 60px); }
}
@media (max-width: 900px) {
  .detail-body { grid-template-columns: 1fr; }
  .detail-side { position: static; }
}
