/* ============================================
   PRODUCT DETAIL PAGES
   ============================================ */

.brand-text {
  background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 60%, white));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.product-hero {
  padding: 96px 0 60px;
}
.product-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 36px;
}
.product-breadcrumb a { color: var(--text-muted); transition: color 0.2s; }
.product-breadcrumb a:hover { color: var(--brand); }

.product-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 900px) {
  .product-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .product-hero { padding: 120px 0 40px; }
}

.product-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 10px;
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent);
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--brand);
  margin-bottom: 24px;
}
.product-badge img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  border-radius: 6px;
}

.product-hero-text h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 60px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 24px;
}

.product-tagline {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 36px;
}

.product-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.product-cta .btn-primary {
  background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 70%, black));
  color: white;
  box-shadow: 0 8px 32px color-mix(in srgb, var(--brand) 30%, transparent);
}
.product-cta .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px color-mix(in srgb, var(--brand) 50%, transparent);
}

.product-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.product-meta b { color: var(--text); font-weight: 600; }

.product-hero-visual {
  position: relative;
  perspective: 1400px;
  padding: 40px 30px 100px;
}

/* ===== Device Mockups ===== */
.device-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 0.85;
}

/* Laptop */
.device-laptop {
  position: relative;
  width: 100%;
  z-index: 1;
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.45))
          drop-shadow(0 0 30px color-mix(in srgb, var(--brand) 25%, transparent));
}
.device-laptop .screen {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #e8ebf0;
  border: 9px solid #cfd6e2;
  border-bottom-width: 14px;
  border-radius: 14px 14px 4px 4px;
  overflow: hidden;
}
.device-laptop .screen::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: #b6bdcb;
  border-radius: 0 0 8px 8px;
  z-index: 2;
}
.device-laptop .screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  background: #fff;
}
.device-laptop .base {
  position: relative;
  width: 110%;
  margin-left: -5%;
  height: 14px;
  background: linear-gradient(180deg, #e2e6ee 0%, #c3cad6 50%, #a9b2c2 100%);
  border-radius: 0 0 16px 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}
.device-laptop .base::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 18%;
  height: 6px;
  background: linear-gradient(180deg, #aeb6c5, #c3cad6);
  border-radius: 0 0 8px 8px;
}

/* Tablet — sağ üst */
.device-tablet {
  position: absolute;
  top: 0;
  right: -4%;
  width: 32%;
  z-index: 3;
  transform: rotate(8deg);
  filter: drop-shadow(0 20px 35px rgba(0, 0, 0, 0.5))
          drop-shadow(0 0 20px color-mix(in srgb, var(--brand) 30%, transparent));
}
.device-tablet .frame {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  background: #e8ebf0;
  border: 7px solid #cfd6e2;
  border-radius: 18px;
  overflow: hidden;
}
.device-tablet .frame::after {
  content: '';
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 22px;
  background: #aeb6c5;
  border-radius: 2px;
}
.device-tablet .frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Phone — sol alt */
.device-phone {
  position: absolute;
  bottom: 0;
  left: -2%;
  width: 19%;
  z-index: 4;
  transform: rotate(-7deg);
  filter: drop-shadow(0 22px 36px rgba(0, 0, 0, 0.55))
          drop-shadow(0 0 18px color-mix(in srgb, var(--brand) 35%, transparent));
}
.device-phone .frame {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 19;
  background: #e8ebf0;
  border: 6px solid #cfd6e2;
  border-radius: 24px;
  overflow: hidden;
}
.device-phone .frame::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 38%;
  height: 14px;
  background: #b6bdcb;
  border-radius: 0 0 10px 10px;
  z-index: 2;
}
.device-phone .frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Placeholder content */
.device-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: color-mix(in srgb, var(--brand) 70%, white);
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--brand) 20%, #0a0e1a) 0%,
    #0a0e1a 100%);
  text-align: center;
  padding: 16px;
}
.device-placeholder .material-symbols-rounded {
  font-size: 32px;
  opacity: 0.6;
}
.device-placeholder span { font-size: 10px; opacity: 0.7; }
.device-laptop .screen img + .device-placeholder,
.device-tablet .frame img + .device-placeholder,
.device-phone .frame img + .device-placeholder { display: none; }
.device-laptop .screen.no-img .device-placeholder,
.device-tablet .frame.no-img .device-placeholder,
.device-phone .frame.no-img .device-placeholder { display: flex; }
.device-laptop .screen.no-img img,
.device-tablet .frame.no-img img,
.device-phone .frame.no-img img { display: none; }

