/* Content Search Styles - Clean & Compatible */
.content-search-wrap {
  margin-bottom: 1.5rem;
}

.content-search-bar {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 0;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  max-width: 100%;
}

.content-search-bar:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.content-search-bar:focus-within {
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
  background: rgba(255, 255, 255, 0.1);
}

.content-search-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 15px;
  font-weight: 500;
  padding: 18px 20px 18px 54px;
  outline: none;
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
  min-width: 0;
  letter-spacing: 0.3px;
}

.content-search-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
  font-weight: 400;
}

.content-search-icon {
  position: absolute;
  left: 16px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 16px;
  pointer-events: none;
  transition: color 0.3s ease;
  z-index: 1;
}

.content-search-bar:focus-within .content-search-icon {
  color: #3498db;
}

.content-search-clear {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  font-size: 16px;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-right: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
}

.content-search-clear:hover {
  color: #e74c3c;
  background: rgba(231, 76, 60, 0.1);
}

/* Search Results Styling */
.search-no-results {
  text-align: center;
  padding: 3rem 1rem;
  color: rgba(255, 255, 255, 0.5);
  background: rgba(16, 20, 24, 0.4);
  border-radius: 12px;
  margin-top: 1rem;
}

.search-no-results i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.3;
}

.search-no-results h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: #ffffff;
}

.search-no-results p {
  margin: 0;
  font-size: 0.9rem;
}

/* Search Highlighting */
.search-highlight {
  background: linear-gradient(120deg, #f1c40f, #f39c12);
  color: #2c3e50;
  padding: 2px 4px;
  border-radius: 4px;
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(241, 196, 15, 0.3);
}

/* Loading State */
.content-search-loading .content-search-bar::after {
  content: '';
  position: absolute;
  right: 50px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top: 2px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: translateY(-50%) rotate(360deg);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .content-search-bar {
    max-width: 100%;
    margin-bottom: 1rem;
  }

  .content-search-input {
    font-size: 16px; /* Prevent zoom on iOS */
    padding: 14px 14px 14px 44px;
  }

  .content-search-icon {
    left: 14px;
  }

  .content-search-clear {
    padding: 10px;
    min-width: 36px;
    height: 36px;
  }
}

/* Integration with account theme */
.account-content-panel .content-search-wrap {
  margin-bottom: 2rem;
}

.account-content-panel .content-search-bar {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.account-content-panel .content-search-bar:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.account-content-panel .content-search-bar:focus-within {
  background: rgba(255, 255, 255, 0.1);
  border-color: #3498db;
}