/* ===============================
   QV Round Slots – FINAL CSS (11-14-C · LOCKED UX + TIMER + HELP MODAL FIXED CENTER)
   File: /wp-content/themes/kava-child/open_root/round/round-slots.css
   =============================== */

.qv-slots-box {
  max-width: 1200px;
  margin: 48px auto;
  padding: 0 16px;
}

.qv-slots-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.qv-slots-head strong {
  font-size: 20px;
  color: #111;
}

.qv-slots-sub {
  font-size: 12px;
  color: #777;
}

.qv-help-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: none;
  background: #2563eb;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

/* ===============================
   Grid
   =============================== */

.qv-slots-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* ===============================
   Slot Card – Base
   =============================== */

.qv-slot-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 20px;
  text-align: left;
  cursor: pointer;
  transition: background-color .2s ease,
              border-color .2s ease,
              box-shadow .2s ease;
  color: #111;
}

.qv-slot-card:hover {
  border-color: #2563eb;
  background: #f8fafc;
}

/* ===============================
   Slot Text
   =============================== */

.qv-slot-key {
  font-size: 16px;
  font-weight: 800;
  color: #111;
}

.qv-slot-desc {
  margin-top: 6px;
  font-size: 14px;
  color: #111;
}

.qv-slot-hint {
  margin-top: 10px;
  font-size: 12px;
  color: #6b7280;
}

/* ===============================
   Selected Slot (Radio UX)
   - 마우스 아웃해도 유지
   =============================== */

.qv-slot-card.is-selected {
  background: #eef4ff;
  border-color: #2563eb;
  box-shadow: 0 0 0 1px rgba(37,99,235,0.25);
}

.qv-slot-card.is-selected:hover {
  background: #eef4ff;
  border-color: #2563eb;
  box-shadow: 0 0 0 1px rgba(37,99,235,0.25);
}

.qv-slot-card.is-selected .qv-slot-key,
.qv-slot-card.is-selected .qv-slot-desc {
  color: #2563eb;
  font-weight: 800;
}

/* ===============================
   AI Slot (System) — Locked
   =============================== */

.qv-slot-card.is-ai {
  background: #f1f5f9;
  border-color: #e5e7eb;
  color: #94a3b8;
  cursor: not-allowed;
}

.qv-slot-card.is-ai:hover {
  background: #f1f5f9;
  border-color: #e5e7eb;
}

.qv-slot-card.is-ai .qv-slot-key,
.qv-slot-card.is-ai .qv-slot-desc {
  color: #64748b;
}

/* ===============================
   Locked Slot (A/B 포함) — AI와 같은 톤
   - 본인/타인 동일
   =============================== */

.qv-slot-card.status-locked:not(.is-ai) {
  background: #f1f5f9;
  border-color: #e5e7eb;
  color: #94a3b8;
  cursor: not-allowed;
}

.qv-slot-card.status-locked:not(.is-ai):hover {
  background: #f1f5f9;
  border-color: #e5e7eb;
}

.qv-slot-card.status-locked:not(.is-ai) .qv-slot-key,
.qv-slot-card.status-locked:not(.is-ai) .qv-slot-desc {
  color: #475569;
  font-weight: 800;
}

.qv-slot-card.status-locked:not(.is-ai) .qv-slot-desc {
  font-weight: 700;
}

/* locked 상태는 선택(is-selected) 효과가 붙지 않게(안전) */
.qv-slot-card.status-locked.is-selected,
.qv-slot-card.is-ai.is-selected {
  background: inherit;
  border-color: inherit;
  box-shadow: none;
}

/* ===============================
   Timer (SVG + pill)
   =============================== */

.qv-slot-timer {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  font-weight: 900;
  font-size: 13px;
  line-height: 1;
}

.qv-timer-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.qv-timer-svg {
  width: 16px;
  height: 16px;
  fill: #fff;
  display: block;
}

.qv-timer-text {
  letter-spacing: .5px;
}

/* ===============================
   Join Button
   =============================== */

.qv-join-wrap {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

.qv-join-btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 10px;
  border: none;
  background: #2563eb;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.qv-join-btn:hover {
  background: #1d4ed8;
}

.qv-join-btn.is-processing,
.qv-join-btn:disabled {
  opacity: .55;
  cursor: not-allowed;
}

/* ===============================
   Modal (Join + Help) — Fixed Center
   =============================== */

.qv-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
}

.qv-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .55);
}

.qv-modal-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(520px, calc(100% - 32px));
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  padding: 18px 18px 16px;
}

.qv-modal-title {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 900;
  color: #0f172a;
}

.qv-modal-msg {
  font-size: 14px;
  color: #0f172a;
}

.qv-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

.qv-modal-ok {
  padding: 10px 14px;
  border-radius: 10px;
  border: none;
  background: #2563eb;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.qv-modal-ok:hover {
  background: #1d4ed8;
}

.qv-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: none;
  background: #f1f5f9;
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
  color: #0f172a;
}

.qv-modal-close:hover {
  background: #e2e8f0;
}

/* ===============================
   Responsive
   =============================== */

@media (max-width: 768px) {
  .qv-slots-list {
    grid-template-columns: 1fr;
  }
}
