/* ==========================================================================
   DersTeders - Cihaz Mockup Bileseni (mockups.css)
   Gercek arayuz ekran goruntulerini laptop / telefon / tablet cerceveleri
   icinde perspektifli (3D) bicimde gosterir. Acik ve koyu tema ile uyumludur.
   Bagimlilik yoktur; tum renkler sayfa degiskenlerinden turetilir.
   ========================================================================== */

/* WebP <picture> sarmalayicisi kutup olusturmasin; img dogrudan yerlesir */
picture { display: contents; }

.dt-showcase {
  /* Tema degiskenleri (fallback'ler ile guvenli) */
  --dt-ink: var(--ink, #12333D);
  --dt-soft: var(--ink-soft, var(--muted, #5B6B70));
  --dt-surface-2: var(--surface-2, #F4F0E8);
  --dt-border: var(--border, #E7E0D2);
  --dt-accent: var(--accent, #0F6B7C);
  --dt-accent-light: var(--accent-light, rgba(15, 107, 124, .08));
  --dt-accent-border: var(--accent-border, rgba(15, 107, 124, .2));
  --dt-body-1: #33474F;
  --dt-body-2: #0A1418;
  --dt-glow: rgba(15, 107, 124, .28);
  --dt-grid-opacity: .35;

  position: relative;
  padding: 84px 0 96px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(1100px 460px at 50% -8%, var(--dt-accent-light), transparent 62%),
    var(--dt-surface-2);
}

[data-theme="dark"] .dt-showcase {
  --dt-glow: rgba(42, 163, 184, .3);
  --dt-grid-opacity: .18;
}

/* --- Baslik bloku --- */
.dt-showcase-head {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}
.dt-showcase-tag {
  display: inline-block;
  padding: 6px 15px;
  margin-bottom: 14px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dt-accent);
  background: var(--dt-accent-light);
  border: 1px solid var(--dt-accent-border);
  border-radius: 999px;
}
.dt-showcase-title {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--dt-ink);
}
.dt-showcase-desc {
  margin: 0;
  font-size: .98rem;
  line-height: 1.7;
  color: var(--dt-soft);
}

/* --- Sahne (perspektif) --- */
.dt-stage {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(300px, 42vw, 540px);
  padding: 0 4%;
  perspective: 2200px;
  perspective-origin: 50% 45%;
}

/* Dekoratif arka plan izgarasi ve isik */
.dt-grid,
.dt-glow {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}
.dt-grid {
  inset: -12% -6%;
  background-image:
    linear-gradient(var(--dt-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--dt-border) 1px, transparent 1px);
  background-size: 46px 46px;
  opacity: var(--dt-grid-opacity);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 22%, transparent 70%);
  mask-image: radial-gradient(ellipse at center, #000 22%, transparent 70%);
}
.dt-glow {
  left: 50%;
  top: 52%;
  width: min(780px, 88%);
  aspect-ratio: 1.6;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, var(--dt-glow), transparent 66%);
  filter: blur(30px);
}

/* --- Ortak animasyon (yumusak yuzme) --- */
@keyframes dt-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-16px); }
}
.dt-phone { animation-delay: -2.6s; }
.dt-tablet { animation-delay: -1.4s; }
.dt-laptop, .dt-phone, .dt-tablet { animation: dt-float 9s ease-in-out infinite; }

/* ==========================================================================
   LAPTOP / MONITOR
   ========================================================================== */
.dt-laptop {
  position: relative;
  width: min(680px, 80%);
  z-index: 2;
}
.dt-laptop-inner {
  transform-style: preserve-3d;
  transform: rotateX(7deg) rotateY(-15deg) rotateZ(.6deg);
}
.dt-laptop-lid {
  position: relative;
  padding: 15px 15px 24px;
  border-radius: 16px;
  background: linear-gradient(155deg, var(--dt-body-1) 0%, #16262C 42%, var(--dt-body-2) 100%);
  border: 1px solid rgba(255, 255, 255, .09);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .18),
    inset 0 -1px 0 rgba(0, 0, 0, .6),
    0 42px 70px -30px rgba(0, 0, 0, .65),
    0 18px 36px -22px rgba(0, 0, 0, .5);
}
.dt-laptop-lid::before {
  content: "";
  position: absolute;
  inset: 15px 15px 24px;
  border-radius: 8px;
  background: #050b0e;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05);
}
.dt-laptop-cam {
  position: absolute;
  top: 5px;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle at 35% 35%, #3B5158, #0A1418);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
  z-index: 3;
}
.dt-laptop-screen {
  position: relative;
  z-index: 1;
  aspect-ratio: 16 / 10;
  border-radius: 7px;
  overflow: hidden;
  background: #0B1B20;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.dt-laptop-screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.dt-laptop-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(255, 255, 255, .14), transparent 34%);
  opacity: .5;
  mix-blend-mode: screen;
  pointer-events: none;
}
.dt-laptop-base {
  position: relative;
  width: 114%;
  height: 14px;
  margin-left: -7%;
  border-radius: 0 0 16px 16px;
  background: linear-gradient(180deg, #2C3F46, #111E23 60%, #070F12);
  box-shadow: 0 26px 40px -24px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .16);
}
.dt-laptop-base::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 16%;
  height: 5px;
  border-radius: 0 0 10px 10px;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, .55);
}
.dt-laptop-base::after {
  content: "";
  position: absolute;
  left: 3%;
  right: 3%;
  top: 2px;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .12), transparent);
}

