/* Chanel AI Market Explorer - Elegant Styling */
/* "Discover. Curate. Decide with confidence—at your tier, your world." */

.chanel-explorer-container {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #2a2a2a 100%);
  position: relative;
  overflow: hidden;
}

.chanel-explorer-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, #fbbf24 50%, transparent 100%);
}

/* Tier Status Styling */
.tier-status-display {
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Search Input Enhancement */
#chanel-search-input {
  font-size: 1.1rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#chanel-search-input:focus {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 8px 40px rgba(251, 191, 36, 0.3);
  transform: translateY(-2px);
}

#chanel-search-input::placeholder {
  color: #9ca3af;
  font-style: italic;
}

/* Search Button Enhancement */
#search-button {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
  font-weight: 700;
  letter-spacing: 0.5px;
}

#search-button:hover {
  box-shadow: 0 6px 25px rgba(251, 191, 36, 0.6);
  transform: translateY(-2px) scale(1.05);
}

/* Suggestion Tags */
.suggestion-tag {
  background: rgba(55, 65, 81, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(107, 114, 128, 0.3);
  font-weight: 500;
  transition: all 0.3s ease;
}

.suggestion-tag:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
}

/* Progress Bar Animation */
#progress-bar {
  background: linear-gradient(90deg, #fbbf24, #f59e0b, #fbbf24);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Product Cards */
.product-card {
  background: rgba(31, 41, 55, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(75, 85, 99, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #fbbf24 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-card:hover {
  background: rgba(31, 41, 55, 0.95);
  border-color: #fbbf24;
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.product-card:hover::before {
  opacity: 1;
}

/* Image Gallery Enhancements */
.image-gallery {
  gap: 0.75rem;
}

.image-thumbnail {
  background: rgba(55, 65, 81, 0.5);
  border: 2px solid transparent;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.image-thumbnail::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(251, 191, 36, 0.1) 50%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.image-thumbnail:hover::before {
  opacity: 1;
}

.image-thumbnail img {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  filter: contrast(1.1) saturate(1.1);
}

.image-thumbnail:hover img {
  transform: scale(1.1);
}

/* Lightbox Enhancements */
#image-lightbox {
  backdrop-filter: blur(20px);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

#lightbox-image {
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8);
  border: 2px solid rgba(251, 191, 36, 0.3);
}

#lightbox-info {
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.9) 100%);
  backdrop-filter: blur(10px);
}

/* Button Enhancements */
button {
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
  transition: all 0.3s ease;
  transform: translate(-50%, -50%);
  z-index: 1;
}

button:hover::before {
  width: 200px;
  height: 200px;
}

button i {
  position: relative;
  z-index: 2;
}

button span {
  position: relative;
  z-index: 2;
}

/* Condition Badge Styles */
.bg-green-600 { background-color: #059669; }
.bg-blue-600 { background-color: #2563eb; }
.bg-purple-600 { background-color: #9333ea; }
.bg-indigo-600 { background-color: #4f46e5; }
.bg-yellow-600 { background-color: #d97706; }
.bg-orange-600 { background-color: #ea580c; }
.bg-pink-600 { background-color: #db2777; }
.bg-gray-600 { background-color: #4b5563; }

/* Tier-Specific Accents */
.tier-free .accent { color: #9ca3af; }
.tier-collector .accent { color: #3b82f6; }
.tier-professional .accent { color: #a855f7; }

/* Responsive Design */
@media (max-width: 768px) {
  .chanel-explorer-container {
    padding: 1rem;
  }
  
  .image-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .product-card {
    padding: 1rem;
  }
  
  #chanel-search-input {
    font-size: 1rem;
    padding: 0.75rem 1rem;
    padding-right: 4rem;
  }
  
  #search-button {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }
}

@media (max-width: 480px) {
  .tier-status-display .flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .image-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
}

/* Loading States */
.loading-skeleton {
  background: linear-gradient(90deg, #374151 25%, #4b5563 50%, #374151 75%);
  background-size: 200% 100%;
  animation: loading 2s infinite;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Notification Styles */
.notification-enter {
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.notification-enter-active {
  transform: translateX(0);
}

.notification-exit {
  transform: translateX(0);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.notification-exit-active {
  transform: translateX(100%);
}

/* Accessibility Enhancements */
button:focus,
input:focus,
.image-thumbnail:focus {
  outline: 2px solid #fbbf24;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .product-card {
    border-color: #ffffff;
  }
  
  .image-thumbnail {
    border-color: #ffffff;
  }
}

/* Dark mode enhancements */
@media (prefers-color-scheme: dark) {
  .chanel-explorer-container {
    background: linear-gradient(135deg, #000000 0%, #111111 50%, #222222 100%);
  }
}