/* ===== HOME PAGE STYLES ===== */

/* Base Styles */
.home-body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height: 100vh;
  margin: 0;
  padding: 0;
  color: #333;
}

.home-main {
  padding-bottom: 80px; /* Space for bottom nav */
  max-width: 100%;
  overflow-x: hidden;
}

/* Header Styles */
.home-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.home-header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.home-logo {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
}

.user-greeting {
  font-size: 0.9rem;
  color: #666;
  font-weight: 500;
}

/* Search Section */
.search-section {
  padding: 1.5rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.search-container {
  margin-bottom: 1.5rem;
}

.search-bar {
  position: relative;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.search-icon {
  color: #999;
  margin-left: 1rem;
  font-size: 1.1rem;
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 1rem 0.5rem;
  font-size: 1rem;
  background: transparent;
}

.search-input::placeholder {
  color: #999;
}

.search-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  color: white;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-btn:hover {
  transform: scale(1.05);
}

/* Category Pills */
.category-pills {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.category-pills::-webkit-scrollbar {
  display: none;
}

.category-pill {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  padding: 0.75rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.category-pill:hover,
.category-pill.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* Section Titles */
.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
  margin: 0 0 1rem 0;
  padding: 0 1rem;
}

/* AI Features Section */
.ai-features-section {
  margin-bottom: 2rem;
}

.ai-features-scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0 1rem 1rem 1rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.ai-features-scroll::-webkit-scrollbar {
  display: none;
}

.ai-feature-card {
  min-width: 280px;
  background: white;
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.ai-feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.digital-twin-card {
  background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.ai-stylist-card {
  background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}

.ai-feature-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  color: #333;
}

.ai-feature-content p {
  font-size: 0.9rem;
  color: #666;
  margin: 0 0 1rem 0;
}

.ai-feature-visual {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.twin-avatar {
  font-size: 3rem;
  color: #667eea;
  margin-right: 1rem;
}

.twin-clothes {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.clothing-item {
  width: 40px;
  height: 20px;
  border-radius: 8px;
  background: linear-gradient(45deg, #667eea, #764ba2);
}

.stylist-icon {
  font-size: 3rem;
  color: #ff6b6b;
  margin-bottom: 1rem;
}

.style-suggestions {
  display: flex;
  gap: 0.5rem;
}

.suggestion-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(45deg, #ff6b6b, #ffa500);
}

/* Twin Experience Section */
.twin-experience-section {
  margin-bottom: 2rem;
  padding: 0 1rem;
}

.twin-experience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.twin-experience-card {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.twin-experience-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.create-twin {
  background: linear-gradient(135deg, #e3ffe7 0%, #d9e7ff 100%);
}

.try-outfits {
  background: linear-gradient(135deg, #fff1eb 0%, #ace0f9 100%);
}

.save-looks {
  background: linear-gradient(135deg, #ffe8f7 0%, #e8f5ff 100%);
}

.twin-experience-visual {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.create-twin-icon {
  position: relative;
  font-size: 2.5rem;
  color: #4caf50;
}

.create-twin-icon .fa-plus-circle {
  position: absolute;
  top: -10px;
  right: -10px;
  font-size: 1rem;
  color: #2196f3;
}

.outfits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  width: 60px;
  margin: 0 auto;
}

.outfit-item {
  width: 25px;
  height: 25px;
  border-radius: 6px;
  background: linear-gradient(45deg, #2196f3, #21cbf3);
}

.saved-looks-icon {
  position: relative;
  font-size: 2.5rem;
  color: #e91e63;
}

.saved-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #ff5722;
  color: white;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: 600;
}

.twin-experience-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  color: #333;
}

.twin-experience-content p {
  font-size: 0.85rem;
  color: #666;
  margin: 0;
}

/* Style Assistant Section */
.style-assistant-section {
  margin-bottom: 2rem;
}

.style-assistant-scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0 1rem 1rem 1rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.style-assistant-scroll::-webkit-scrollbar {
  display: none;
}

.style-assistant-card {
  min-width: 250px;
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.style-assistant-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.advice-card {
  background: linear-gradient(135deg, #fff9e6 0%, #f0f8ff 100%);
}

.trending-card {
  background: linear-gradient(135deg, #ffe6f2 0%, #fff0e6 100%);
}

.seasonal-card {
  background: linear-gradient(135deg, #e6fff9 0%, #ffe6f0 100%);
}

.style-assistant-visual {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  position: relative;
}

.advice-icon {
  font-size: 2rem;
  color: #ffc107;
}

.advice-tips {
  margin-left: 1rem;
}

.tip-line {
  width: 30px;
  height: 3px;
  background: #ffc107;
  margin: 3px 0;
  border-radius: 2px;
}

.trending-icon {
  font-size: 2rem;
  color: #ff5722;
}

.trending-items {
  display: flex;
  gap: 0.3rem;
  margin-left: 1rem;
}

.trending-item {
  width: 15px;
  height: 15px;
  border-radius: 3px;
  background: linear-gradient(45deg, #ff5722, #ff9800);
}

.seasonal-icon {
  font-size: 2rem;
  color: #ff9800;
}

.weather-indicator {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(45deg, #ff9800, #ffc107);
  margin-left: 1rem;
}

.style-assistant-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  color: #333;
}

.style-assistant-content p {
  font-size: 0.85rem;
  color: #666;
  margin: 0;
}

/* Activity Indicator */
.activity-indicator {
  position: absolute;
  top: 10px;
  right: 10px;
  color: #4caf50;
  font-size: 0.8rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}

/* Loading States */
.loading-shimmer {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

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

/* Hover Effects */
.ai-feature-card:hover .twin-avatar,
.ai-feature-card:hover .stylist-icon {
  transform: scale(1.1);
  transition: transform 0.3s ease;
}

.twin-experience-card:hover .create-twin-icon,
.twin-experience-card:hover .saved-looks-icon {
  transform: scale(1.1);
  transition: transform 0.3s ease;
}

/* Focus States for Accessibility */
.search-input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

.category-pill:focus,
.search-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
  .home-header-container {
    padding: 0;
  }

  .home-logo {
    font-size: 1.75rem;
  }

  .user-greeting {
    font-size: 0.8rem;
  }

  .search-section {
    padding: 1rem;
  }

  .section-title {
    font-size: 1.3rem;
    padding: 0 0.5rem;
  }

  .twin-experience-grid {
    grid-template-columns: 1fr;
    padding: 0 0.5rem;
  }

  .ai-features-scroll,
  .style-assistant-scroll {
    padding: 0 0.5rem 1rem 0.5rem;
  }

  .ai-feature-card,
  .style-assistant-card {
    min-width: 260px;
  }
}

@media (max-width: 480px) {
  .home-logo {
    font-size: 1.5rem;
  }

  .search-section {
    padding: 0.75rem;
  }

  .ai-feature-card,
  .style-assistant-card {
    min-width: 240px;
    padding: 1.25rem;
  }

  .twin-experience-card {
    padding: 1.25rem;
  }

  .category-pills {
    gap: 0.5rem;
  }

  .category-pill {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }
}

/* Dark mode support (if needed in future) */
@media (prefers-color-scheme: dark) {
  .home-body {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #fff;
  }

  .home-header {
    background: rgba(0, 0, 0, 0.95);
    border-bottom-color: rgba(255, 255, 255, 0.1);
  }

  .search-bar,
  .category-pill,
  .ai-feature-card,
  .twin-experience-card,
  .style-assistant-card {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
  }

  .search-input::placeholder {
    color: #ccc;
  }
}