/* ==========================================================================
   TELEFON
   ========================================================================== */
.dt-phone {
  position: absolute;
  right: 2%;
  bottom: 3%;
  width: min(205px, 23%);
  z-index: 4;
}
.dt-phone-inner {
  transform-style: preserve-3d;
  transform: rotateY(-16deg) rotateX(4deg) rotateZ(-4deg);
}
.dt-phone-body {
  position: relative;
  padding: 7px;
  border-radius: 32px;
  background: linear-gradient(155deg, var(--dt-body-1), var(--dt-body-2) 72%);
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .2),
    0 30px 50px -22px rgba(0, 0, 0, .7),
    0 10px 24px -14px rgba(0, 0, 0, .5);
}
.dt-phone-screen {
  position: relative;
  aspect-ratio: 9 / 19.5;
  border-radius: 26px;
  overflow: hidden;
  background: #0B1B20;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.dt-phone-screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.dt-phone-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, .16), transparent 32%);
  opacity: .45;
  mix-blend-mode: screen;
  pointer-events: none;
}
.dt-phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  width: 34%;
  height: 15px;
  border-radius: 8px;
  transform: translateX(-50%);
  background: #070F12;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05);
  z-index: 3;
}
.dt-phone-notch::after {
  content: "";
  position: absolute;
  right: 14%;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: #16262C;
}
.dt-phone-bar {
  position: absolute;
  left: 50%;
  bottom: 14px;
  width: 34%;
  height: 4px;
  border-radius: 99px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, .35);
  z-index: 3;
}

/* Sol tarafta telefon varyanti (aynali) */
.dt-stage-reverse .dt-phone {
  right: auto;
  left: 2%;
}
.dt-stage-reverse .dt-phone-inner {
  transform: rotateY(16deg) rotateX(4deg) rotateZ(4deg);
}
.dt-stage-reverse .dt-laptop-inner {
  transform: rotateX(7deg) rotateY(15deg) rotateZ(-.6deg);
}

/* ==========================================================================
   TABLET
   ========================================================================== */
.dt-tablet {
  position: relative;
  width: min(600px, 74%);
  z-index: 2;
}
.dt-tablet-inner {
  transform-style: preserve-3d;
  transform: rotateX(6deg) rotateY(-13deg);
}
.dt-tablet-body {
  position: relative;
  padding: 14px;
  border-radius: 26px;
  background: linear-gradient(155deg, var(--dt-body-1), var(--dt-body-2) 72%);
  border: 1px solid rgba(255, 255, 255, .09);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .18),
    0 36px 64px -28px rgba(0, 0, 0, .65),
    0 16px 30px -20px rgba(0, 0, 0, .5);
}
.dt-tablet-screen {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  background: #0B1B20;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.dt-tablet-screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.dt-tablet-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, .13), transparent 32%);
  opacity: .4;
  mix-blend-mode: screen;
  pointer-events: none;
}
.dt-tablet-cam {
  position: absolute;
  top: 50%;
  left: 5px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: #16262C;
  z-index: 3;
}

/* ==========================================================================
   OZELLIK LISTESI (isteğe bagli baslik yani icerik)
   ========================================================================== */
.dt-feature-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 860px;
  margin: 56px auto 0;
}
.dt-feature {
  padding: 20px 22px;
  background: var(--surface, #fff);
  border: 1px solid var(--dt-border);
  border-radius: 16px;
  text-align: left;
}
.dt-feature strong {
  display: block;
  margin-bottom: 5px;
  font-size: .95rem;
  color: var(--dt-ink);
}
.dt-feature span {
  font-size: .84rem;
  line-height: 1.55;
  color: var(--dt-soft);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
  .dt-showcase { padding: 64px 0 72px; }
  .dt-showcase-head { margin-bottom: 40px; }

  .dt-stage {
    display: block;
    min-height: 0;
    padding: 0;
    perspective: 1400px;
  }
  .dt-laptop,
  .dt-tablet {
    width: min(520px, 100%);
    margin: 0 auto;
  }
  .dt-laptop-inner,
  .dt-stage-reverse .dt-laptop-inner { transform: rotateX(4deg) rotateY(-8deg); }
  .dt-tablet-inner { transform: rotateX(4deg) rotateY(-7deg); }

  .dt-phone {
    position: relative;
    right: auto;
    left: auto;
    bottom: auto;
    width: min(180px, 46%);
    margin: -7% auto 0;
  }
  .dt-phone-inner,
  .dt-stage-reverse .dt-phone-inner { transform: rotateY(-8deg) rotateZ(-3deg); }

  .dt-feature-row { grid-template-columns: 1fr; margin-top: 40px; }
}

@media (max-width: 520px) {
  .dt-showcase { padding: 52px 0 60px; }
  .dt-laptop-lid { padding: 10px 10px 18px; border-radius: 12px; }
  .dt-laptop-lid::before { inset: 10px 10px 18px; }
  .dt-laptop-base { height: 11px; }
  .dt-phone { width: 52%; margin-top: -9%; }
  .dt-tablet-body { padding: 10px; border-radius: 18px; }
  .dt-tablet-screen { border-radius: 10px; }
}

/* Hareket azaltma tercihi */
@media (prefers-reduced-motion: reduce) {
  .dt-laptop,
  .dt-phone,
  .dt-tablet { animation: none !important; }
}
