* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-display: swap;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  min-height: 100dvh;
  color: #333;
  -webkit-font-smoothing: antialiased;
}

.App {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.App-header {
  background: rgba(255, 255, 255, 0.95);
  padding: clamp(1rem, 3vw, 2rem);
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  width: 100%;
}

.App-header h1 {
  color: #667eea;
  font-size: clamp(1.3rem, 4vw, 2rem);
  margin-bottom: clamp(0.25rem, 0.5vw, 0.5rem);
  line-height: 1.2;
}

.App-header p {
  color: #666;
  font-size: clamp(0.75rem, 2vw, 1rem);
}

.nav-links {
  margin-top: clamp(1rem, 2vw, 1.5rem);
  display: flex;
  gap: clamp(0.5rem, 2vw, 1rem);
  justify-content: center;
  flex-wrap: wrap;
}

.nav-links a, .logout-btn {
  padding: clamp(0.4rem, 1.5vw, 0.5rem) clamp(1rem, 3vw, 1.5rem);
  background: #667eea;
  color: white;
  text-decoration: none;
  border-radius: 25px;
  border: none;
  cursor: pointer;
  font-size: clamp(0.85rem, 2vw, 1rem);
  transition: all 0.3s;
  white-space: nowrap;
}

.nav-links a:hover, .logout-btn:hover {
  background: #764ba2;
  transform: translateY(-2px);
}

.App-main {
  flex: 1;
  padding: clamp(0.75rem, 2.5vw, 2rem);
  width: min(100% - clamp(0.5rem, 2vw, 2rem), 1200px);
  max-width: 100%;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.95);
  color: #333 !important;
  border-radius: clamp(8px, 1.5vw, 10px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.App-footer {
  background: rgba(255, 255, 255, 0.9);
  padding: clamp(0.5rem, 2vw, 1rem);
  text-align: center;
  color: #666;
  font-size: clamp(0.75rem, 1.5vw, 1rem);
  width: 100%;
}

.spin-wheel-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  width: 100%;
}

.wheel-canvas {
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  max-width: min(90vw, 500px);
  height: auto !important;
  width: auto !important;
}

.spin-button {
  padding: clamp(0.6rem, 1.5vw, 0.8rem) clamp(1.5rem, 4vw, 2.5rem);
  font-size: clamp(0.9rem, 2.5vw, 1.2rem);
  background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
  color: white;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-weight: bold;
  box-shadow: 0 5px 15px rgba(255,107,107,0.4);
  transition: all 0.3s;
  width: min(80%, 300px);
}

.spin-button:hover:not(:disabled) {
  transform: scale(1.05);
}

.result-section {
  background: white;
  padding: clamp(1rem, 3vw, 2rem);
  border-radius: clamp(15px, 2vw, 20px);
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  width: 100%;
}

/* ========== RESULT SECTION SPACING ========== */
.wiki-info {
  margin-bottom: clamp(1rem, 3vw, 1.5rem) !important;
  padding: clamp(0.75rem, 2vw, 1rem) !important;
  background: #f8f9fa !important;
  border-radius: 12px !important;
  text-align: left !important;
}

.wiki-fallback {
  margin-bottom: clamp(1rem, 3vw, 1.5rem) !important;
  padding: clamp(0.75rem, 2vw, 1rem) !important;
  background: #f8f9fa !important;
  border-radius: 12px !important;
  color: #666 !important;
}

.meal-tag {
  margin: clamp(0.75rem, 2vw, 1rem) 0 clamp(1.5rem, 4vw, 2rem) 0 !important;
  padding: clamp(0.5rem, 1.5vw, 0.75rem) !important;
  background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%) !important;
  border-radius: 12px !important;
  font-weight: bold !important;
  font-size: clamp(14px, 2.5vw, 18px) !important;
  color: #333 !important;
}

.result-actions {
  margin-top: clamp(0.5rem, 2vw, 1rem) !important;
  display: flex !important;
  gap: clamp(10px, 2vw, 20px) !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
}



.food-name {
  color: #667eea;
  font-size: clamp(1.2rem, 3.5vw, 1.6rem);
  margin: 0.3rem 0;
}

.food-list-container {
  background: white;
  padding: clamp(1rem, 3vw, 2rem);
  border-radius: clamp(15px, 2vw, 20px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  color: #333 !important;
  width: 100%;
}

.food-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(clamp(140px, 30vw, 200px), 1fr));
  gap: clamp(0.75rem, 2vw, 1rem);
  margin-top: clamp(1rem, 3vw, 2rem);
}

