/* PixelBurn Custom Styles */
:root {
  --pb-brand-accent: #ff4500;
  --pb-brand-gradient: linear-gradient(135deg, #ff4500 0%, #ff8c00 100%);
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.font-monospace {
  font-family: 'JetBrains Mono', monospace !important;
}

/* Brand flame animation */
.brand-flame {
  display: inline-block;
  transform-origin: bottom center;
  transition: transform 0.2s ease;
}

.navbar-brand:hover .brand-flame {
  transform: scale(1.2) rotate(-5deg);
}

.brand-title {
  letter-spacing: -0.5px;
  background: var(--pb-brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Card Shape Previews */
.card-shape-preview {
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  transition: all 0.2s ease;
}

/* 5:7 Poker Ratio: 30px width -> 42px height */
.ratio-5-7 {
  width: 28px;
  height: 39.2px;
}

/* 63:88 MTG Ratio: 28px width -> 39.11px height */
.ratio-63-88 {
  width: 28px;
  height: 39.1px;
}

/* 7:12 Tarot Ratio: 24px width -> 41.14px height */
.ratio-7-12 {
  width: 24px;
  height: 41.1px;
}

.ratio-pill {
  padding: 1rem 0.75rem !important;
  border-radius: 8px;
  transition: all 0.2s ease;
  background: rgba(255, 255, 255, 0.02);
}

.ratio-pill:hover {
  background: rgba(255, 69, 0, 0.08);
  border-color: rgba(255, 69, 0, 0.4) !important;
}

.ratio-pill:hover .card-shape-preview {
  border-color: #ff4500;
  background: rgba(255, 69, 0, 0.2);
  box-shadow: 0 0 10px rgba(255, 69, 0, 0.3);
}

/* Card and Panel Border & Padding Enhancements */
.card {
  border-radius: 10px;
}

.preset-card {
  padding: 1rem 1.25rem !important;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  transition: all 0.2s ease;
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.1) !important;
}

.preset-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.25) !important;
}

.preset-card.active {
  background: rgba(13, 110, 253, 0.12) !important;
  border-color: #0d6efd !important;
  box-shadow: 0 0 0 1px #0d6efd;
}

.card-icon-box {
  width: 44px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.card-mini-wireframe {
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.05);
}

.preset-card.active .card-mini-wireframe {
  border-color: #0d6efd;
  background: rgba(13, 110, 253, 0.2);
}

/* Dropzone */
.dropzone {
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.2s ease;
  border-radius: 10px;
}

.dropzone:hover, .dropzone.dragover {
  background: rgba(13, 110, 253, 0.08);
  border-color: #0d6efd !important;
}

.dropzone-icon {
  transition: transform 0.2s ease;
}

.dropzone:hover .dropzone-icon, .dropzone.dragover .dropzone-icon {
  transform: translateY(-4px);
}

/* Queue Thumbnails */
.queue-item-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  padding: 0.6rem !important;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.queue-item-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.25);
}

.queue-thumb {
  width: 100%;
  height: 95px;
  object-fit: cover;
  background: #111;
  display: block;
}

.queue-remove-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.75);
  border: none;
  color: #ff6b6b;
  font-size: 0.75rem;
  transition: all 0.15s ease;
}

.queue-remove-btn:hover {
  background: #dc3545;
  color: white;
}

/* Results Gallery Cards */
.result-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.result-card:hover {
  border-color: rgba(13, 110, 253, 0.5);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.result-thumb-wrapper {
  background: repeating-conic-gradient(#1e1e1e 0% 25%, #282828 0% 50%) 50% / 16px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  height: 240px;
  position: relative;
}

.result-thumb-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.result-thumb-img:hover {
  transform: scale(1.03);
}

.result-card .card-body {
  padding: 1.25rem 1.5rem !important;
}

/* History Offcanvas items */
.history-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 1.15rem 1.25rem !important;
  transition: border-color 0.2s ease;
}

.history-item:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

/* Alerts & Notices inside padding */
.alert {
  padding: 1rem 1.25rem !important;
  border-radius: 8px;
}

/* Disabled link helper */
a.disabled {
  pointer-events: none;
  opacity: 0.5;
  cursor: not-allowed;
}

#countdownTimerText {
  letter-spacing: -1px;
}

#compareFilename {
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* Sticky Options in Desktop */
@media (min-width: 992px) {
  .sticky-options {
    position: sticky;
    top: 80px;
  }
}

/* ==========================================================================
   LIGHT THEME STYLES ([data-bs-theme="light"])
   ========================================================================== */
[data-bs-theme="light"] {
  --bs-body-bg: #f8f9fa;
  --bs-body-color: #212529;
  --bs-secondary-color: #495057;
}

[data-bs-theme="light"] .text-white {
  color: #212529 !important;
}

[data-bs-theme="light"] .text-secondary {
  color: #495057 !important;
}

[data-bs-theme="light"] .card {
  background-color: #ffffff;
  border-color: #dee2e6 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

[data-bs-theme="light"] .preset-card {
  background: #ffffff;
  border-color: #dee2e6 !important;
}

[data-bs-theme="light"] .preset-card:hover {
  background: rgba(13, 110, 253, 0.04);
  border-color: #86b7fe !important;
}

[data-bs-theme="light"] .preset-card.active {
  background: rgba(13, 110, 253, 0.08) !important;
  border-color: #0d6efd !important;
  box-shadow: 0 0 0 1px #0d6efd;
}

[data-bs-theme="light"] .card-icon-box {
  background: #f1f3f5;
  border-color: #dee2e6;
}

[data-bs-theme="light"] .card-mini-wireframe {
  border-color: #6c757d;
  background: #e9ecef;
}

[data-bs-theme="light"] .preset-card.active .card-mini-wireframe {
  border-color: #0d6efd;
  background: rgba(13, 110, 253, 0.15);
}

[data-bs-theme="light"] .ratio-pill {
  background: #ffffff;
  border-color: #dee2e6 !important;
}

[data-bs-theme="light"] .card-shape-preview {
  background: #e9ecef;
  border-color: #adb5bd;
}

[data-bs-theme="light"] .dropzone {
  background: #ffffff;
  border-color: #ced4da !important;
}

[data-bs-theme="light"] .dropzone:hover,
[data-bs-theme="light"] .dropzone.dragover {
  background: rgba(13, 110, 253, 0.04);
  border-color: #0d6efd !important;
}

[data-bs-theme="light"] .queue-item-card {
  background: #ffffff;
  border-color: #dee2e6;
}

[data-bs-theme="light"] .result-card {
  background: #ffffff;
  border-color: #dee2e6;
}

[data-bs-theme="light"] .result-thumb-wrapper {
  background: repeating-conic-gradient(#edf2f7 0% 25%, #e2e8f0 0% 50%) 50% / 16px 16px;
}

[data-bs-theme="light"] .history-item {
  background: #ffffff;
  border-color: #dee2e6;
}

[data-bs-theme="light"] .table-dark {
  background-color: #212529 !important;
  color: #ffffff !important;
}

[data-bs-theme="light"] .alert-secondary {
  background-color: #f1f3f5;
  color: #212529;
  border-color: #dee2e6;
}

[data-bs-theme="light"] .alert-dark {
  background-color: #e9ecef;
  color: #212529;
  border-color: #ced4da;
}
