/* =========================================================
   TRT Hero Visual — Device Mockup Styles
   ========================================================= */

:root {
  --trt-bg: #0d2818;
  --trt-surface: #133a24;
  --trt-green: #4ADE80;
  --trt-text-body: #8faa9a;
  --trt-text-dim: #5a7a6a;
  --trt-border: rgba(74,222,128,0.1);
}

.trt-hero-visual-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
}

.trt-hero-visual-wrap .device-group {
  position: relative;
  width: 480px;
  height: 380px;
  opacity: 0;
}

/* ─── Desktop ────────────────────────────────────────── */
.trt-hero-visual-wrap .device-desktop {
  position: absolute;
  top: 0;
  left: 0;
  width: 380px;
  height: 260px;
  background: #1a3a28;
  border-radius: 12px;
  border: 2px solid rgba(74,222,128,0.15);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.trt-hero-visual-wrap .device-desktop .title-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(0,0,0,0.3);
  border-bottom: 1px solid rgba(74,222,128,0.08);
}

.trt-hero-visual-wrap .title-bar .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(74,222,128,0.25);
}

.trt-hero-visual-wrap .device-desktop .code-area {
  padding: 14px 16px;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 11px;
  line-height: 1.7;
  color: var(--trt-text-body);
  overflow: hidden;
}

.trt-hero-visual-wrap .code-line {
  opacity: 0;
  transform: translateX(-10px);
  white-space: nowrap;
}

.trt-hero-visual-wrap .code-line .keyword { color: #c792ea; }
.trt-hero-visual-wrap .code-line .func    { color: #82aaff; }
.trt-hero-visual-wrap .code-line .string  { color: #c3e88d; }
.trt-hero-visual-wrap .code-line .comment { color: #546e7a; font-style: italic; }
.trt-hero-visual-wrap .code-line .attr    { color: #ffcb6b; }
.trt-hero-visual-wrap .code-line .green   { color: var(--trt-green); }
.trt-hero-visual-wrap .code-line .bracket { color: #89ddff; }

/* ─── Tablet ─────────────────────────────────────────── */
.trt-hero-visual-wrap .device-tablet {
  position: absolute;
  bottom: 10px;
  right: 40px;
  width: 180px;
  height: 230px;
  background: #1a3a28;
  border-radius: 10px;
  border: 2px solid rgba(74,222,128,0.15);
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
  z-index: 2;
}

.trt-hero-visual-wrap .device-tablet .tab-bar {
  padding: 8px 10px;
  background: rgba(0,0,0,0.3);
  border-bottom: 1px solid rgba(74,222,128,0.08);
  display: flex;
  align-items: center;
  gap: 4px;
}

.trt-hero-visual-wrap .tab-bar .dot-sm {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(74,222,128,0.2);
}

.trt-hero-visual-wrap .device-tablet .tab-content {
  padding: 12px;
}

.trt-hero-visual-wrap .tab-line {
  height: 6px;
  border-radius: 3px;
  margin-bottom: 8px;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
}

/* ─── Mobile ─────────────────────────────────────────── */
.trt-hero-visual-wrap .device-mobile {
  position: absolute;
  bottom: 20px;
  right: 0;
  width: 100px;
  height: 170px;
  background: #1a3a28;
  border-radius: 12px;
  border: 2px solid rgba(74,222,128,0.15);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
  z-index: 3;
}

.trt-hero-visual-wrap .device-mobile .mob-bar {
  padding: 6px 8px;
  background: rgba(0,0,0,0.3);
  height: 20px;
}

.trt-hero-visual-wrap .device-mobile .mob-content {
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.trt-hero-visual-wrap .mob-block {
  border-radius: 4px;
  opacity: 0;
  transform: scale(0.8);
}

/* ─── Cursor blink ───────────────────────────────────── */
.trt-hero-visual-wrap .cursor-blink {
  display: inline-block;
  width: 7px;
  height: 14px;
  background: var(--trt-green);
  margin-left: 2px;
  vertical-align: middle;
  animation: trtVBlink 1s step-end infinite;
}

@keyframes trtVBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ─── Responsive ─────────────────────────────────────── */
@media (max-width: 768px) {
  .trt-hero-visual-wrap .device-group {
    transform: scale(0.7);
    transform-origin: top center;
  }
}

@media (max-width: 480px) {
  .trt-hero-visual-wrap .device-group {
    transform: scale(0.55);
  }
}
