/* ==========================================================================
   ONCALLALERT - INTERACTIVE SIMULATOR MODULE
   Interactive live incident command deck & hardware phone mockup
   LOC: ~230 lines (Max target <= 500)
   ========================================================================== */

.hero-deck-wrapper {
  max-width: 1040px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg), var(--shadow-cyan);
  overflow: hidden;
  position: relative;
  text-align: left;
}

.deck-header {
  background: rgba(10, 14, 24, 0.9);
  padding: 0.9rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.deck-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.deck-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

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

.deck-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: 8px;
}

.deck-live-badge {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--success);
  font-size: 0.68rem;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.deck-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(10, 14, 22, 0.6);
  padding: 4px;
  border-radius: var(--radius-sm);
}

.deck-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.deck-tab-btn.active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.deck-body {
  padding: 1.8rem;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1.8rem;
}

/* Incident Card Preview */
.incident-card-preview {
  background: rgba(12, 16, 26, 0.8);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.1);
}

.incident-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}

.incident-badge-p1 {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid var(--danger);
  color: var(--danger);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.05em;
}

.incident-time {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.incident-heading {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.incident-source {
  font-size: 0.82rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 1.2rem;
}

.incident-timeline {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 1.4rem;
  position: relative;
  padding-left: 1.2rem;
}

.incident-timeline::before {
  content: '';
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 4px;
  width: 2px;
  background: rgba(255, 255, 255, 0.1);
}

.timeline-step {
  position: relative;
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.timeline-step::before {
  content: '';
  position: absolute;
  left: -1.2rem;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
}

.timeline-step.alerted::before {
  background: var(--danger);
  box-shadow: 0 0 8px var(--danger);
}

.incident-actions-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-ack {
  flex: 1;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--success);
  color: var(--success);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-ack:hover {
  background: var(--success);
  color: #07090e;
}

.btn-escalate {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* Phone Mockup in Simulator */
.deck-phone-col {
  background: rgba(10, 14, 24, 0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.phone-col-header {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dnd-badge {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
  font-size: 0.68rem;
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 700;
}

.phone-screen-mini {
  background: #020408;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  position: relative;
  overflow: hidden;
}

.phone-screen-mini::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ff4757, #00f2fe);
}

.phone-avatar-pulse {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.3), rgba(0, 242, 254, 0.2));
  border: 2px solid var(--danger);
  margin: 0 auto 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.phone-incoming-txt {
  font-size: 0.72rem;
  color: var(--danger);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.phone-caller-name {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

.phone-call-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}

.phone-buttons-pair {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.phone-btn-mini {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease;
}

.phone-btn-mini:hover { transform: scale(1.1); }
.phone-btn-mini.decline { background: #ef4444; color: white; }
.phone-btn-mini.accept { background: #10b981; color: white; }

.phone-notes {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.5;
  text-align: center;
}
