/* ============================================================
   Luna Downloads — Light Silver Theme
   ============================================================ */

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

:root {
  --bg-page:        #f0f0f0;
  --bg-surface:     #ffffff;
  --bg-section:     #f5f5f5;
  --bg-dark:        #0a0a0a;
  --bg-preview:     #1a1a1a;
  --border:         #d8d8d8;
  --border-light:   #ececec;
  --text-primary:   #1a1a1a;
  --text-secondary: #6a6a6a;
  --text-muted:     #888;
  --text-faint:     #999;
  --accent:         #1a1a1a;
  --silver:         #c0c0c0;
  --font-sans:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:      'Ubuntu Mono', 'SF Mono', Consolas, monospace;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; transition: opacity .15s; }
a:hover { opacity: .65; }

/* NAV */
.site-nav {
  background: var(--bg-surface);
  padding: 18px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 0.5px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
.site-logo {
  display: flex; align-items: center; gap: 10px;
  color: var(--text-primary);
  font-weight: 500; font-size: 15px;
  letter-spacing: 1.8px;
}
.site-nav-links {
  display: flex; gap: 24px;
  font-size: 13px;
  color: var(--text-secondary);
}
.site-nav-links a.active {
  color: var(--text-primary);
  font-weight: 500;
}

/* HERO SLIDER */
.hero-slider {
  background: var(--bg-surface);
  border-bottom: 0.5px solid var(--border);
  padding: 56px 32px 36px;
  overflow: hidden;
}
.hero-slide {
  display: none;
  grid-template-columns: 320px 1fr;
  gap: 48px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  min-height: 240px;
}
.hero-slide.active { display: grid; }
.hero-preview {
  background: var(--bg-preview);
  border-radius: 10px;
  aspect-ratio: 4/3;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.preview-titlebar { display: flex; gap: 5px; margin-bottom: 6px; }
.preview-titledot { width: 7px; height: 7px; border-radius: 50%; background: #3a3a3a; }
.preview-line { height: 6px; border-radius: 2px; }
.preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 6px;
}
.preview-cell { background: #0d0d0d; border-radius: 4px; height: 32px; }

.hero-content h1 {
  font-size: 38px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.hero-content h1 .accent { color: var(--text-muted); }
.hero-content p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 22px;
  max-width: 520px;
}
.hero-cta-row {
  display: flex; align-items: center;
  flex-wrap: wrap; gap: 18px;
}
.hero-cta {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 11px 22px;
  border-radius: 6px;
  font-size: 12.5px;
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 1px;
  border: 0.5px solid var(--accent);
  transition: opacity .15s;
}
.hero-cta:hover { opacity: .85; }
.hero-cta.outline {
  background: transparent;
  color: var(--text-primary);
}
.hero-stat {
  color: var(--text-muted);
  font-size: 11.5px;
  font-family: var(--font-mono);
}
.hero-stat strong { color: var(--text-primary); font-weight: 500; }

.slide-dots {
  display: flex; gap: 8px;
  justify-content: center;
  margin-top: 32px;
}
.slide-dot {
  width: 32px; height: 3px;
  background: var(--border);
  border-radius: 1px;
  cursor: pointer;
  transition: background .2s;
  border: none;
  padding: 0;
}
.slide-dot.active { background: var(--accent); }
.slide-dot:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

/* SECTIONS */
.section-tag {
  text-align: center;
  color: var(--text-muted);
  font-size: 10.5px;
  letter-spacing: 3px;
  font-family: var(--font-mono);
  margin-bottom: 16px;
}
.section-title {
  text-align: center;
  font-size: 24px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 36px;
  letter-spacing: -0.01em;
}

/* PRODUCTS */
.products-section {
  background: var(--bg-section);
  padding: 56px 24px;
}
.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 1100px;
  margin: 0 auto;
}
.product-card {
  background: var(--bg-surface);
  border: 0.5px solid var(--border);
  border-radius: 12px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  min-height: 340px;
  transition: border-color .2s;
}
.product-card:hover { border-color: var(--text-muted); }
.product-card.coming {
  background: transparent;
  border: 0.5px dashed var(--silver);
}
.product-icon {
  width: 36px; height: 36px;
  background: var(--bg-page);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.product-name {
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 4px;
  letter-spacing: 0.3px;
}
.product-card.coming .product-name { color: var(--text-muted); }
.product-version {
  color: var(--text-muted);
  font-size: 10.5px;
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}
.product-desc {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}
.product-buttons {
  display: flex; gap: 6px;
  margin-bottom: 14px;
}
.product-btn {
  flex: 1;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  padding: 9px 8px;
  border-radius: 6px;
  text-align: center;
  font-family: var(--font-mono);
  letter-spacing: 0.6px;
  border: none;
  cursor: pointer;
  transition: opacity .15s;
}
.product-btn:hover { opacity: .85; }
.product-btn.disabled {
  background: #e0e0e0;
  color: var(--text-faint);
  cursor: not-allowed;
}
.download-count {
  text-align: center;
  color: var(--text-secondary);
  font-size: 11px;
  font-family: var(--font-mono);
  margin-bottom: 14px;
}
.download-count strong { color: var(--text-primary); font-weight: 500; }
.product-card.coming .download-count { color: var(--text-faint); }

.mirrors-label {
  color: var(--text-faint);
  font-size: 9.5px;
  font-family: var(--font-mono);
  letter-spacing: 1.5px;
  margin-bottom: 7px;
}
.mirrors-row { display: flex; flex-wrap: wrap; gap: 5px; }
.mirror-chip {
  background: var(--bg-surface);
  border: 0.5px solid var(--border);
  color: var(--text-secondary);
  font-size: 10px;
  padding: 5px 9px;
  border-radius: 4px;
  font-family: var(--font-mono);
  letter-spacing: 0.3px;
  transition: all .15s;
}
.mirror-chip:hover { border-color: var(--text-muted); color: var(--text-primary); }
.mirror-chip.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* BLOG TEASER */
.blog-section {
  background: var(--bg-surface);
  padding: 64px 24px;
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}
.blog-card {
  background: var(--bg-surface);
  border: 0.5px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color .2s, transform .2s;
}
.blog-card:hover {
  border-color: var(--text-muted);
  transform: translateY(-2px);
}
.blog-thumb {
  background: var(--bg-page);
  height: 140px;
  display: flex; align-items: center; justify-content: center;
  border-bottom: 0.5px solid var(--border);
}
.blog-body { padding: 16px 18px; }
.blog-cat {
  color: var(--text-muted);
  font-size: 10px;
  letter-spacing: 1.5px;
  font-family: var(--font-mono);
  margin-bottom: 8px;
}
.blog-title {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  margin-bottom: 10px;
}
.blog-meta {
  color: var(--text-faint);
  font-size: 10.5px;
  font-family: var(--font-mono);
}
.blog-empty {
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  padding: 40px 0;
  font-style: italic;
}
.blog-all {
  text-align: center;
  margin-top: 32px;
}
.blog-all a {
  color: var(--text-primary);
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: 1px;
  border-bottom: 0.5px solid var(--text-primary);
  padding-bottom: 2px;
}

/* MANIFESTO */
.manifesto {
  padding: 72px 32px;
  text-align: center;
  background: var(--bg-dark);
}
.manifesto-tag {
  color: var(--text-faint);
  font-size: 10.5px;
  letter-spacing: 3px;
  margin-bottom: 20px;
  font-family: var(--font-mono);
}
.manifesto h2 {
  font-size: 28px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.4;
  letter-spacing: -0.01em;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.manifesto p {
  color: var(--text-faint);
  font-size: 14px;
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.75;
}

/* CHANGELOG */
.changelog {
  background: var(--bg-section);
  padding: 40px 32px;
}
.changelog-inner { max-width: 900px; margin: 0 auto; }
.changelog-title {
  color: var(--text-secondary);
  font-size: 11px;
  letter-spacing: 2.5px;
  margin-bottom: 16px;
  font-family: var(--font-mono);
}
.changelog-row {
  display: flex; gap: 16px;
  padding: 11px 0;
  font-size: 13px;
  border-bottom: 0.5px solid var(--border-light);
}
.changelog-row:last-child { border-bottom: none; }
.changelog-date {
  color: var(--text-muted);
  font-family: var(--font-mono);
  min-width: 100px;
  font-size: 11px;
}
.changelog-tag {
  color: var(--text-primary);
  font-family: var(--font-mono);
  min-width: 90px;
  font-size: 11px;
  font-weight: 500;
}
.changelog-text { color: var(--text-secondary); flex: 1; }
.changelog-empty {
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
  padding: 24px 0;
}

/* FOOTER */
.site-footer {
  background: var(--bg-surface);
  padding: 28px 32px;
  border-top: 0.5px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 16px;
}
.footer-links { display: flex; gap: 20px; color: var(--text-secondary); }

/* RESPONSIVE */
@media (max-width: 720px) {
  .site-nav { padding: 14px 18px; }
  .site-nav-links { gap: 14px; font-size: 12px; }
  .hero-slider { padding: 36px 18px 24px; }
  .hero-slide { grid-template-columns: 1fr; gap: 24px; min-height: auto; }
  .hero-preview { max-width: 280px; margin: 0 auto; }
  .hero-content h1 { font-size: 28px; }
  .products-section, .blog-section { padding: 40px 16px; }
  .products, .blog-grid { grid-template-columns: 1fr; gap: 12px; }
  .product-card { min-height: auto; }
  .manifesto { padding: 48px 22px; }
  .manifesto h2 { font-size: 22px; }
  .changelog { padding: 28px 18px; }
  .changelog-row { flex-direction: column; gap: 4px; }
  .changelog-date, .changelog-tag { min-width: auto; }
  .site-footer { padding: 20px 18px; flex-direction: column; text-align: center; }
}

/* PHASE 4.7 — IMAGE OVERRIDES */
.hero-preview-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}
.hero-preview:has(.hero-preview-image) {
  padding: 0;
  background: var(--bg-page-soft);
}
.hero-slide.has-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}
.hero-slide.has-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.92) 0%, rgba(255,255,255,.78) 60%, rgba(255,255,255,.55) 100%);
  pointer-events: none;
  border-radius: inherit;
}
.hero-slide.has-bg > * { position: relative; z-index: 1; }
.product-icon-image {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}

