/* ============================================================
   MechaPaint - officehours.css
   The "Office Hours Is Live!" card, fixed bottom left. Built by
   officehours.js only while live.json says the stream is on.
   Loaded on every page by templates/officehours.html.
   ============================================================ */

.oh-card {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 9000;
  width: 380px;
  max-width: calc(100vw - 32px);
  box-sizing: border-box;
  padding: 18px 20px 20px;
  background: var(--panel, #171c27);
  border: 1px solid var(--line, #2a3242);
  border-radius: var(--radius, 12px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  color: var(--text, #e8ecf3);
  font-family: var(--font-body, "Inter", system-ui, sans-serif);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.oh-card.oh-in {
  opacity: 1;
  transform: none;
}

.oh-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.oh-dot {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff3b3b;
  box-shadow: 0 0 0 0 rgba(255, 59, 59, 0.6);
  animation: oh-pulse 1.6s ease-out infinite;
}

@keyframes oh-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 59, 59, 0.6); }
  70%  { box-shadow: 0 0 0 9px rgba(255, 59, 59, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 59, 59, 0); }
}

.oh-title {
  flex: 1 1 auto;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
}

.oh-close {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin: -6px -8px -6px 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-mid, #9aa5b8);
  cursor: pointer;
}

.oh-close:hover { background: var(--panel-2, #1c2230); color: var(--text, #e8ecf3); }

.oh-text {
  margin: 10px 0 16px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-mid, #9aa5b8);
}

.oh-btn {
  display: block;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--accent, #4f9cf7);
  color: #0a1220;
  font-weight: 700;
  font-size: 15px;
  text-align: center;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}

.oh-btn:hover { background: #6cadf9; transform: translateY(-1px); }

@media (max-width: 480px) {
  .oh-card { left: 16px; right: 16px; bottom: 16px; width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .oh-card { transition: none; transform: none; }
  .oh-dot { animation: none; }
}