.food-card {
  background: linear-gradient(135deg, #ff6b6b, #ff8b94);
  padding: clamp(1rem, 2vw, 1.5rem);
  border-radius: clamp(10px, 1.5vw, 15px);
  text-align: center;
  color: white !important;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.food-card:hover {
  transform: translateY(-5px);
}

.food-emoji {
  font-size: clamp(1.5rem, 4vw, 2rem);
  display: block;
  margin-bottom: clamp(0.25rem, 1vw, 0.5rem);
}

.nearby-shops-container {
  background: white;
  padding: clamp(0.75rem, 2.5vw, 2rem);
  border-radius: clamp(10px, 1.5vw, 15px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  margin: clamp(0.5rem, 2vw, 2rem) auto;
  width: min(100% - clamp(0.5rem, 2vw, 2rem), 1200px);
  max-width: 100%;
}


/* ========== MODERN NEARBY SHOPS SECTION ========== */

/* Modern Shop Cards with Glass Morphism */
.shop-card {
  background: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(10px) !important;
  padding: clamp(1rem, 3vw, 1.5rem) !important;
  border-radius: 16px !important;
  margin: clamp(0.75rem, 2vw, 1rem) 0 !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  box-shadow: 0 8px 32px rgba(102, 126, 234, 0.15) !important;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
  position: relative !important;
  overflow: hidden !important;
}

.shop-card::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 4px !important;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%) !important;
}

.shop-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 12px 48px rgba(102, 126, 234, 0.25) !important;
  background: rgba(255, 255, 255, 0.95) !important;
}

/* Shop Name Styling */
.shop-card h3 {
  font-size: clamp(1rem, 2.5vw, 1.2rem) !important;
  color: #2d3748 !important;
  margin-bottom: clamp(0.4rem, 2vw, 0.75rem) !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
}

/* Shop Details */
.shop-details p {
  margin: clamp(0.25rem, 1vw, 0.5rem) 0 !important;
  font-size: clamp(0.8rem, 2vw, 0.95rem) !important;
  line-height: 1.6 !important;
  color: #4a5568 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.shop-details strong {
  color: #667eea !important;
  font-weight: 600 !important;
}

/* Modern Search Button */
.search-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  color: white !important;
  padding: clamp(10px, 2vw, 14px) clamp(20px, 4vw, 36px) !important;
  border: none !important;
  border-radius: 50px !important;
  font-size: clamp(12px, 2vw, 16px) !important;
  font-weight: bold !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4) !important;
  position: relative !important;
  overflow: hidden !important;
  margin: clamp(0.5rem, 2vw, 1rem) 0 !important;
}

.search-btn:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5) !important;
}

.search-btn:active {
  transform: translateY(-1px) !important;
}

.search-btn::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: -100% !important;
  width: 100% !important;
  height: 100% !important;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent) !important;
  transition: left 0.5s !important;
}

.search-btn:hover::before {
  left: 100% !important;
}

/* Modern Cache Info */
.cache-info {
  background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%) !important;
  padding: clamp(0.75rem, 2vw, 1rem) clamp(1rem, 3vw, 1.5rem) !important;
  border-radius: 12px !important;
  margin: clamp(0.75rem, 2vw, 1rem) 0 !important;
  box-shadow: 0 4px 15px rgba(252, 182, 159, 0.3) !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
}

.cache-info p {
  margin: 0 !important;
  font-size: clamp(0.75rem, 1.5vw, 0.9rem) !important;
  color: #2d3748 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.refresh-btn {
  background: rgba(255, 255, 255, 0.9) !important;
  border: 2px solid #667eea !important;
  color: #667eea !important;
  padding: 6px 16px !important;
  border-radius: 20px !important;
  font-size: clamp(12px, 1.5vw, 14px) !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
}

.refresh-btn:hover {
  background: #667eea !important;
  color: white !important;
  transform: scale(1.05) !important;
}

/* Photo Gallery */
.photo-gallery {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(clamp(80px, 20vw, 120px), 1fr)) !important;
  gap: clamp(4px, 1vw, 8px) !important;
  margin: clamp(0.5rem, 2vw, 1rem) 0 !important;
}

.photo-gallery .shop-photo {
  width: 100% !important;
  aspect-ratio: 1 !important;
  object-fit: cover !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
  cursor: pointer !important;
  border: 2px solid transparent !important;
}

.photo-gallery .shop-photo:hover {
  transform: scale(1.08) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2) !important;
  border-color: #667eea !important;
}

