/* ============================================
   PHONE — Notification system
   Hidden until first message arrives
   ============================================ */

/* ── Phone icon (bottom-left corner) ── */
.phone-icon {
  position: fixed;
  bottom: 170px;
  left: 16px;
  width: 48px;
  height: 48px;
  background: var(--bg-secondary);
  border: 2px solid var(--accent-main);
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 105;
  font-size: 22px;
  transition: box-shadow 0.2s, transform 0.1s;
}

.phone-icon--visible {
  display: flex;
}

.phone-icon:hover {
  box-shadow: 0 0 14px rgba(122, 182, 72, 0.3);
}

.phone-icon:active {
  transform: scale(0.93);
}

.phone-icon--buzz {
  animation: phone-buzz 0.4s ease 3;
}

@keyframes phone-buzz {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-3px) rotate(-2deg); }
  40% { transform: translateX(3px) rotate(2deg); }
  60% { transform: translateX(-2px) rotate(-1deg); }
  80% { transform: translateX(2px) rotate(1deg); }
}

/* Badge */
.phone-icon__badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 20px;
  height: 20px;
  background: var(--accent-danger);
  color: #fff;
  font-size: 11px;
  font-weight: bold;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Courier New', monospace;
}

/* ── Notification — slide-in card, not full-screen overlay ── */
.phone-notification {
  position: fixed;
  bottom: 80px;
  right: 20px;
  z-index: 120;
  font-family: 'Courier New', monospace;
  animation: phone-slide-in 0.3s ease forwards;
}

@keyframes phone-slide-in {
  from { transform: translateX(120%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.phone-notification__card {
  background: rgba(12, 14, 9, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(122, 182, 72, 0.25);
  border-radius: 6px;
  padding: 18px 22px;
  max-width: 340px;
  width: 340px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 1px rgba(122, 182, 72, 0.3);
}

.phone-notification__from {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 8px;
}

.phone-notification__from::before {
  content: '📞';
  font-size: 14px;
}

/* Contact colors */
.phone-notification__from--jesse { color: var(--accent-main); }
.phone-notification__from--skyler { color: var(--accent-light); }
.phone-notification__from--saul { color: var(--accent-money); }
.phone-notification__from--hank { color: var(--accent-desert); }
.phone-notification__from--mike { color: var(--text-muted); }
.phone-notification__from--tuco { color: var(--accent-danger); }
.phone-notification__from--unknown,
.phone-notification__from--unknownnumber { color: var(--accent-danger); }
.phone-notification__from--news { color: var(--text-muted); }
.phone-notification__from--walter { color: var(--accent-main); }

.phone-notification__message {
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: 14px;
  white-space: pre-wrap;
}

.phone-notification__dismiss {
  width: 100%;
  padding: 8px 14px;
  background: rgba(122, 182, 72, 0.08);
  border: 1px solid rgba(122, 182, 72, 0.2);
  border-radius: 3px;
  color: var(--text-muted);
  font-family: 'Courier New', monospace;
  font-size: 11px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.phone-notification__dismiss:hover {
  color: var(--accent-main);
  background: rgba(122, 182, 72, 0.12);
  border-color: var(--accent-main);
}

.phone-notification__dismiss:active {
  transform: scale(0.97);
}
