:root {
  --golden: #F5A623;
  --deep-gold: #FFD700;
  --fryer-brown: #8B4513;
  --crispy-orange: #FF8C00;
  --cream: #FFF8E7;
  --dark-brown: #3D2314;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Fredoka', sans-serif;
}

.light-mode {
  background: linear-gradient(180deg, #FFF8E7 0%, #FFE4B5 50%, #FFDAB9 100%);
  color: var(--dark-brown);
}

.dark-mode {
  background: linear-gradient(180deg, #2D1810 0%, #1A0F0A 50%, #0D0705 100%);
  color: #FFE4B5;
}

/* Bubbles */
.bubbles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.oil-bubble {
  position: absolute;
  bottom: -50px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 215, 0, 0.6), rgba(245, 166, 35, 0.3));
  animation: float-up linear forwards;
  opacity: 0.6;
}

@keyframes float-up {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.4;
  }
  100% {
    transform: translateY(-100vh) scale(0.5);
    opacity: 0;
  }
}

/* Header */
.header-section {
  position: relative;
  z-index: 1;
}

.main-title {
  font-family: 'Abril Fatface', serif;
  background: linear-gradient(135deg, var(--golden), var(--crispy-orange), var(--fryer-brown));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
  animation: sizzle 0.1s infinite alternate;
}

@keyframes sizzle {
  from { transform: translate(0, 0); }
  to { transform: translate(0.5px, 0.5px); }
}

.subtitle {
  font-style: italic;
}

.rotating-emoji {
  display: inline-block;
  filter: drop-shadow(0 4px 8px rgba(245, 166, 35, 0.5));
}

.control-btn {
  background: linear-gradient(135deg, var(--golden), var(--crispy-orange));
  color: var(--dark-brown);
  border: none;
  cursor: pointer;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(245, 166, 35, 0.4);
}

.control-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(245, 166, 35, 0.6);
}

/* Spotlight */
.spotlight-section {
  position: relative;
  z-index: 1;
}

.spotlight-card {
  background: linear-gradient(145deg, rgba(255, 215, 0, 0.2), rgba(255, 140, 0, 0.15));
  backdrop-filter: blur(10px);
  border: 2px solid var(--golden);
  box-shadow: 0 8px 32px rgba(245, 166, 35, 0.3), inset 0 0 60px rgba(255, 215, 0, 0.1);
}

.dark-mode .spotlight-card {
  background: linear-gradient(145deg, rgba(255, 215, 0, 0.1), rgba(139, 69, 19, 0.2));
}

.spotlight-name {
  font-family: 'Abril Fatface', serif;
  background: linear-gradient(135deg, var(--deep-gold), var(--crispy-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.fact-text {
  max-width: 600px;
  margin: 0 auto;
}

/* Random Button */
.random-section {
  position: relative;
  z-index: 1;
}

.craving-button {
  background: linear-gradient(135deg, #FF6B35, #FF8C00, #FFD700);
  color: white;
  border: none;
  cursor: pointer;
  font-family: 'Fredoka', sans-serif;
  transition: all 0.3s ease;
  box-shadow: 0 6px 24px rgba(255, 107, 53, 0.5);
  position: relative;
  overflow: hidden;
}

.craving-button::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: rotate(45deg);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%) rotate(45deg); }
  100% { transform: translateX(100%) rotate(45deg); }
}

.craving-button:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 32px rgba(255, 107, 53, 0.7);
}

.craving-button:active {
  transform: scale(0.98);
}

.pick-result {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(255, 140, 0, 0.2));
  border: 2px solid var(--golden);
  animation: pop-in 0.4s ease-out;
}

@keyframes pop-in {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

/* Timer */
.timer-section {
  position: relative;
  z-index: 1;
}

.timer-card {
  background: linear-gradient(135deg, rgba(139, 69, 19, 0.2), rgba(255, 140, 0, 0.15));
  border: 2px dashed var(--fryer-brown);
}

.timer-display {
  font-family: 'Abril Fatface', serif;
  color: var(--crispy-orange);
}

.reset-btn {
  background: var(--fryer-brown);
  color: white;
  border: none;
  cursor: pointer;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  transition: all 0.3s ease;
}

.reset-btn:hover {
  background: var(--crispy-orange);
  transform: translateY(-2px);
}

/* Wisdom */
.wisdom-section {
  position: relative;
  z-index: 1;
}

.wisdom-card {
  background: linear-gradient(135deg, rgba(255, 248, 231, 0.8), rgba(255, 218, 185, 0.6));
  border-left: 4px solid var(--golden);
}

.dark-mode .wisdom-card {
  background: linear-gradient(135deg, rgba(61, 35, 20, 0.6), rgba(26, 15, 10, 0.4));
}

.wisdom-text {
  font-family: 'Abril Fatface', serif;
}

/* Gallery */
.gallery-section {
  position: relative;
  z-index: 1;
}

.gallery-title {
  font-family: 'Abril Fatface', serif;
  background: linear-gradient(135deg, var(--golden), var(--crispy-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.food-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 248, 231, 0.8));
  border: 2px solid transparent;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(139, 69, 19, 0.15);
}

.dark-mode .food-card {
  background: linear-gradient(145deg, rgba(61, 35, 20, 0.8), rgba(45, 24, 16, 0.6));
}

.food-card:hover {
  transform: translateY(-4px) rotate(1deg);
  border-color: var(--golden);
  box-shadow: 0 8px 24px rgba(245, 166, 35, 0.4);
}

.food-name {
  font-family: 'Abril Fatface', serif;
  position: relative;
}

.food-name::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--golden), transparent);
  border-radius: 2px;
}

.craving-slider {
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, #ddd, var(--golden), var(--crispy-orange));
  cursor: pointer;
}

.craving-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--crispy-orange);
  border: 2px solid white;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  cursor: grab;
}

.craving-slider::-webkit-slider-thumb:active {
  cursor: grabbing;
}

/* Confetti */
.confetti-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 100;
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  top: -20px;
  animation: confetti-fall 2s ease-out forwards;
}

@keyframes confetti-fall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(720deg);
    opacity: 0;
  }
}

/* Love Popup */
.love-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, var(--golden), var(--crispy-orange));
  color: white;
  padding: 24px 48px;
  border-radius: 20px;
  font-size: 1.5rem;
  font-weight: bold;
  z-index: 200;
  animation: love-pop 0.5s ease-out;
  box-shadow: 0 8px 32px rgba(255, 107, 53, 0.6);
}

@keyframes love-pop {
  0% { transform: translate(-50%, -50%) scale(0); }
  50% { transform: translate(-50%, -50%) scale(1.2); }
  100% { transform: translate(-50%, -50%) scale(1); }
}

/* Footer */
.footer-section {
  background: linear-gradient(135deg, var(--golden), var(--deep-gold));
  color: var(--dark-brown);
  position: relative;
  z-index: 1;
}

.dark-mode .footer-section {
  background: linear-gradient(135deg, #3D2314, #2D1810);
  color: #FFE4B5;
}

.remix-link {
  color: var(--fryer-brown);
  text-decoration: underline;
  font-weight: 600;
  transition: all 0.3s ease;
}

.dark-mode .remix-link {
  color: var(--golden);
}

.remix-link:hover {
  color: var(--crispy-orange);
}

/* Mobile Responsiveness */
@media (max-width: 640px) {
  .main-title {
    font-size: 2rem;
  }
  
  .spotlight-name {
    font-size: 2rem;
  }
  
  .craving-button {
    font-size: 1rem;
    padding: 16px 24px;
  }
  
  .timer-display {
    font-size: 1.5rem;
  }
}