/* ============================================================
   SELFIE DUVARI — NET ÇİZGİLİ, PİKSEL KUSURSUZ 1000 KARE IZGARA SİSTEMİ
   Her satır ve her sütun çizgisi net ve belirgindir.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Space+Grotesk:wght@600;700;800&family=JetBrains+Mono:wght@500;600;700&display=swap');

:root {
  --bg-main: #FFFFFF;
  --bg-subtle: #F8FAFC;
  --bg-dark: #0F172A;

  --border-light: #E2E8F0;
  --border-strong: #94A3B8;
  --border-dark: #0F172A;

  --text-main: #0F172A;
  --text-secondary: #475569;
  --text-muted: #94A3B8;

  --accent-emerald: #10B981;
  --accent-amber: #F59E0B;
  --accent-blue: #2563EB;
  --accent-pink: #EC4899;

  --radius-xs: 2px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-full: 9999px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
  --shadow-modal: 0 20px 40px -5px rgba(0, 0, 0, 0.25);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   1. SADELEŞTİRİLMİŞ MODERN NAVBAR
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 44px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
}

.navbar-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.5px;
  color: var(--text-main);
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.brand-title:hover {
  opacity: 0.8;
}

/* ============================================================
   2. 1000 KARELİK NET ÇİZGİLİ SAHNE (100vh)
   ============================================================ */
.wall-fit-viewport {
  height: calc(100vh - 44px);
  height: calc(100dvh - 44px);
  width: 100vw;
  display: flex;
  flex-direction: column;
  background: #F1F5F9;
  padding: 4px 8px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-light);
}

.grid-stage {
  flex: 1;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 0;
}

/* 1000 Kare Izgara Çerçevesi (Net Izgara Çizgileri) */
.grid-canvas-fit {
  display: grid;
  grid-template-columns: repeat(var(--cols, 50), var(--cell-size, 24px));
  grid-template-rows: repeat(var(--rows, 20), var(--cell-size, 24px));
  gap: 1px;
  background: #94A3B8; /* Her kare arasındaki net dikey ve yatay çizgiler */
  padding: 1px;
  border: 1.5px solid #64748B; /* Belirgin dış çerçeve */
  border-radius: 4px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  margin: auto;
  width: fit-content;
  height: fit-content;
}

/* 1000 Hücre */
.cell {
  position: relative;
  width: var(--cell-size, 24px);
  height: var(--cell-size, 24px);
  box-sizing: border-box;
  cursor: pointer;
  overflow: hidden;
  background: #FFFFFF;
  border: 0.5px solid rgba(203, 213, 225, 0.6); /* Hücre içi net sınır */
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.15s ease, outline 0.1s ease;
  user-select: none;
}

/* Hover Çerçeve Vurgusu */
@media (hover: hover) {
  .cell:hover {
    z-index: 20;
    outline: 2px solid var(--text-main);
  }
}

/* Tıklanma / Aktif Seçim Durumu */
.cell:active,
.cell.selected-zoom {
  z-index: 50;
  transform: scale(3.5);
  border-radius: 3px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 0 2px var(--text-main);
}

@media (max-width: 640px) {
  .cell:active,
  .cell.selected-zoom {
    transform: scale(2.8);
  }
}

/* Boş Hücre */
.cell.empty {
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cell.empty::after {
  content: '';
  width: 2.5px;
  height: 2.5px;
  border-radius: 50%;
  background: #94A3B8; /* Belirgin merkez noktası */
}

.cell.empty:hover {
  background: #F8FAFC;
}

.cell.empty:hover::after {
  background: var(--text-main);
  width: 4px;
  height: 4px;
}

/* Rezerve Hücre */
.cell.reserved {
  background: #FEF3C7;
  cursor: not-allowed;
}

/* Canlı Fotoğraf Hücresi */
.cell.live img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Hedef Vurgusu */
.cell.highlight-target {
  animation: cellFlash 1.8s infinite ease-in-out;
  z-index: 60 !important;
}

@keyframes cellFlash {
  0%, 100% { box-shadow: 0 0 0 2px var(--text-main), 0 8px 20px rgba(0,0,0,0.4); transform: scale(3); }
  50% { box-shadow: 0 0 0 3px var(--accent-blue), 0 12px 28px rgba(37,99,235,0.5); transform: scale(3.8); }
}

/* Alt Çubuk */
.viewport-bottom-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 2px;
  flex-shrink: 0;
  height: 22px;
}

.scroll-guide-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #FFFFFF;
  border: 1px solid var(--border-strong);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  transition: all 0.15s ease;
}

.scroll-guide-btn:hover {
  color: var(--text-main);
  border-color: var(--border-dark);
}

