
/* 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);
}

/* Animated gradient keyframes */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

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

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

/* --- HERO MODERN INPUT & CTA BUTTON --- */
.modern-gradient-group {
box-shadow: 0 4px 32px 0 rgba(102,126,234,0.18);
border-radius: 30px;
overflow: hidden;
background: none;
}
.modern-gradient-group .modern-gradient-input {
border-top-right-radius: 0;
border-bottom-right-radius: 0;
border-right: none;
box-shadow: none;
}
.modern-gradient-group .btn-gradient-cta {
border-top-left-radius: 0;
border-bottom-left-radius: 0;
height: 64px;
min-width: 64px;
font-size: 1.35rem;
display: flex;
align-items: center;
justify-content: center;
padding: 0 0.9em;
box-shadow: none;
}
.modern-gradient-group .btn-gradient-cta:focus {
outline: none;
box-shadow: 0 8px 40px 0 rgba(118,75,162,0.22);
}

.modern-gradient-input {
border: 3px solid transparent;
border-radius: 40px;
background-origin: border-box;
background-clip: padding-box, border-box;
background-image: linear-gradient(rgba(232, 232, 232, 0.9), rgba(255, 255, 255, 0.9)), linear-gradient(45deg, #667eea 0%, #764ba2 20%, #f093fb 40%, #f5576c 60%, #4facfe 80%, #00f2fe 100%);
background-size: 100% 100%, 300% 100%;
box-shadow: 0 8px 40px 0 rgba(102,126,234,0.22);
transition: border 0.3s, box-shadow 0.3s, background-image 0.3s ease;
padding-left: 2.5rem;
padding-right: 4.5rem;
height: 66px;
font-size: 1.4rem;
font-weight: 600;
max-width: 100%; 
padding-right: 70px;
animation: borderGradientShift 3s ease-in-out infinite;
will-change: background-position;
color: var(--text-color);
}

.modern-gradient-input:focus {
border: 3px solid #764ba2;
box-shadow: 0 8px 40px 0 rgba(118,75,162,0.22);
outline: none;
animation: borderGradientShift 1.5s ease-in-out infinite;
}

/* Dark mode input styles */
[data-theme="dark"] .modern-gradient-input {
border-color: transparent !important;

background-image: linear-gradient(rgba(33, 37, 41, 0.9), rgba(33, 37, 41, 0.9)), linear-gradient(45deg, #667eea 0%, #764ba2 20%, #f093fb 40%, #f5576c 60%, #4facfe 80%, #00f2fe 100%);
color: var(--text-color);
animation: borderGradientShift 3s ease-in-out infinite;
}

[data-theme="dark"] .modern-gradient-input::placeholder {
color: rgba(233, 236, 239, 0.7);
}

.btn-gradient-cta {
background: linear-gradient(90deg, #667eea 0%, #764ba2 20%, #f093fb 40%, #f5576c 60%, #4facfe 80%, #00f2fe 100%);
background-size: 300% 100%;
color: #fff;
border: none;
border-radius: 30px;
box-shadow: 0 4px 24px 0 rgba(102,126,234,0.15);
padding: 14px 36px;
font-size: 1.3rem;
font-weight: 600;
letter-spacing: 0.5px;
transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
animation: buttonGradientShift 3s ease-in-out infinite;
will-change: background-position, transform;
}
.btn-gradient-cta:hover, .btn-gradient-cta:focus {
background: linear-gradient(90deg, #2a7cf7 0%, #0a55c5 20%, #667eea 40%, #764ba2 60%, #f093fb 80%, #f5576c 100%);
background-size: 300% 100%;
color: #fff;
text-decoration: none;
outline: none;
animation: buttonGradientShift 1.5s ease-in-out infinite;
}
/* --- END HERO MODERN INPUT & CTA BUTTON --- */

.search-float-btn {
position: absolute; 
right: 6px; 
top: 50%; 
transform: translateY(-50%); 
height: 54px; 
width: 54px;
min-width: 54px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
padding: 0;
box-shadow: 0 4px 16px 0 rgba(102,126,234,0.18);
font-size:2rem;
z-index: 2;
border: none;
background: linear-gradient(90deg, #667eea 0%, #764ba2 20%, #f093fb 40%, #f5576c 60%, #4facfe 80%, #00f2fe 100%);
background-size: 300% 100%;
animation: buttonGradientShift 3s ease-in-out infinite;
transition: transform 0.2s, box-shadow 0.3s;
will-change: background-position, transform;
}

.search-float-btn:hover {
animation: buttonGradientShift 1.5s ease-in-out infinite;
transform: translateY(-50%) scale(1.05);
box-shadow: 0 6px 20px 0 rgba(102,126,234,0.25);
}

/* explore and tags cloud */


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

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

.tag-cloud-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 500;
  font-size: 1rem;
  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: 1.2rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

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



/* Animated Scroll Arrow */


.scroll-arrow-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 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);
  }
}






/* 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;
  }
}
