/* components.confirm-modal.css
 * Styling for the generic confirmation modal (used for card purchases, game restart, etc.)
 * Matches game theme with Bangers font and dark aesthetic
 */

/* Confirm modal uses modal-shell and inherits base .modal styles */
.cmp-confirm-modal .modal {
  width: clamp(300px, 90vw, 500px);
  max-width: 500px;
}

/* ===== DARK THEME (Default) ===== */
.cmp-confirm-modal .modal-header {
  background: #111 !important;
  padding: 18px 24px !important;
  box-shadow: inset 0 -2px 0 rgba(255,255,255,0.05);
}

.cmp-confirm-modal .modal-header h2 {
  font-family: var(--font-family-brand, 'Bangers', cursive);
  font-size: 1.5rem;
  letter-spacing: 1px;
  color: var(--color-brand-gold, #ffd700);
  text-shadow: 2px 2px 0 #000;
  margin: 0;
}

.cmp-confirm-modal .modal-header button[data-close] {
  background: #181818;
  color: #bbb;
  border: 1px solid #333;
  font-size: 1.25rem;
  line-height: 1;
  width: 32px;
  height: 32px;
  border-radius: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 2px 2px 0 #000;
  transition: background .18s ease, transform 80ms cubic-bezier(.34,1.56,.64,1);
}

.cmp-confirm-modal .modal-header button[data-close]:hover {
  background: #222;
  transform: translateY(-2px);
}

.cmp-confirm-modal .modal-header button[data-close]:active {
  transform: translateY(0);
}

.cmp-confirm-modal .modal-body {
  padding: 32px 24px !important;
  font-size: 1rem;
  line-height: 1.6;
  white-space: pre-line;
  color: #e4e4e4;
  min-height: 80px;
}

.cmp-confirm-modal .modal-footer {
  padding: 18px 24px !important;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  background: #111 !important;
  box-shadow: inset 0 2px 0 rgba(255,255,255,0.05);
}

.cmp-confirm-modal .modal-footer button {
  padding: 12px 24px !important;
  font-family: var(--font-family-brand, 'Bangers', cursive);
  font-size: 1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 0;
  cursor: pointer;
  border: 2px solid #000;
  box-shadow: 4px 4px 0 #000;
  transition: all 0.15s ease;
  min-width: 110px;
}

.cmp-confirm-modal .modal-footer button:hover {
  transform: translateY(-2px);
  box-shadow: 5px 5px 0 #000;
}

.cmp-confirm-modal .modal-footer button:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 #000;
}

/* Cancel button - Dark theme uses darker blue/teal instead of gray */
.cmp-confirm-modal .modal-footer button[data-cancel],
.cmp-confirm-modal .modal-footer button.k-btn-secondary {
  background: linear-gradient(145deg, #3d5a80, #2c4663) !important;
  color: #e4e4e4 !important;
  border-color: #000 !important;
}

.cmp-confirm-modal .modal-footer button[data-cancel]:hover,
.cmp-confirm-modal .modal-footer button.k-btn-secondary:hover {
  background: linear-gradient(145deg, #4a6a94, #36556f) !important;
}

/* Confirm button - Yellow with black text for dark theme */
.cmp-confirm-modal .modal-footer button[data-confirm],
.cmp-confirm-modal .modal-footer button.k-btn-primary {
  background: linear-gradient(145deg, #ffd700, #ffb700) !important;
  color: #000 !important;
  font-weight: 700;
  border-color: #000 !important;
}

.cmp-confirm-modal .modal-footer button[data-confirm]:hover,
.cmp-confirm-modal .modal-footer button.k-btn-primary:hover {
  background: linear-gradient(145deg, #ffe633, #ffc933) !important;
}

/* ===== LIGHT THEME ===== */
body.light-mode .cmp-confirm-modal .modal-header {
  background: #e8e8e8 !important;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,0.08);
  padding: 18px 24px !important;
}

body.light-mode .cmp-confirm-modal .modal-header h2 {
  color: #c49000;
  text-shadow: 1px 1px 0 rgba(255,255,255,0.5);
}

body.light-mode .cmp-confirm-modal .modal-header button[data-close] {
  background: #d0d0d0;
  color: #333;
  border: 1px solid #aaa;
  box-shadow: 2px 2px 0 rgba(0,0,0,0.15);
}

body.light-mode .cmp-confirm-modal .modal-header button[data-close]:hover {
  background: #c0c0c0;
}

body.light-mode .cmp-confirm-modal .modal-body {
  color: #2c2c2c;
  padding: 32px 24px !important;
}

body.light-mode .cmp-confirm-modal .modal-footer {
  background: #e8e8e8 !important;
  box-shadow: inset 0 2px 0 rgba(0,0,0,0.08);
  padding: 18px 24px !important;
}

body.light-mode .cmp-confirm-modal .modal-footer button {
  box-shadow: 3px 3px 0 rgba(0,0,0,0.2);
}

body.light-mode .cmp-confirm-modal .modal-footer button:hover {
  box-shadow: 4px 4px 0 rgba(0,0,0,0.2);
}

body.light-mode .cmp-confirm-modal .modal-footer button:active {
  box-shadow: 2px 2px 0 rgba(0,0,0,0.2);
}

/* Cancel button - Light theme uses neutral gray-blue */
body.light-mode .cmp-confirm-modal .modal-footer button[data-cancel],
body.light-mode .cmp-confirm-modal .modal-footer button.k-btn-secondary {
  background: linear-gradient(145deg, #9db4c8, #7a98b0) !important;
  color: #fff !important;
  border-color: #5a7a90 !important;
}

body.light-mode .cmp-confirm-modal .modal-footer button[data-cancel]:hover,
body.light-mode .cmp-confirm-modal .modal-footer button.k-btn-secondary:hover {
  background: linear-gradient(145deg, #b0c5d6, #8aa8be) !important;
}

/* Confirm button - Light theme uses warm gold/orange */
body.light-mode .cmp-confirm-modal .modal-footer button[data-confirm],
body.light-mode .cmp-confirm-modal .modal-footer button.k-btn-primary {
  background: linear-gradient(145deg, #ffb700, #ff9500) !important;
  color: #000 !important;
  font-weight: 700;
  border-color: #cc7700 !important;
}

body.light-mode .cmp-confirm-modal .modal-footer button[data-confirm]:hover,
body.light-mode .cmp-confirm-modal .modal-footer button.k-btn-primary:hover {
  background: linear-gradient(145deg, #ffc933, #ffa933) !important;
}

/* Mobile responsive */
@media (max-width: 600px) {
  .cmp-confirm-modal .modal {
    width: 95vw;
  }

  .cmp-confirm-modal .modal-body {
    padding: 24px 20px !important;
  }

  .cmp-confirm-modal .modal-footer {
    flex-direction: column;
    gap: 10px;
    padding: 16px 20px !important;
  }

  .cmp-confirm-modal .modal-footer button {
    width: 100%;
  }
}