/* ============================================================
   3. AŞAĞIDA KALAN DETAY BÖLÜMLERİ
   ============================================================ */
.content-section {
  padding: 50px 0;
  border-bottom: 1px solid var(--border-light);
}

.content-section.alt-bg {
  background: var(--bg-subtle);
}

.section-wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (max-width: 640px) {
  .content-section {
    padding: 36px 0;
  }
  .section-wrap {
    padding: 0 16px;
  }
}

.section-head {
  text-align: center;
  margin-bottom: 32px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-main);
}

.section-head p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: 4px;
}

@media (max-width: 640px) {
  .section-head {
    margin-bottom: 24px;
  }
  .section-head h2 {
    font-size: 22px;
  }
  .section-head p {
    font-size: 13px;
  }
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 768px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }
}

.step-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.step-number {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  background: var(--text-main);
  color: #FFFFFF;
  width: 26px;
  height: 26px;
  border-radius: var(--radius-xs);
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}

.step-card h3 {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 6px;
}

.step-card p {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.5;
}

/* Telemetry Grid */
.telemetry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

@media (max-width: 768px) {
  .telemetry-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .telemetry-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
}

.telemetry-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  box-shadow: var(--shadow-sm);
}

.telemetry-card .t-val {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 800;
  color: var(--text-main);
}

.telemetry-card .t-lbl {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 2px;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
}

.faq-item h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}

.faq-item p {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.5;
}

/* Inspector Tooltip */
.inspector-tooltip {
  position: fixed;
  pointer-events: none;
  z-index: 100;
  background: var(--text-main);
  color: #FFFFFF;
  padding: 6px 12px;
  border-radius: var(--radius-xs);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translate(-50%, -130%);
  opacity: 0;
  transition: opacity 0.1s ease, transform 0.1s ease;
  font-size: 12px;
}

.inspector-tooltip.visible { opacity: 1; }
.inspector-id { font-family: var(--font-mono); font-weight: 700; color: #CBD5E1; }
.inspector-badge { font-size: 10px; font-weight: 700; text-transform: uppercase; padding: 2px 6px; border-radius: 2px; }
.inspector-badge.empty { background: rgba(255,255,255,0.2); color: #FFF; }
.inspector-badge.live { background: var(--accent-emerald); color: #064E3B; }
.inspector-badge.reserved { background: var(--accent-amber); color: #78350F; }

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  z-index: 100;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  max-height: 90dvh;
  overflow-y: auto;
  padding: 24px 20px;
  position: relative;
  box-shadow: var(--shadow-modal);
  transform: translateY(14px) scale(0.97);
  transition: transform 0.2s ease;
}

.modal-backdrop.active .modal-dialog {
  transform: translateY(0) scale(1);
}

.btn-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-subtle);
  border: 0;
  color: var(--text-secondary);
  font-size: 18px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.btn-close:hover {
  background: var(--border-light);
  color: var(--text-main);
}

.form-group {
  margin-bottom: 12px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.input-control {
  width: 100%;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  padding: 9px 12px;
  font-size: 13px;
  font-family: var(--font-sans);
}

.input-control:focus {
  outline: none;
  background: #FFFFFF;
  border-color: var(--text-main);
}

.dropzone-box {
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 18px;
  text-align: center;
  background: var(--bg-subtle);
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.dropzone-box:hover {
  background: #FFFFFF;
  border-color: var(--text-main);
}

.dropzone-box input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.btn-pill-dark {
  background: var(--text-main);
  color: #FFFFFF;
  border: 1px solid var(--text-main);
  padding: 9px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
  text-decoration: none;
}

.btn-pill-dark:hover {
  background: #27272A;
  transform: translateY(-1px);
}

.btn-pill-light {
  background: #FFFFFF;
  color: var(--text-main);
  border: 1px solid var(--border-strong);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.btn-pill-light:hover {
  background: var(--bg-subtle);
  border-color: var(--text-main);
}

.spotlight-media {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-light);
  margin-bottom: 14px;
}

.spotlight-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.toast-shelf {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

@media (max-width: 640px) {
  .toast-shelf {
    left: 20px;
    right: 20px;
    bottom: 16px;
  }
}

.toast-pill {
  background: var(--text-main);
  color: #FFFFFF;
  padding: 9px 16px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
}

.site-footer {
  border-top: 1px solid var(--border-light);
  padding: 20px 0;
  background: #FFFFFF;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--text-secondary);
}

.footer-inner a {
  color: var(--text-main);
  font-weight: 600;
  text-decoration: none;
}

.footer-inner a:hover {
  text-decoration: underline;
}

.hidden { display: none !important; }
.w-full { width: 100%; }
