/** components.tokyo-yield-modal-themes.css
 * Theme styles for Tokyo yield modal - independent of game theme
 * Themes: Standard, Hard Core, Fantasy
 */

/* ===== PREVIEW IN SETTINGS ===== */
/* Sample yield modals in theme picker */
.sample-yield-modal {
  padding: 16px 20px;
  border-radius: 8px;
  font-size: 11px;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 600px;
  margin: 0 auto;
  font-family: 'Bangers', cursive;
}

.sample-yield-header {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 2px;
  font-family: 'Bangers', cursive;
  text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}

.sample-yield-context {
  font-size: 12px;
  opacity: 0.85;
  margin-bottom: 4px;
  font-family: 'Nunito', system-ui, sans-serif;
}

.sample-yield-question {
  font-size: 13px;
  margin-bottom: 8px;
  font-family: 'Nunito', system-ui, sans-serif;
}

.sample-yield-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.sample-yield-btn {
  flex: 1;
  padding: 8px 12px;
  font-size: 12px;
  border-radius: 6px;
  text-align: center;
  font-weight: 600;
  font-family: 'Bangers', cursive;
  letter-spacing: 1px;
  text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
  letter-spacing: 0.3px;
}

/* Standard Theme Preview */
.standard-yield-modal {
  background: linear-gradient(145deg,#1d1f27,#262a33);
  color: #f2f5f7;
  border: 1px solid #333;
}

.standard-yield-modal .sample-yield-header {
  color: #f2f5f7;
}

.standard-yield-modal .sample-yield-btn.stay {
  background: #4a5261;
  border: 1px solid #4a5261;
  color: #f2f5f7;
}

.standard-yield-modal .sample-yield-btn.yield {
  background: #565c68;
  border: 1px solid #565c68;
  color: #f2f5f7;
}

/* Hard Core Theme Preview */
/* Destruction Theme Preview (formerly Hardcore) */
.destruction-yield-modal {
  background: linear-gradient(145deg, #0a0a0a, #1a1a1a);
  color: #ffd700;
  border: 2px solid #3a3a3a;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.destruction-yield-modal .sample-yield-header {
  color: #ffd700;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.destruction-yield-modal .sample-yield-btn.stay {
  background: #2a2a2a;
  border: 2px solid #ffd700;
  color: #ffd700;
  text-transform: uppercase;
  font-weight: 800;
}

.destruction-yield-modal .sample-yield-btn.yield {
  background: #1a1a1a;
  border: 2px solid #4a4a4a;
  color: #aaaaaa;
  text-transform: uppercase;
  font-weight: 800;
}

/* Fantasy Theme Preview */
.fantasy-yield-modal {
  background: linear-gradient(145deg, #0a1f2e, #1a2d4a);
  color: #d5f5ff;
  border: 1px solid #33ddff;
  box-shadow: 0 0 20px rgba(51, 221, 255, 0.3);
}

.fantasy-yield-modal .sample-yield-header {
  color: #ffdd77;
  text-shadow: 0 0 8px rgba(255, 221, 119, 0.5);
}

.fantasy-yield-modal .sample-yield-btn.stay {
  background: linear-gradient(135deg, #1188aa, #22aadd);
  border: 1px solid #33ccff;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(51, 204, 255, 0.4);
}

.fantasy-yield-modal .sample-yield-btn.yield {
  background: linear-gradient(135deg, #334455, #445566);
  border: 1px solid #556677;
  color: #dddddd;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Demon Theme Preview */
.demon-yield-modal {
  background: linear-gradient(145deg, #1a0000, #330000);
  color: #ffccaa;
  border: 2px solid #ff4400;
  box-shadow: 0 0 30px rgba(255, 68, 0, 0.5), inset 0 0 40px rgba(0, 0, 0, 0.8);
}

.demon-yield-modal .sample-yield-header {
  color: #ff3300;
  text-shadow: 0 0 15px rgba(255, 51, 0, 0.9), 0 0 30px rgba(255, 100, 0, 0.6);
}

.demon-yield-modal .sample-yield-btn.stay {
  background: linear-gradient(135deg, #660000, #aa1100);
  border: 2px solid #ff3300;
  color: #ffffff;
  text-transform: uppercase;
  font-weight: 800;
  box-shadow: 0 0 15px rgba(255, 51, 0, 0.6), inset 0 -2px 8px rgba(0, 0, 0, 0.7);
}

.demon-yield-modal .sample-yield-btn.yield {
  background: linear-gradient(135deg, #110000, #220000);
  border: 2px solid #660000;
  color: #cc8866;
  text-transform: uppercase;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

/* ===== FULL PREVIEW MODAL OVERLAY ===== */
.yield-modal-preview-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000000;
  animation: yieldPreviewFadeIn 0.2s ease-out;
}

@keyframes yieldPreviewFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.yield-preview-modal {
  position: relative;
  max-width: 600px;
  width: 90%;
  padding: 24px 28px;
  border-radius: 12px;
  animation: yieldPreviewSlideIn 0.3s cubic-bezier(0.33, 0.85, 0.4, 1);
  text-align: center;
}

@keyframes yieldPreviewSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.yield-preview-header {
  font-family: 'Bangers', cursive;
  font-size: 48px !important;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 8px;
  text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}

.yield-preview-context {
  font-size: 14px;
  opacity: 0.9;
  margin-bottom: 16px;
}

.yield-preview-question {
  font-size: 15px;
  margin-bottom: 20px;
  line-height: 1.4;
}

.yield-preview-image {
  text-align: center;
  margin-bottom: 16px;
}

.yield-preview-image img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  object-position: top center;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

/* Default monster image with red background in preview */
.yield-preview-image.yield-preview-default-monster {
  position: relative;
  display: inline-block;
  background: rgba(255, 0, 0, 0.5);
  border-radius: 8px;
  padding: 0;
  line-height: 0;
}

.yield-preview-image.hidden {
  display: none;
}

.yield-preview-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.yield-preview-btn {
  flex: 1;
  padding: 12px 16px;
  font-size: 16px;
  border-radius: 8px;
  font-weight: 600;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid transparent;
  background: #444;
  color: #fff;
  text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}

.yield-preview-close {
  position: absolute;
  top: 10px;
  right: 14px;
  width: auto;
  height: auto;
  border: none;
  background: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s ease;
}

.yield-preview-close:hover {
  color: rgba(255, 255, 255, 1);
}

.yield-preview-close.dark-theme-close {
  color: rgba(0, 0, 0, 0.7);
}

.yield-preview-close.dark-theme-close:hover {
  color: rgba(0, 0, 0, 1);
}

/* Theme-specific close button colors to match header */
.yield-theme-standard .yield-preview-close {
  color: #f2f5f7;
  opacity: 0.7;
}

.yield-theme-standard .yield-preview-close:hover {
  opacity: 1;
}

.yield-theme-destruction .yield-preview-close {
  color: #ffd700;
  opacity: 0.7;
}

.yield-theme-destruction .yield-preview-close:hover {
  opacity: 1;
}

.yield-theme-fantasy .yield-preview-close {
  color: #ffdd77;
  opacity: 0.7;
}

.yield-theme-fantasy .yield-preview-close:hover {
  opacity: 1;
}

.yield-theme-demon .yield-preview-close {
  color: #ff3300;
  opacity: 0.7;
}

.yield-theme-demon .yield-preview-close:hover {
  opacity: 1;
}

/* Image upload interface */
.yield-images-label-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}

.yield-images-toggle-label {
  font-family: 'Nunito', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}

#yield-theme-images-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.yield-theme-image-upload {
  margin-top: 12px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  text-align: center;
  transition: all 0.2s ease;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

.yield-theme-image-upload.drag-over {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
}

/* Theme-specific upload div colors */
.yield-theme-image-upload[data-theme="standard"] {
  background: rgba(51, 51, 51, 0.5);
  border-color: rgba(51, 51, 51, 0.5);
}

.yield-theme-image-upload[data-theme="destruction"] {
  background: rgba(255, 215, 0, 0.3);
  border-color: rgba(255, 215, 0, 0.3);
}

.yield-theme-image-upload[data-theme="fantasy"] {
  background: rgba(51, 221, 255, 0.3);
  border-color: rgba(51, 221, 255, 0.3);
}

.yield-theme-image-upload[data-theme="demon"] {
  background: rgba(255, 68, 0, 0.3);
  border-color: rgba(255, 68, 0, 0.3);
}

.yield-theme-image-preview {
  margin-bottom: 12px;
  border-radius: 6px;
  overflow: hidden;
  display: inline-block;
}

.yield-theme-image-preview img {
  width: 150px;
  object-fit: cover;
  object-position: top center;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  display: block;
}

.yield-theme-image-preview img:not([src]),
.yield-theme-image-preview img[src=""] {
  display: none;
}

.yield-theme-image-placeholder {
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  margin-bottom: 8px;
  font-family: 'Nunito', system-ui, sans-serif;
}

.yield-theme-upload-btn {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: 'Nunito', system-ui, sans-serif;
}

.yield-theme-upload-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.5);
}

.yield-theme-remove-btn {
  display: inline-block;
  margin-left: 8px;
  padding: 8px 16px;
  background: rgba(255, 50, 50, 0.2);
  border: 1px solid rgba(255, 50, 50, 0.4);
  border-radius: 6px;
  color: #ffaaaa;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: 'Nunito', system-ui, sans-serif;
}

.yield-theme-remove-btn:hover {
  background: rgba(255, 50, 50, 0.3);
  border-color: rgba(255, 50, 50, 0.6);
}

/* Custom/Default toggle */
.yield-image-mode-toggle {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  font-family: 'Nunito', system-ui, sans-serif;
  white-space: nowrap;
}

.yield-image-mode-toggle label {
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  margin: 0;
}

.yield-image-mode-toggle input[type="checkbox"] {
  cursor: pointer;
  width: 16px;
  height: 16px;
  margin: 0;
  flex-shrink: 0;
}

/* Default monster image display */
.yield-default-monster-image {
  width: 150px;
  overflow: hidden;
  border-radius: 6px;
  position: relative;
  margin-bottom: 12px;
}

.yield-default-monster-image img {
  width: 150px;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* ===== STANDARD THEME ===== */
.yield-theme-standard .yield-preview-modal {
  background: linear-gradient(145deg,#1d1f27,#262a33);
  color: #f2f5f7;
  border: 1px solid #333;
  box-shadow: 0 10px 32px -4px rgba(0,0,0,0.55);
}

.yield-theme-standard .yield-preview-header {
  color: #f2f5f7;
}

.yield-theme-standard .yield-preview-btn.stay {
  background: #4a5261 !important;
  border: 1px solid #4a5261 !important;
  color: #f2f5f7 !important;
}

.yield-theme-standard .yield-preview-btn.stay:hover {
  background: #545d6e !important;
}

.yield-theme-standard .yield-preview-btn.yield {
  background: #565c68 !important;
  border: 1px solid #565c68 !important;
  color: #f2f5f7 !important;
}

.yield-theme-standard .yield-preview-btn.yield:hover {
  background: #5f6672 !important;
}

/* ===== HARD CORE THEME ===== */
/* ===== DESTRUCTION THEME (formerly HARDCORE) ===== */
.yield-theme-destruction .yield-preview-modal {
  background: linear-gradient(145deg, #0a0a0a, #1a1a1a);
  color: #ffd700;
  border: 3px solid #3a3a3a;
  box-shadow: 0 0 40px rgba(255, 215, 0, 0.4), 0 10px 32px -4px rgba(0,0,0,0.8);
}

.yield-theme-destruction .yield-preview-header {
  color: #ffd700;
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
  font-size: 22px;
}

.yield-theme-destruction .yield-preview-context {
  color: #ffdd88;
}

.yield-theme-destruction .yield-preview-question {
  color: #ffeeaa;
}

.yield-theme-destruction .yield-preview-btn.stay {
  background: linear-gradient(135deg, #2a2a2a, #333333) !important;
  border: 2px solid #ffd700 !important;
  color: #ffd700 !important;
  text-transform: uppercase;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.yield-theme-destruction .yield-preview-btn.stay:hover {
  background: linear-gradient(135deg, #333333, #3d3d3d) !important;
  box-shadow: 0 6px 16px rgba(255, 215, 0, 0.5);
  transform: translateY(-2px);
}

.yield-theme-destruction .yield-preview-btn.yield {
  background: linear-gradient(135deg, #1a1a1a, #252525) !important;
  border: 2px solid #4a4a4a !important;
  color: #aaaaaa !important;
  text-transform: uppercase;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.yield-theme-destruction .yield-preview-btn.yield:hover {
  background: linear-gradient(135deg, #252525, #2f2f2f) !important;
  border-color: #555555 !important;
  transform: translateY(-2px);
}

/* ===== FANTASY THEME ===== */
.yield-theme-fantasy .yield-preview-modal {
  background: linear-gradient(145deg, #0a1f2e, #1a2d4a);
  color: #d5f5ff;
  border: 2px solid #33ddff;
  box-shadow: 0 0 40px rgba(51, 221, 255, 0.4), 0 10px 32px -4px rgba(0,0,0,0.55);
}

.yield-theme-fantasy .yield-preview-header {
  color: #ffdd77;
  text-shadow: 0 0 12px rgba(255, 221, 119, 0.6);
  font-size: 21px;
}

.yield-theme-fantasy .yield-preview-context {
  color: #c4f5ff;
}

.yield-theme-fantasy .yield-preview-question {
  color: #ddffff;
}

.yield-theme-fantasy .yield-preview-btn.stay {
  background: linear-gradient(135deg, #1188aa, #22aadd) !important;
  border: 1px solid #33ccff !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(51, 204, 255, 0.5);
  font-style: italic;
}

.yield-theme-fantasy .yield-preview-btn.stay:hover {
  background: linear-gradient(135deg, #2299bb, #33bbee) !important;
  box-shadow: 0 6px 16px rgba(51, 204, 255, 0.7);
  transform: translateY(-2px);
}

.yield-theme-fantasy .yield-preview-btn.yield {
  background: linear-gradient(135deg, #334455, #445566) !important;
  border: 1px solid #556677 !important;
  color: #dddddd !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  font-style: italic;
}

.yield-theme-fantasy .yield-preview-btn.yield:hover {
  background: linear-gradient(135deg, #3d4e62, #4e5f73) !important;
  border-color: #667788 !important;
  transform: translateY(-2px);
}

/* ===== DEMON THEME ===== */
.yield-theme-demon .yield-preview-modal {
  background: linear-gradient(145deg, #1a0000, #330000);
  color: #ffccaa;
  border: 3px solid #ff4400;
  box-shadow: 0 0 50px rgba(255, 68, 0, 0.6), 0 10px 32px -4px rgba(0,0,0,0.9), inset 0 0 60px rgba(0, 0, 0, 0.8);
}

.yield-theme-demon .yield-preview-header {
  color: #ff3300;
  text-shadow: 0 0 20px rgba(255, 51, 0, 0.9), 0 0 40px rgba(255, 100, 0, 0.7);
  font-size: 22px;
}

.yield-theme-demon .yield-preview-context {
  color: #ffaa88;
}

.yield-theme-demon .yield-preview-question {
  color: #ffccaa;
}

.yield-theme-demon .yield-preview-btn.stay {
  background: linear-gradient(135deg, #660000, #aa1100) !important;
  border: 2px solid #ff3300 !important;
  color: #ffffff !important;
  text-transform: uppercase;
  font-weight: 800;
  box-shadow: 0 0 20px rgba(255, 51, 0, 0.7), inset 0 -2px 10px rgba(0, 0, 0, 0.8);
}

.yield-theme-demon .yield-preview-btn.stay:hover {
  background: linear-gradient(135deg, #770000, #bb2200) !important;
  box-shadow: 0 0 30px rgba(255, 51, 0, 0.9), inset 0 -2px 10px rgba(0, 0, 0, 0.8);
  transform: translateY(-2px);
}

.yield-theme-demon .yield-preview-btn.yield {
  background: linear-gradient(135deg, #110000, #220000) !important;
  border: 2px solid #660000 !important;
  color: #cc8866 !important;
  text-transform: uppercase;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.9);
}

.yield-theme-demon .yield-preview-btn.yield:hover {
  background: linear-gradient(135deg, #1a0000, #2a0000) !important;
  border-color: #770000 !important;
  transform: translateY(-2px);
}

/* Mobile responsiveness */
@media (max-width: 640px) {
  .yield-preview-modal {
    width: 94%;
    padding: 20px 22px;
  }
  
  .yield-preview-actions {
    flex-direction: column;
  }
}
