/* ==========================================================================
   SHADOW-CORE OMNIPOTENCE — COMPONENTS & INTERACTIVE UI
   Website: Shadow-Core.org | ABN: 89 308 438 634
   ========================================================================== */

/* --- Product Showcase Cards --- */
.product-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.product-card-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.product-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
  overflow: hidden;
  padding: 8px;
}

.product-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* HushNote Placeholder Icon (Waveform Graphic) */
.hushnote-placeholder-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  height: 100%;
}

.hushnote-bar {
  width: 4px;
  background: var(--amber-glow);
  border-radius: 2px;
  animation: wave-bar-pulse 1.4s infinite ease-in-out;
}

.hushnote-bar:nth-child(1) { height: 16px; animation-delay: 0.1s; }
.hushnote-bar:nth-child(2) { height: 28px; animation-delay: 0.3s; }
.hushnote-bar:nth-child(3) { height: 20px; animation-delay: 0.2s; }
.hushnote-bar:nth-child(4) { height: 32px; animation-delay: 0.4s; }
.hushnote-bar:nth-child(5) { height: 18px; animation-delay: 0.15s; }

@keyframes wave-bar-pulse {
  0%, 100% { transform: scaleY(0.7); opacity: 0.6; }
  50% { transform: scaleY(1.3); opacity: 1; }
}

.product-card-body {
  flex-grow: 1;
}

.product-card-body h3 {
  margin-bottom: 0.6rem;
}

.product-features {
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.product-features li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: var(--text-main);
}

.product-features li svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.product-card-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* --- Interactive Terminal / ScriptWeaver Game Master Demo --- */
.terminal-window {
  background: #080b09;
  border: 1px solid var(--border-emerald);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85), 0 0 30px rgba(18, 180, 110, 0.15);
  overflow: hidden;
  font-family: 'JetBrains Mono', monospace;
}

.terminal-header {
  background: #0d1210;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.terminal-title {
  font-size: 0.8rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

.terminal-body {
  padding: 1.5rem;
  min-height: 280px;
  max-height: 420px;
  overflow-y: auto;
  font-size: 0.9rem;
  line-height: 1.7;
}

.script-scene {
  background: rgba(18, 180, 110, 0.05);
  border-left: 3px solid var(--emerald-glow);
  padding: 1rem 1.25rem;
  margin: 1rem 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  animation: fadeIn 0.4s ease forwards;
}

.scene-heading {
  font-weight: 700;
  color: var(--emerald-glow);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.character-name {
  color: var(--cyan-glow);
  font-weight: 700;
  margin-top: 0.5rem;
}

.dialogue-text {
  color: #ffffff;
  padding-left: 1rem;
}

.terminal-controls {
  padding: 1rem 1.5rem;
  background: rgba(13, 18, 16, 0.8);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* --- Interactive Shadow Orb HUD Demo --- */
.hud-window {
  background: rgba(8, 12, 10, 0.9);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85), 0 0 30px rgba(0, 242, 254, 0.15);
}

.orb-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 0;
  position: relative;
}

.glowing-orb {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffffff 0%, var(--cyan-glow) 35%, #0072ff 75%, #050706 100%);
  box-shadow: 0 0 40px var(--cyan-glow), inset 0 0 20px rgba(255, 255, 255, 0.8);
  animation: pulse-glow 3s infinite ease-in-out;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  z-index: 2;
}

.glowing-orb:hover {
  transform: scale(1.12);
}

.orb-ring {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 220px; height: 220px;
  border: 1px dashed rgba(0, 242, 254, 0.35);
  border-radius: 50%;
  animation: rotate-ring 20s linear infinite;
  pointer-events: none;
}

@keyframes rotate-ring {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.hud-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.metric-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 1rem;
  text-align: center;
}

.metric-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--cyan-glow);
}

.metric-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-top: 0.25rem;
}

/* --- Interactive HushNote Waveform Visualizer --- */
.hushnote-visualizer {
  background: rgba(13, 18, 16, 0.7);
  border: 1px solid var(--border-amber);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85), 0 0 30px rgba(255, 179, 0, 0.15);
}

.waveform-canvas-box {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.4);
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
}

.live-bar {
  width: 6px;
  background: var(--amber-glow);
  border-radius: 3px;
  transition: height 0.15s ease;
}

/* --- Comparison Table --- */
.comparison-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--glass-bg);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.comparison-table th, .comparison-table td {
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.comparison-table th {
  background: rgba(255, 255, 255, 0.03);
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  color: var(--text-pure);
}

.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table td:first-child { font-weight: 600; color: var(--text-pure); }
.check-icon { color: var(--emerald-glow); font-weight: 800; font-size: 1.2rem; }
.cross-icon { color: #ff5f56; font-weight: 800; font-size: 1.2rem; }

/* --- Microsoft Store Modal --- */
.modal-backdrop {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(5, 7, 6, 0.85);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.modal-box {
  background: #0d1210;
  border: 1px solid var(--border-emerald);
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  padding: 2.5rem;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-backdrop.open .modal-box {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1.25rem; right: 1.25rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}
