/* Layout and Structure */
.search-wrapper {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1rem;
  background: hsl(0deg 0% 96% / 80%);
  -webkit-backdrop-filter: saturate(200%) blur(30px);
  backdrop-filter: saturate(200%) blur(30px);
  background-color: hsla(0, 0%, 100%, .8) !important;
  box-shadow: inset 0 0 1px 1px hsla(0, 0%, 100%, .9), 0 20px 27px 0 rgba(0, 0, 0, .05) !important;
  border-bottom: 1px solid #f1f1f1;
}

/* Components */
/* Search Input */
#searchInput {
  border-radius: 2rem;
  padding: 1rem 1.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

/* Card Component */
.card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-radius: 0.85rem;
  overflow: hidden;
}

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

/* Card Image */
.card-img-container {
  height: 160px;
  overflow: hidden;
  background-color: #e9ecef;
  border-radius: 0.5rem 0.5rem 0 0;
}

.full-width .card-img-container {
  height: 320px;
}

.keyword-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: scale(0.95);
}

.keyword-image.loaded {
  opacity: 1;
  transform: scale(1);
}

/* Card Body */
.card-body {
  padding: 1rem;
}

.card-title {
  margin-bottom: 0.75rem;
}

.related-keywords {
  color: #6c757d;
  margin: 0;
}

/* Navbar */
.navbar {
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar .btn {
  transition: all 0.3s ease;
}

.navbar .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Tutorial Card */
.step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.step-number {
  background-color: #0d6efd;
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  flex-shrink: 0;
}

.step-content {
  font-size: 1.1rem;
  color: #555;
}

/* Interactive Elements */
.lazy {
  background: linear-gradient(45deg, #f0f0f0 25%, transparent 25%);
  background-size: 20px 20px;
  background-position: 0 0;
  animation: placeholder 1.2s linear infinite;
}

/* Footer */
.footer {
  position: relative;
  bottom: 0;
  width: 100%;
  font-size: 0.9rem;
}

.footer a {
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  text-decoration: underline;
  font-weight: bold;
  transition: all 0.3s ease;
}

/* Animations */
@keyframes placeholder {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: -20px 0;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .card-img-container {
    height: 140px;
  }
}