/* Shop Status Badge */
.shop-status {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 4px 12px !important;
  border-radius: 20px !important;
  font-size: clamp(12px, 1.5vw, 14px) !important;
  font-weight: 600 !important;
  margin: 4px 0 !important;
}

.shop-status.open {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%) !important;
  color: white !important;
}

.shop-status.closed {
  background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%) !important;
  color: white !important;
}

/* ========== END MODERN SHOPS SECTION ========== */


.shop-card {
  background: #f8f9fa;
  padding: clamp(0.75rem, 2vw, 1.5rem);
  border-radius: clamp(8px, 1.5vw, 12px);
  margin: clamp(0.5rem, 2vw, 0.75rem) 0;
  border-left: 4px solid #4ecdc4;
}

.shop-details p {
  margin: clamp(0.25rem, 1vw, 0.5rem) 0;
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  line-height: 1.6;
}

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(clamp(80px, 20vw, 100px), 1fr));
  gap: clamp(4px, 1vw, 8px);
  margin: 1rem 0;
}

.photo-gallery .shop-photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: clamp(6px, 1vw, 8px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s;
  cursor: pointer;
}

.photo-gallery .shop-photo:hover {
  transform: scale(1.05);
}

.admin-container {
  background: white;
  padding: clamp(1rem, 3vw, 2rem);
  border-radius: clamp(15px, 2vw, 20px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  width: 100%;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: clamp(0.5rem, 2vw, 1rem);
  font-size: clamp(0.7rem, 1.5vw, 0.9rem);
}

.admin-table th, .admin-table td {
  padding: clamp(0.5rem, 1.5vw, 1rem);
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.admin-table th {
  background: #667eea;
  color: white;
}

.auth-container {
  max-width: min(90vw, 400px);
  margin: clamp(1rem, 3vw, 2rem) auto;
  background: white;
  padding: clamp(1.5rem, 4vw, 2rem);
  border-radius: clamp(15px, 2vw, 20px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  width: 100%;
}

.auth-form input {
  padding: clamp(0.5rem, 1.5vw, 0.7rem);
  border: 2px solid #ddd;
  border-radius: clamp(8px, 1vw, 10px);
  font-size: clamp(0.8rem, 2vw, 0.95rem);
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .wheel-canvas {
    width: min(85vw, 400px) !important;
    height: min(85vw, 400px) !important;
  }
  
  .nav-links {
    flex-direction: column;
    align-items: center;
  }
  
  .result-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .shops-filters {
    flex-direction: column;
    align-items: stretch;
  }
  
  .filter-group {
    flex-direction: column;
    align-items: flex-start;
  }
}



/* ========== ENHANCED BUTTONS: FIND SHOPS & SPIN AGAIN ========== */
.find-shops-btn,
.spin-again-btn {
  padding: clamp(10px, 2vw, 14px) clamp(16px, 4vw, 32px) !important;
  border: none !important;
  border-radius: 50px !important;
  font-size: clamp(12px, 2vw, 16px) !important;
  font-weight: bold !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2) !important;
  position: relative !important;
  overflow: hidden !important;
  margin: 8px 4px !important;
}

.find-shops-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  color: white !important;
}

.spin-again-btn {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%) !important;
  color: white !important;
}

.find-shops-btn:hover,
.spin-again-btn:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3) !important;
}

.find-shops-btn:active,
.spin-again-btn:active {
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2) !important;
}

/* Shimmer effect on hover */
.find-shops-btn::before,
.spin-again-btn::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: -100% !important;
  width: 100% !important;
  height: 100% !important;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent) !important;
  transition: left 0.5s !important;
}

.find-shops-btn:hover::before,
.spin-again-btn:hover::before {
  left: 100% !important;
}

/* ========== END ENHANCED BUTTONS ========== */

/* ========== MOBILE ALIGNMENT FIXES ========== */

/* Fix navigation on mobile - keep horizontal with wrapping */
@media (max-width: 768px) {
  .nav-links {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: clamp(0.25rem, 1vw, 0.5rem) !important;
  }
  
  .nav-links a, .logout-btn {
    padding: clamp(0.3rem, 1vw, 0.4rem) clamp(0.8rem, 2vw, 1rem) !important;
    font-size: clamp(0.8rem, 2vw, 0.9rem) !important;
  }
}

/* Left-align text blocks on mobile for better readability */
@media (max-width: 768px) {
  .App-header p,
  .shop-details p,
  .food-list-container p,
  .auth-form,
  .error,
  .message,
  .login-prompt,
  .shops-filter-info p {
    text-align: left !important;
  }
}

