
/* Hero Section */
.hero-section {
  min-height: 48vh;
  display: flex;
  align-items: center;
  background: var(--bg-color); 
  color: var(--text-color) !important;
  transition: background-color 0.3s ease, color 0.3s ease;
  /* margin-bottom: 30vh; */
  /* background: linear-gradient(0deg, rgba(0, 0, 0, 0.05) 10%, var(--bg-color) 100%); */
}

.hero-section h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-color);
}

/* Tighten spacing below the search form in hero */
.hero-section .container form.position-relative {
  margin-bottom: 0.5rem !important;
}

/* Animated gradient keyframes (Moved to styles.css) */

/* --- HERO MODERN INPUT & CTA BUTTON (Moved to styles.css) --- */

/* explore and tags cloud */


.tag-cloud-container {
  text-align: center;
  padding: 0 0 1rem 0;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.tag-cloud-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
  position: relative;
  overflow: hidden;
}

.tag-cloud-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
  color: white;
  text-decoration: none;
}

.tag-cloud-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.tag-cloud-item:hover::before {
  left: 100%;
}

.tag-emoji {
  font-size: 1rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.tag-text {
  font-weight: 600;
  letter-spacing: 0.5px;
}

.tag-cloud-item.is-hidden {
  display: none;
}

/* Toggle Categories Button */
.btn-toggle-categories {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  border: 2px solid rgba(102, 126, 234, 0.3);
  border-radius: 50px;
  color: var(--text-color);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(102, 126, 234, 0.15);
  position: relative;
  overflow: hidden;
}

.btn-toggle-categories::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  transition: left 0.3s ease;
  z-index: 0;
}

.btn-toggle-categories:hover::before {
  left: 0;
}

.btn-toggle-categories:hover {
  border-color: rgba(102, 126, 234, 0.6);
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
  transform: translateY(-2px);
}

.btn-toggle-categories .btn-toggle-text,
.btn-toggle-categories i {
  position: relative;
  z-index: 1;
  transition: color 0.3s ease, transform 0.3s ease;
}

.btn-toggle-categories:hover .btn-toggle-text,
.btn-toggle-categories:hover i {
  color: white;
}

.btn-toggle-categories:hover i {
  transform: translateY(2px);
}

.btn-toggle-categories:active {
  transform: translateY(0);
}

/* Dark mode support */
[data-theme="dark"] .btn-toggle-categories {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
  border-color: rgba(102, 126, 234, 0.4);
  color: var(--text-color);
}

[data-theme="dark"] .btn-toggle-categories:hover {
  border-color: rgba(102, 126, 234, 0.7);
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
}



/* Animated Scroll Arrow */


.scroll-arrow-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.75rem 0;
  position: relative;
}

.scroll-arrow {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: transform 0.3s ease;
  text-decoration: none;
}

.scroll-arrow:hover {
  transform: scale(1.1);
}

.scroll-arrow i {
  font-size: 2.5rem;
  font-weight: bold;
  background: linear-gradient(0deg,#41b497,#7f47c5,#c29c46,#41b497,#7f47c5);
  background-size: 100% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: arrowGradientShift 1s linear infinite, arrowBounce 2s ease-in-out infinite;
  will-change: background-position, transform;
  text-shadow: none;
}

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

@keyframes arrowBounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(10px);
  }
  60% {
    transform: translateY(5px);
  }
}

/* CTA Button Styles */
.btn-gradient-cta {
  background: linear-gradient(135deg, var(--primary-color), #0056b3);
  color: #fff;
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 16px 0 rgba(13, 110, 253, 0.3);
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-gradient-cta:hover,
.btn-gradient-cta:focus {
  background: linear-gradient(135deg, #0056b3, var(--primary-color));
  color: #fff;
  text-decoration: none;
  outline: none;
  box-shadow: 0 6px 20px 0 rgba(13, 110, 253, 0.4);
  transform: translateY(-1px);
}

/* Dark mode support for CTA button */
[data-theme="dark"] .btn-gradient-cta {
  background: linear-gradient(135deg, #0d6efd, #0b5ed7);
  color: #fff;
  box-shadow: 0 4px 16px 0 rgba(13, 110, 253, 0.4);
}

[data-theme="dark"] .btn-gradient-cta:hover,
[data-theme="dark"] .btn-gradient-cta:focus {
  background: linear-gradient(135deg, #0b5ed7, #0a58ca);
  color: #fff;
  box-shadow: 0 6px 20px 0 rgba(13, 110, 253, 0.5);
}


/* Responsive adjustments */
@media (max-width: 768px) {
  .tag-cloud {
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
  
  .tag-cloud-item {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
  }
  
  .tag-emoji {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .tag-cloud-item {
      padding: 0.3rem 0.55rem;
      font-size: 0.7rem;
  }
  
  .tag-emoji {
      font-size: 1rem;
  }
  
  .hero-section {
    min-height: 32vh;
  }
  
  .hero-section h1 {
    font-size: 1.5rem;
  }

  .modern-gradient-input {
    padding-left: 1.25rem;
    font-size: 1.1rem;
  }
  
  .scroll-arrow {
    width: 50px;
    height: 50px;
  }
  
  .scroll-arrow i {
    font-size: 1.2rem;
  }
}
