/* ==========================================================================
   webdesigner.la — Google Mirror Dimension Interactive Lab (/google-mirror-dimension)
   Theme: Slate Obsidian & Icy Blue | Mobile-First | WCAG 2.1 AA High-Contrast
   ========================================================================== */

.wd-mirror-root {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 1rem 0 2.5rem;
  box-sizing: border-box;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #e2e8f0;
}

.wd-mirror-root *,
.wd-mirror-root *::before,
.wd-mirror-root *::after {
  box-sizing: border-box;
}

/* Hero Banner */
.wd-mirror-hero {
  position: relative;
  overflow: hidden;
  padding: 1.75rem 1.25rem;
  border-radius: 18px;
  background: radial-gradient(circle at 85% 15%, rgba(56, 189, 248, 0.16), transparent 52%),
              linear-gradient(145deg, rgba(15, 23, 42, 0.96) 0%, rgba(22, 32, 53, 0.94) 100%);
  border: 1px solid rgba(56, 189, 248, 0.28);
  box-shadow: 0 20px 48px rgba(2, 6, 23, 0.55);
  margin-bottom: 1.75rem;
}

.wd-mirror-eyebrow-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.95rem;
}

.wd-mirror-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  background: rgba(56, 189, 248, 0.14);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.38);
}

.wd-mirror-badge.is-emerald {
  background: rgba(16, 185, 129, 0.14);
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.38);
}

.wd-mirror-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
  animation: wdMirrorPulse 2.2s infinite;
}

@keyframes wdMirrorPulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.wd-mirror-title {
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  margin: 0 0 0.9rem;
  letter-spacing: -0.02em;
}

.wd-mirror-lead {
  font-size: 1.05rem;
  line-height: 1.68;
  color: #e2e8f0;
  margin: 0 0 1.4rem;
  max-width: 74ch;
}

.wd-mirror-kpi-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.wd-mirror-kpi-card {
  padding: 1rem 1.1rem;
  border-radius: 12px;
  background: rgba(9, 14, 26, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.wd-mirror-kpi-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  margin-bottom: 0.3rem;
}

.wd-mirror-kpi-val {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
}

.wd-mirror-kpi-val.is-cyan { color: #38bdf8; }
.wd-mirror-kpi-val.is-emerald { color: #34d399; }
.wd-mirror-kpi-val.is-amber { color: #fbbf24; }

.wd-mirror-kpi-sub {
  display: block;
  font-size: 0.82rem;
  color: #cbd5e1;
  margin-top: 0.2rem;
}

/* Interactive Sandbox Studio */
.wd-mirror-studio {
  padding: 1.35rem 1.15rem;
  border-radius: 18px;
  background: rgba(11, 17, 32, 0.92);
  border: 1px solid rgba(56, 189, 248, 0.26);
  margin-bottom: 2rem;
  box-shadow: 0 16px 40px rgba(2, 6, 23, 0.5);
}

.wd-mirror-studio-header {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding-bottom: 1.15rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.wd-mirror-section-kicker {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #38bdf8;
  margin-bottom: 0.25rem;
}

.wd-mirror-section-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.3rem, 2.6vw, 1.75rem);
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.wd-mirror-mode-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.wd-mirror-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.6rem 1.05rem;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(30, 41, 59, 0.75);
  color: #f8fafc;
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
}

.wd-mirror-btn:hover {
  background: rgba(51, 65, 85, 0.9);
  border-color: #38bdf8;
}

.wd-mirror-btn.is-active {
  background: #38bdf8;
  color: #0f172a;
  border-color: #38bdf8;
}

.wd-mirror-btn.is-danger-active {
  background: #dc2626;
  color: #ffffff;
  border-color: #f87171;
}

.wd-mirror-btn.is-primary {
  background: #0284c7;
  color: #ffffff;
  border-color: #38bdf8;
}

.wd-mirror-btn.is-primary:hover {
  background: #0369a1;
}

.wd-mirror-sim-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
}

.wd-mirror-panel {
  padding: 1.15rem;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.wd-mirror-panel-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.75rem;
}

.wd-mirror-scenario-tabs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.wd-mirror-tab {
  min-height: 44px;
  padding: 0.6rem 0.85rem;
  border-radius: 9px;
  text-align: left;
  font-size: 0.86rem;
  font-weight: 600;
  background: rgba(9, 14, 26, 0.75);
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.2);
  cursor: pointer;
}

.wd-mirror-tab.is-selected {
  background: rgba(56, 189, 248, 0.16);
  color: #ffffff;
  border-color: #38bdf8;
}

.wd-mirror-browser-chrome {
  border-radius: 12px;
  overflow: hidden;
  background: #070b14;
  border: 1px solid rgba(56, 189, 248, 0.28);
  margin-bottom: 0.9rem;
}

.wd-mirror-url-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.6rem 0.85rem;
  background: #111827;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  font-family: monospace;
  font-size: 0.82rem;
  color: #38bdf8;
  word-break: break-all;
}

.wd-mirror-route-pill {
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
}

.wd-mirror-route-pill.is-unprotected {
  background: rgba(239, 68, 68, 0.22);
  color: #fca5a5;
}

.wd-mirror-viewport-body {
  padding: 1rem;
}

.wd-mirror-step-line {
  font-size: 0.92rem;
  color: #f1f5f9;
  margin: 0 0 0.65rem;
  line-height: 1.55;
}

.wd-mirror-trace-log {
  padding: 0.75rem;
  border-radius: 8px;
  background: #0b1324;
  border: 1px solid rgba(56, 189, 248, 0.18);
  font-family: monospace;
  font-size: 0.79rem;
  line-height: 1.55;
  color: #cbd5e1;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.wd-mirror-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.85rem;
}

