/* ================================================
   COIN TOSS BASE STYLES (matches wheel-spinner.css)
   ================================================ */

/* Theme Variables */

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Advanced Options Styling */
.advanced-toggle {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  transition: all 0.2s ease;
}

.advanced-toggle:hover {
  transform: scale(1.05);
}

#advancedOptions.show {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Simple Input Section */
#simpleInput {
  display: block;
}

/* Items Container */
.items-container {
  max-height: 400px;
  overflow-y: auto;
  padding: 0.5rem;
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  background-color: #f8f9fa;
}

/* Preset Cards */
.preset-card {
  cursor: pointer;
  transition: all 0.2s ease;
  background: white;
  padding: 1rem;
  border-radius: 8px;
  border: 2px solid #e9ecef;
  text-align: center;
}

.preset-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-color: var(--primary-color) !important;
}

.preset-card:active {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.preset-card .preset-emoji {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  display: block;
  line-height: 1;
}

.preset-card .preset-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #495057;
  margin: 0;
  line-height: 1.3;
}

.preset-card:hover .preset-title {
  color: var(--primary-color);
}

/* Item Entry Styling (match other wheel spins) */
.item-entry {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  padding: 0.75rem;
  background: white;
  border-radius: 0.375rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  align-items: start;
}

.item-entry input[type="text"] {
  flex: 1;
}

.item-entry input[type="number"] {
  width: 80px;
}

.item-entry select {
  width: 120px;
}

.item-entry input[type="file"] {
  font-size: 0.875rem;
}

.item-entry .btn-danger {
  min-width: 38px;
}

/* SPIN MODE SELECTOR */
.spin-mode-card {
  padding: 1rem;
  border: 2px solid #dee2e6;
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  background: white;
  text-decoration: none;
  display: block;
  color: inherit;
}

.spin-mode-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  border-color: #0d6efd;
  text-decoration: none;
}

.spin-mode-card.active {
  border-color: var(--primary-color);
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  box-shadow: 0 8px 24px rgba(40, 167, 69, 0.3);
}

.mode-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.mode-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.spin-mode-card.active .mode-title,
.spin-mode-card.active small {
  color: white;
}

/* Disabled State for Controls */
input:disabled,
select:disabled,
textarea:disabled,
button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

/* Responsive Adjustments */
@media (min-width: 768px) {
  .item-entry {
    display: grid;
    grid-template-columns: 1fr 52px 120px auto;
    gap: 0.5rem;
    align-items: center;
  }

  .item-entry input[type="text"] {
    grid-column: 1 / 2;
  }

  .item-entry input[type="color"] {
    grid-column: 2 / 3;
    width: 52px;
    height: 32px;
    padding: 0;
  }

  .item-entry select {
    grid-column: 3 / 4;
    width: 120px;
  }

  .item-entry .btn-group {
    grid-column: 4 / 5;
  }
}

@media (max-width: 768px) {
  .preset-card .preset-emoji {
    font-size: 1.75rem;
  }

  .preset-card .preset-title {
    font-size: 0.75rem;
  }

  .advanced-toggle {
    position: static;
    margin-bottom: 1rem;
  }

  .main-layout-row {
    display: flex;
    flex-direction: column;
  }

  .main-layout-left {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .item-entry {
    flex-direction: column;
  }

  .item-entry input[type="number"],
  .item-entry select {
    width: 100%;
  }
}

/* Ad Container Spacing */
#bottomAd {
  z-index: 1000;
}

@media (min-width: 768px) {
  #bottomAd {
    display: none !important;
  }
}

/* Feature Box Hover */
.feature-box {
  transition: transform 0.2s;
}

.feature-box:hover {
  transform: translateX(5px);
}
