/**
 * Novel Search Styles
 *
 * @package Blogus Child
 * @subpackage QuickMTL
 * @since 1.0.0
 */

/* Search Form Styles */
.novel-search-form {
  margin-bottom: 30px;
  width: 100%;
  box-sizing: border-box;
}

#novel-search-input {
  width: 100%;
  padding: 10px 15px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 16px;
  box-sizing: border-box;
}

#novel-search-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.novel-search-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 15px;
  width: 100%;
  box-sizing: border-box;
}

.filter-group {
  flex: 1;
  min-width: 120px;
}

.filter-group label {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
  font-weight: 500;
}

.novel-search-filters select {
  width: 100%;
  padding: 8px 10px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: var(--background-card);
  color: var(--text-color);
  font-size: 14px;
  appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="6"><path d="M0 0l6 6 6-6z" fill="%23f8fafc"/></svg>');
  background-repeat: no-repeat;
  background-position: right 10px center;
  cursor: pointer;
}

.novel-search-filters select:focus {
  outline: none;
  border-color: var(--primary-color);
}

.novel-search-filters select option {
  background-color: var(--background-card);
  color: var(--text-color);
}

/* Loading Indicator */
.novels-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 0;
  width: 100%;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  border-top-color: var(--primary-color, #6c5ce7);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* No Results Message */
.no-results {
  text-align: center;
  padding: 40px 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 18px;
}

.error-message {
  text-align: center;
  padding: 40px 0;
  color: #ff6b6b;
  font-size: 18px;
}

/* Pagination Styles */
.novels-pagination {
  margin-top: 30px;
  text-align: center;
}

.novels-pagination .page-numbers {
  display: inline-block;
  padding: 8px 12px;
  margin: 0 5px;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.05);
  color: #fff;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.novels-pagination .page-numbers.current {
  background-color: var(--primary-color, #6c5ce7);
  color: #fff;
}

.novels-pagination .page-numbers:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Responsive Styles */
@media (max-width: 768px) {
  .novel-search-filters {
    flex-direction: column;
    gap: 10px;
  }
  
  .filter-group {
    width: 100%;
    min-width: 100%;
  }
  
  #novel-search-input {
    padding: 8px 12px;
    font-size: 14px;
  }
  
  .novel-search-filters select {
    padding: 8px 10px;
    font-size: 13px;
  }
  
  .novels-pagination .page-numbers {
    padding: 6px 10px;
    font-size: 14px;
    margin: 0 3px;
  }
}

@media (max-width: 576px) {
  .novel-search-form {
    margin-bottom: 20px;
  }
  
  #novel-search-input {
    padding: 6px 10px;
    font-size: 13px;
  }
  
  .filter-group label {
    font-size: 13px;
  }
  
  .novel-search-filters select {
    padding: 6px 8px;
    font-size: 12px;
  }
  
  .novels-pagination .page-numbers {
    padding: 5px 8px;
    font-size: 13px;
    margin: 0 2px;
  }
}