/**
 * CENTER-SPIN-PAGE-STYLES.CSS - Center spin page specific styles
 * Extracted from inline styles in center-spin
 */

/* ===== THEME COLOR CLASSES ===== */
.theme-food { 
  --primary-color: #FF6F61; 
  --secondary-color: #FFD5CC; 
}

.theme-family { 
  --primary-color: #F6C947; 
  --secondary-color: #FFF2C5; 
}

.theme-kids { 
  --primary-color: #7ED6F3; 
  --secondary-color: #D6F6FF; 
}

.theme-classroom { 
  --primary-color: #667EEA; 
  --secondary-color: #DDE3FF; 
}

.theme-travel { 
  --primary-color: #4CAF50; 
  --secondary-color: #DFF5E1; 
}

.theme-home { 
  --primary-color: #B0BEC5; 
  --secondary-color: #ECEFF1; 
}

.theme-fitness { 
  --primary-color: #FF8A65; 
  --secondary-color: #FFDACC; 
}

.theme-games { 
  --primary-color: #9C27B0; 
  --secondary-color: #F3D1FA; 
}

.theme-tasks { 
  --primary-color: #607D8B; 
  --secondary-color: #CFD8DC; 
}

.theme-lifestyle { 
  --primary-color: #8E44AD; 
  --secondary-color: #EEDDF8; 
}

.theme-fun { 
  --primary-color: #FF9800; 
  --secondary-color: #FFE0B2; 
}


/* ===== CARD STYLES ===== */
.card {
  border: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* ===== SPIN MODE CARDS ===== */
.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;
  color: inherit;
  display: block;
}

.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);
}

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

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

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

/* ===== PRESET CARDS ===== */
.preset-card {
  cursor: pointer;
  transition: all 0.3s ease;
  background: white;
  padding: 1rem;
  border-radius: 12px;
  border: 2px solid #e9ecef;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.preset-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px 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: 2.5rem;
  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);
}

/* ===== ADVANCED OPTIONS TOGGLE ===== */
.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);
  }
}

/* ===== ACCORDION CUSTOMIZATION ===== */
.accordion-button:not(.collapsed) {
  background-color: rgba(40, 167, 69, 0.1);
  color: #28a745;
}

/* ===== AD CONTAINER STYLES ===== */
.ad-container {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 250px;
  position: relative;
}

.ad-container-middle {
  min-height: 150px;
  max-width: 100%;
}

.ad-label {
  position: absolute;
  top: 5px;
  left: 5px;
  font-size: 10px;
  color: #6c757d;
  text-transform: uppercase;
}

/* ===== STICKY SIDE ADS ===== */
.sticky-ad-left,
.sticky-ad-right {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 160px;
  z-index: 100;
  transition: all 0.3s ease;
}

.sticky-ad-left {
  left: 0;
}

.sticky-ad-right {
  right: 0;
}

.sticky-ad-left .ad-container,
.sticky-ad-right .ad-container {
  min-height: 600px;
  width: 160px;
}

.sticky-ad-left.collapsed {
  left: -150px;
}

.sticky-ad-right.collapsed {
  right: -150px;
}

.ad-close-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.ad-close-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

/* ===== BOTTOM STICKY AD ===== */
.bottom-sticky-ad {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: all 0.3s ease;
}

.bottom-sticky-ad .ad-container {
  min-height: 90px;
}

.bottom-sticky-ad.collapsed {
  bottom: -100%;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 1400px) {
  .sticky-ad-left,
  .sticky-ad-right {
    display: none;
  }
}

@media (max-width: 768px) {
  .bottom-sticky-ad {
    display: block;
  }

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

  /* Preserve gutter spacing for cards on mobile */
  .main-layout-left {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .advanced-toggle {
    position: static;
    margin-bottom: 1rem;
  }
  
  .preset-card .preset-emoji {
    font-size: 2rem;
  }
  
  .preset-card .preset-title {
    font-size: 0.75rem;
  }

  .mode-icon {
    font-size: 2rem;
  }
}