/* Light mode tweaks for devices — KOYU çerçeve (beyaz arka planda görünsün) */
:root[data-theme="light"] .device-laptop .screen,
:root[data-theme="light"] .device-tablet .frame,
:root[data-theme="light"] .device-phone .frame {
  background: #1a1f2e;
  border-color: #0a0e1a;
}
:root[data-theme="light"] .device-laptop .screen::before { background: #0a0e1a; }
:root[data-theme="light"] .device-laptop .base {
  background: linear-gradient(180deg, #2a3142 0%, #1a1f2e 50%, #0a0e1a 100%);
}
:root[data-theme="light"] .device-laptop .base::before {
  background: linear-gradient(180deg, #0a0e1a, #1a1f2e);
}
:root[data-theme="light"] .device-tablet .frame::after { background: #2a3142; }
:root[data-theme="light"] .device-phone .frame::before { background: #0a0e1a; }

/* Light mode drop-shadow — daha hafif (gri arka planda kontrast yeterli) */
:root[data-theme="light"] .device-laptop,
:root[data-theme="light"] .device-tablet,
:root[data-theme="light"] .device-phone {
  filter: drop-shadow(0 18px 30px rgba(15, 23, 42, 0.18))
          drop-shadow(0 0 18px color-mix(in srgb, var(--brand) 18%, transparent));
}

@media (max-width: 900px) {
  .product-hero-visual { padding: 30px 20px 70px; }
  .device-tablet { width: 30%; right: -2%; }
  .device-phone { width: 22%; left: 0; }
}

.product-metrics {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.01);
}
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px;
  text-align: center;
}
.metric-value {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--brand);
  line-height: 1;
  margin-bottom: 6px;
}
.metric-label {
  font-size: 12px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 500;
}

.product-features-section { padding: 100px 0; }

.features-grid-products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.prod-feature {
  padding: 32px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s ease;
}
.prod-feature:hover {
  background: color-mix(in srgb, var(--brand) 4%, var(--bg-1));
  border-color: color-mix(in srgb, var(--brand) 30%, var(--border));
  transform: translateY(-4px);
}
.prod-feature-icon {
  width: 52px;
  height: 52px;
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--brand);
}
.prod-feature-icon .material-symbols-rounded { font-size: 26px; }
.prod-feature h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}
.prod-feature p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

.product-gallery { padding: 100px 0; background: rgba(255,255,255,0.01); }
.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}
.screenshot-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-1);
  aspect-ratio: 16 / 10;
  cursor: pointer;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.screenshot-card:hover {
  transform: scale(1.02);
  border-color: var(--brand);
}
.screenshot-card img { width: 100%; height: 100%; object-fit: cover; }
.screenshot-empty {
  padding: 60px 24px;
  text-align: center;
  color: var(--text-muted);
  grid-column: 1 / -1;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
}
.screenshot-empty .material-symbols-rounded {
  font-size: 48px;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.product-architecture { padding: 100px 0; }
.arch-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.arch-item {
  padding: 22px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}
.arch-item:hover { border-color: var(--brand); }
.arch-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--brand);
  margin-bottom: 8px;
  text-transform: uppercase;
}
.arch-item h4 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}
.arch-item p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 4, 12, 0.95);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  cursor: zoom-out;
}
.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