/* Red-Team Prompt Injection Controls */
.wd-mirror-toggle-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.wd-mirror-check-row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  min-height: 44px;
  padding: 0.6rem 0.8rem;
  border-radius: 9px;
  background: rgba(9, 14, 26, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.18);
  cursor: pointer;
}

.wd-mirror-check-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 0.15rem;
  accent-color: #38bdf8;
  flex-shrink: 0;
}

.wd-mirror-check-title {
  display: block;
  font-size: 0.87rem;
  font-weight: 700;
  color: #ffffff;
}

.wd-mirror-check-desc {
  display: block;
  font-size: 0.79rem;
  color: #cbd5e1;
  margin-top: 0.15rem;
}

.wd-mirror-verdict-box {
  padding: 0.95rem 1rem;
  border-radius: 10px;
  background: rgba(6, 40, 30, 0.72);
  border: 1px solid rgba(52, 211, 153, 0.45);
}

.wd-mirror-verdict-box.is-compromised {
  background: rgba(69, 10, 10, 0.78);
  border-color: rgba(248, 113, 113, 0.55);
}

.wd-mirror-verdict-heading {
  display: block;
  font-size: 0.88rem;
  font-weight: 800;
  color: #34d399;
  margin-bottom: 0.3rem;
}

.wd-mirror-verdict-box.is-compromised .wd-mirror-verdict-heading {
  color: #fca5a5;
}

.wd-mirror-verdict-detail {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.5;
  color: #f1f5f9;
}

.wd-mirror-meter-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.wd-mirror-meter-cell {
  padding: 0.65rem 0.8rem;
  border-radius: 8px;
  background: #070b14;
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.wd-mirror-meter-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
}

.wd-mirror-meter-num {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: #38bdf8;
}

/* Editorial Content & Diagram */
.wd-mirror-figure {
  margin: 0 0 2rem;
  border-radius: 16px;
  overflow: hidden;
  background: #0b1120;
  border: 1px solid rgba(56, 189, 248, 0.24);
}

.wd-mirror-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.wd-mirror-figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.82rem;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.9);
  border-top: 1px solid rgba(148, 163, 184, 0.15);
}

.wd-mirror-article-section {
  padding: 1.4rem 1.2rem;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 1.5rem;
}

.wd-mirror-article-section h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: #60a5fa;
  margin: 0 0 0.85rem;
}

.wd-mirror-article-section h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
  color: #ffffff;
  margin: 1.2rem 0 0.5rem;
}

.wd-mirror-article-section p,
.wd-mirror-article-section li {
  font-size: 0.98rem;
  line-height: 1.72;
  color: #e2e8f0;
}

.wd-mirror-article-section ul {
  padding-left: 1.25rem;
  margin: 0.65rem 0;
}

.wd-mirror-article-section li {
  margin-bottom: 0.5rem;
}

.wd-mirror-article-section code {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  padding: 0.15rem 0.42rem;
  border-radius: 5px;
  font-size: 0.88em;
  white-space: nowrap;
}

.wd-mirror-cards-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.95rem;
  margin-top: 1rem;
}

.wd-mirror-feature-card {
  padding: 1.1rem;
  border-radius: 12px;
  background: rgba(9, 14, 26, 0.75);
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.wd-mirror-feature-card h3 {
  margin-top: 0;
  color: #ffffff;
}

/* Responsive Data Table (Mobile Stacked Cards -> Desktop Full Table) */
.wd-mirror-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 1.1rem 0 0;
}

.wd-mirror-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.wd-mirror-table th {
  text-align: left;
  padding: 0.85rem 1rem;
  background: rgba(30, 41, 59, 0.92);
  color: #ffffff;
  font-weight: 700;
  border-bottom: 2px solid rgba(56, 189, 248, 0.3);
}

.wd-mirror-table td {
  padding: 0.85rem 1rem;
  color: #e2e8f0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  vertical-align: top;
}

@media (max-width: 767px) {
  .wd-mirror-table thead {
    display: none;
  }
  .wd-mirror-table tbody tr {
    display: flex;
    flex-direction: column;
    padding: 0.85rem;
    margin-bottom: 0.75rem;
    border-radius: 10px;
    background: rgba(9, 14, 26, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.18);
  }
  .wd-mirror-table td {
    padding: 0.3rem 0;
    border-bottom: none;
  }
  .wd-mirror-table td:first-child {
    font-weight: 700;
    color: #38bdf8;
    font-size: 0.98rem;
    margin-bottom: 0.2rem;
  }
}

.wd-mirror-cta-banner {
  padding: 1.5rem 1.35rem;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(14, 116, 144, 0.28) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid rgba(56, 189, 248, 0.35);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.wd-mirror-cta-banner h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  color: #ffffff;
  margin: 0 0 0.35rem;
}

.wd-mirror-cta-banner p {
  margin: 0;
  color: #e2e8f0;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .wd-mirror-hero {
    padding: 2.25rem 2rem;
  }
  .wd-mirror-studio {
    padding: 1.75rem;
  }
  .wd-mirror-studio-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .wd-mirror-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .wd-mirror-scenario-tabs {
    grid-template-columns: repeat(2, 1fr);
  }
  .wd-mirror-cards-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .wd-mirror-cta-banner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 1100px) {
  .wd-mirror-kpi-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .wd-mirror-sim-grid {
    grid-template-columns: 1.12fr 0.88fr;
  }
}