/* Fix meal time filter alignment */
@media (max-width: 768px) {
  .meal-filter {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    gap: 0.5rem !important;
  }
  
  .meal-filter label {
    white-space: nowrap;
    margin-right: 0.5rem;
  }
  
  .meal-filter select {
    flex: 1;
    min-width: 0;
    width: auto !important;
  }
}

/* Fix photo gallery to use full width */
@media (max-width: 768px) {
  .photo-gallery {
    grid-template-columns: repeat(auto-fill, minmax(clamp(60px, 18vw, 80px), 1fr)) !important;
    gap: clamp(3px, 0.8vw, 6px) !important;
  }
}

/* Maximize content width on mobile */
@media (max-width: 768px) {
  .App-main {
    width: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important;
    padding: clamp(0.5rem, 2vw, 1rem) !important;
  }
  
  .nearby-shops-container {
    width: 100% !important;
    margin: clamp(0.25rem, 1vw, 0.5rem) 0 !important;
    border-radius: clamp(8px, 1vw, 10px) !important;
  }
}

/* Fix result section on mobile */
@media (max-width: 768px) {
  .result-section {
    padding: clamp(0.75rem, 2vw, 1.5rem) !important;
  }
  
  .result-actions {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  
  .find-shops-btn,
  .spin-again-btn {
    width: 100% !important;
    text-align: center !important;
  }
}

/* Fix wheel canvas on mobile */
@media (max-width: 768px) {
  .wheel-canvas {
    width: min(95vw, 350px) !important;
    height: min(95vw, 350px) !important;
  }
  
  .spin-button {
    width: min(90%, 280px) !important;
    padding: clamp(0.6rem, 1.5vw, 0.8rem) clamp(1.5rem, 4vw, 2.5rem) !important;
  }
}


/* ========== LIGHTBOX NAVIGATION ========== */
.photo-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  cursor: pointer;
}

.photo-lightbox-content {
  position: relative;
  max-width: 95%;
  max-height: 95%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.photo-lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: clamp(6px, 1vw, 8px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}

/* Navigation Arrows */
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  border: none;
  padding: clamp(8px, 1.5vw, 12px) clamp(12px, 2vw, 18px);
  cursor: pointer;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  border-radius: 50%;
  transition: all 0.3s;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(40px, 8vw, 50px);
  height: clamp(40px, 8vw, 50px);
}

.lightbox-nav:hover:not(:disabled) {
  background: white;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.lightbox-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.lightbox-left {
  left: clamp(5px, 2vw, 15px);
}

.lightbox-right {
  right: clamp(5px, 2vw, 15px);
}

/* Photo Counter */
.lightbox-counter {
  position: absolute;
  bottom: -35px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: clamp(4px, 1vw, 8px) clamp(10px, 2vw, 16px);
  border-radius: 20px;
  font-size: clamp(0.8rem, 1.5vw, 1rem);
  font-weight: bold;
  white-space: nowrap;
}

.close-lightbox {
  position: absolute;
  top: clamp(-45px, -6vw, -40px);
  right: 0;
  background: white;
  color: #333;
  border: none;
  padding: clamp(6px, 1.2vw, 10px) clamp(12px, 2vw, 18px);
  border-radius: clamp(4px, 0.5vw, 5px);
  cursor: pointer;
  font-size: clamp(10px, 1.5vw, 14px);
  font-weight: bold;
  transition: all 0.3s;
}

.close-lightbox:hover {
  background: #f0f0f0;
  transform: scale(1.05);
}

/* Mobile-specific lightbox styles */
@media (max-width: 768px) {
  .lightbox-nav {
    width: clamp(35px, 10vw, 45px);
    height: clamp(35px, 10vw, 45px);
    font-size: clamp(1rem, 4vw, 1.5rem);
  }
  
  .lightbox-left {
    left: clamp(3px, 1vw, 8px);
  }
  
  .lightbox-right {
    right: clamp(3px, 1vw, 8px);
  }
  
  .lightbox-counter {
    bottom: -30px;
    font-size: clamp(0.7rem, 2vw, 0.9rem);
  }
  
  .close-lightbox {
    top: clamp(-35px, -5vw, -30px);
    padding: clamp(4px, 1vw, 8px) clamp(10px, 1.5vw, 14px);
  }
}


/* Prevent browser default touch behaviors on lightbox */
.photo-lightbox-content {
  touch-action: manipulation;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}


/* ========== FIX WHEEL SHAPE & ALIGNMENT ========== */

/* Ensure wheel canvas stays perfectly round */
.wheel-canvas {
  aspect-ratio: 1 / 1 !important;
  width: min(90vw, 400px) !important;
  height: auto !important;
  max-width: 100%;
  display: block;
  margin: 0 auto;
}

/* Center the result section */
.result-section {
  text-align: center !important;
}

.result-section h2,
.result-section .food-name,
.result-section .food-emoji {
  text-align: center !important;
}

/* Center the "You should eat:" text and explosion graphic */
.result-section > div:first-child {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
}

/* Fix navigation buttons on mobile - horizontal layout */
@media (max-width: 768px) {
  .nav-links {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: clamp(0.25rem, 1vw, 0.5rem) !important;
    padding: 0 clamp(0.5rem, 2vw, 1rem) !important;
  }
  
  .nav-links a, .logout-btn {
    flex: 0 1 auto !important;
    min-width: 0 !important;
    padding: clamp(0.3rem, 1vw, 0.4rem) clamp(0.6rem, 2vw, 0.8rem) !important;
    font-size: clamp(0.75rem, 2vw, 0.9rem) !important;
  }
  
  /* Ensure wheel is not stretched */
  .wheel-canvas {
    width: min(85vw, 350px) !important;
    max-width: 90% !important;
  }
  
  /* Center tip text */
  .spin-wheel-container > p {
    text-align: center !important;
    padding: 0 1rem !important;
  }
}

/* Meal time filter alignment */
.meal-filter {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  margin: 1rem auto !important;
  width: auto !important;
  flex-wrap: wrap !important;
}

.meal-filter label {
  white-space: nowrap !important;
  margin: 0 !important;
}

.meal-filter select {
  width: auto !important;
  min-width: 120px !important;
}


/* ========== WHEEL WRAPPER & POINTER ALIGNMENT ========== */
.wheel-wrapper {
  position: relative !important;
  display: block !important;
  margin: 0 auto !important;
  width: min(90vw, 400px) !important;
}

.wheel-pointer {
  position: absolute !important;
  top: -15px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  font-size: clamp(1.2rem, 3vw, 1.5rem) !important;
  color: #ff6b6b !important;
  z-index: 10 !important;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3) !important;
}

