/* ===== PAGE-SPECIFIC STYLES ===== */
/* CSS Variables */

/* 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(155, 89, 182, 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.2s;
    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 .preset-emoji {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.preset-card .preset-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #495057;
}

/* Advanced Options Toggle */
.advanced-toggle {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
}

#advancedOptions.show {
    display: block;
}

/* Accordion Customization */
.accordion-button:not(.collapsed) {
    background-color: rgba(155, 89, 182, 0.1);
    color: #9b59b6;
}

/* Theme Color Classes */
.theme-mystery {
    --primary-color: #8E44AD;
    --secondary-color: #E8DAF6;
}

.theme-kids {
    --primary-color: #F39C12;
    --secondary-color: #FFE6BE;
}

.theme-family {
    --primary-color: #27AE60;
    --secondary-color: #D8F5DD;
}

.theme-home {
    --primary-color: #95A5A6;
    --secondary-color: #E3E7E8;
}

.theme-travel {
    --primary-color: #16A085;
    --secondary-color: #CFF5EF;
}

.theme-fitness {
    --primary-color: #E74C3C;
    --secondary-color: #F9D1CD;
}

.theme-games {
    --primary-color: #9B59B6;
    --secondary-color: #F2DDFB;
}

.theme-classroom {
    --primary-color: #2980B9;
    --secondary-color: #D6E9F9;
}

.theme-food {
    --primary-color: #D35400;
    --secondary-color: #FFE2C9;
}

.theme-study {
    --primary-color: #8E44AD;
    --secondary-color: #EAD6F7;
}

.theme-lifestyle {
    --primary-color: #2ECC71;
    --secondary-color: #D7FBEA;
}

body[class*="theme-"] {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
}

/* ===== 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;
  }

  .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;
  }
}