/* ============================================================
   PHASE 4.7 — ASYMMETRIC HERO (Stil A: Linear/Notion benzeri)
   Bu blok önceki .hero-slide / .hero-preview kurallarını
   override eder. Sandbox'ta test edildi, mockup'a sadık kalır.
   ============================================================ */

.hero-slider {
  padding: 0;            /* Slider artık iç padding'siz, slide kendi padding'ini yönetir */
}

.hero-slide {
  grid-template-columns: 38% 62%;   /* Sol metin, sağ görsel — asymmetric */
  gap: 0;                            /* Görsel slide kenarına dayalı */
  max-width: 1200px;
  min-height: 380px;                 /* Daha büyük, profesyonel hava */
  align-items: stretch;              /* Görsel slide yüksekliğini doldurur */
  padding: 0;
  position: relative;
}

.hero-content {
  padding: 56px 32px 56px 56px;      /* Sol panelde nefes */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Görsel paneli — sağ %62, full-bleed */
.hero-preview {
  aspect-ratio: auto;                /* Sabit oran kalktı */
  height: 100%;
  padding: 0;
  border-radius: 0;
  background: var(--bg-page-soft);   /* Görsel yokken zarif boş alan */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

/* Default mockup frame'i (görsel yokken) — biraz daha küçük, ortada */
.hero-preview .preview-titlebar,
.hero-preview .preview-line,
.hero-preview .preview-grid {
  /* Wrap default frame'i bir flex container'a sığdırmak için */
}
.hero-preview > .preview-titlebar:first-child {
  /* Default frame varsa flex'e geç */
}

/* Default frame container — sadece görsel yokken görünür */
.hero-preview:not(:has(.hero-preview-image)) {
  flex-direction: column;
  gap: 8px;
  padding: 32px 40px;
  background: var(--bg-preview);
  margin: 24px;
  border-radius: 10px;
  height: calc(100% - 48px);
  align-items: stretch;
  justify-content: flex-start;
}

/* Yüklenmiş görsel — full bleed */
.hero-preview-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;        /* Slide kenarına dayalı, köşe yok */
  display: block;
}

/* Slide'ın sağ tarafında soft gölge (sayfa zeminine geçiş) */
.hero-slide::after {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 80px;
  background: linear-gradient(to right, transparent, rgba(0,0,0,0.03));
  pointer-events: none;
  z-index: 1;
}

/* Mobile: dikey stack */
@media (max-width: 720px) {
  .hero-slide {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero-content {
    padding: 32px 24px 16px;
    order: 2;
  }
  .hero-preview {
    order: 1;
    height: 220px;
    width: 100%;
  }
  .hero-preview:not(:has(.hero-preview-image)) {
    margin: 16px;
    height: 200px;
  }
  .hero-slide::after { display: none; }
}

/* Slider dot indicators — slide içine yerleştir */
.hero-slider .slider-dots {
  position: absolute;
  bottom: 20px;
  left: 56px;
  z-index: 2;
}
@media (max-width: 720px) {
  .hero-slider .slider-dots {
    position: static;
    margin: 16px auto;
    justify-content: center;
    display: flex;
  }
}


.windows-warning-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  border-bottom: 0.5px dotted var(--text-muted);
  margin-left: 8px;
  padding-bottom: 1px;
  transition: color .15s, border-color .15s;
}
.windows-warning-link:hover {
  color: var(--text-primary);
  border-bottom-color: var(--text-primary);
}