/* Force wheel canvas to be perfectly round */
.wheel-canvas {
  aspect-ratio: 1 / 1 !important;
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  display: block !important;
  margin: 0 auto !important;
}

/* Ensure rotation transform origin is center */
.wheel-wrapper > canvas {
  transform-origin: center center !important;
}


/* ========== WHEEL SECTION CENTERING ========== */
.wheel-section {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  width: 100% !important;
  margin: clamp(1rem, 3vw, 2rem) 0 !important;
}

/* Center all text elements below wheel */
.wheel-section p {
  text-align: center !important;
  margin: 0.5rem auto !important;
}

/* Center the result section */
.result-section {
  text-align: center !important;
  margin: 1rem auto !important;
}


/* ========== WIKIPEDIA LOADING ========== */
.wiki-loading {
  text-align: center !important;
  padding: clamp(1rem, 3vw, 2rem) !important;
  color: #666 !important;
  font-style: italic !important;
}

.wiki-loading p::after {
  content: '...';
  animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
  0%, 20% { content: '.'; }
  40% { content: '..'; }
  60%, 100% { content: '...'; }
}


/* ========== ENHANCED FILTER INFO BOX ========== */
.shops-filter-info {
  background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%) !important;
  border-radius: 16px !important;
  padding: clamp(1rem, 3vw, 1.5rem) !important;
  margin: clamp(1rem, 3vw, 1.5rem) 0 !important;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
  border: 2px solid rgba(255,255,255,0.3) !important;
  backdrop-filter: blur(10px) !important;
}

.shops-filter-info p {
  font-size: clamp(16px, 2.5vw, 20px) !important;
  font-weight: bold !important;
  color: #333 !important;
  margin-bottom: clamp(0.5rem, 2vw, 1rem) !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.shops-filter-info ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.shops-filter-info li {
  padding: clamp(6px, 1.5vw, 10px) clamp(10px, 2vw, 16px) !important;
  margin: clamp(4px, 1vw, 8px) 0 !important;
  background: rgba(255,255,255,0.7) !important;
  border-radius: 10px !important;
  font-size: clamp(14px, 2vw, 16px) !important;
  color: #444 !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  transition: all 0.3s ease !important;
  border-left: 4px solid #667eea !important;
}

.shops-filter-info li:hover {
  background: rgba(255,255,255,0.9) !important;
  transform: translateX(5px) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
}

.shops-filter-info li strong {
  color: #667eea !important;
  font-weight: 700 !important;
}
