/* ============================================================================
   Theme Switcher Popup - Activated by double-clicking Cajun logo
   ============================================================================ */

.theme-switcher-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  z-index: 10000;
  min-width: 320px;
  max-width: 400px;
}

.theme-switcher-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-4);
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--color-primary);
}

.theme-close-btn {
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  color: var(--gray-400);
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.theme-close-btn:hover {
  color: var(--color-primary);
  transform: scale(1.1);
}

.theme-switcher-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.theme-switcher-buttons .theme-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: white;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.theme-switcher-buttons .theme-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.theme-switcher-buttons .theme-btn.active {
  border-width: 3px;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.theme-switcher-buttons .theme-icon {
  font-size: 2rem;
}

.theme-switcher-buttons .theme-label {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  text-align: center;
}

/* Theme-specific active states */
.theme-switcher-buttons .theme-btn[data-theme="original"].active {
  border-color: #B7410E;
  background: #FFF8E7;
}

.theme-switcher-buttons .theme-btn[data-theme="thanksgiving"].active {
  border-color: #CC5500;
  background: #F5DEB3;
}

.theme-switcher-buttons .theme-btn[data-theme="christmas"].active {
  border-color: #2C5F2D;
  background: #F0F8F0;
}

.theme-switcher-buttons .theme-btn[data-theme="lent"].active {
  border-color: #6B2C91;
  background: #F9F6E8;
}

.theme-switcher-buttons .theme-btn[data-theme="icecream"].active {
  border-color: #0d9488;
  background: #FFF9E3;
}

/* Current theme display */
.theme-current {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--gray-600);
  padding-top: var(--space-3);
  border-top: 1px solid var(--gray-200);
  font-style: italic;
}

/* Backdrop overlay */
.theme-switcher-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: none;
}

.theme-switcher-backdrop.active {
  display: block;
}

/* Mobile responsive */
@media (max-width: 480px) {
  .theme-switcher-popup {
    min-width: 280px;
    padding: var(--space-4);
  }

  .theme-switcher-buttons {
    grid-template-columns: 1fr;
  }
}

/* Hide on print */
@media print {
  .theme-switcher-popup,
  .theme-switcher-backdrop {
    display: none !important;
  }
}

/* ============================================================================
   Alphonse Mascot Size Variants & Animations
   ============================================================================ */

/* Base mascot styles */
.alphonse-mascot {
  display: inline-block;
  transition: transform 0.6s ease;
  cursor: pointer;
}

/* Size variants */
.alphonse-small {
  width: 80px;
  height: 80px;
}

.alphonse-mascot:not(.alphonse-small):not(.alphonse-large) {
  width: 128px;
  height: 128px;
}

.alphonse-large {
  width: 768px;
  height: 768px;
}

/* Animation keyframes */
@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes dance {
  0%, 100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-15deg) scale(1.1);
  }
  50% {
    transform: rotate(15deg) scale(1.2);
  }
  75% {
    transform: rotate(-10deg) scale(1.1);
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(180deg) scale(1.2);
  }
  100% {
    transform: rotate(360deg) scale(1);
  }
}

/* Hover effect */
.alphonse-mascot:hover {
  transform: scale(1.05);
}

/* Active animation classes - applied via JavaScript */
.alphonse-bouncing {
  animation: bounce 0.5s ease;
}

.alphonse-dancing {
  animation: dance 1s ease;
}

.alphonse-spinning {
  animation: spin 0.6s ease;
}
