.search-page-form {
  text-align: center;
  margin: 20px 0;
}

/* Search page styles - Modern Design */
.search-form { 
  margin: 0px 0; 
  position: relative; 
}

.search-input {
  padding: 14px 20px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  width: 60%;
  max-width: 500px;
  font-size: 16px;
  font-family: inherit;
  transition: all 0.3s ease;
  background: #fafafa;
}

.search-input:focus {
  border-color: #b00;
  outline: none;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(187, 0, 0, 0.1);
}

.search-btn {
  padding: 14px 28px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #b00 0%, #900 100%);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  margin-left: 10px;
  font-family: inherit;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(187, 0, 0, 0.3);
}

.search-btn:hover {
  background: linear-gradient(135deg, #c00 0%, #a00 100%);
  box-shadow: 0 4px 12px rgba(187, 0, 0, 0.4);
  transform: translateY(-1px);
}

.search-info {
  color: #666;
  margin: 25px 0;
  padding-bottom: 15px;
  border-bottom: 2px solid #f0f0f0;
  font-size: 15px;
}

.search-info strong {
  color: #b00;
  font-size: 18px;
}

.search-results {
  margin-top: 25px;
}

.search-result {
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #f0f0f0;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.search-result:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transform: translateY(-2px);
  border-color: #e0e0e0;
}

.search-result:last-child {
  margin-bottom: 0;
}

.result-type {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  margin-bottom: 10px;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.result-type.command {
  background: linear-gradient(135deg, #b00 0%, #900 100%);
}

.result-type.tutorial {
  background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
}

.result-type.topic {
  background: linear-gradient(135deg, #17a2b8 0%, #117a8b 100%);
}

.result-type.command_group {
  background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
  color: #333;
}

.result-title {
  margin: 8px 0;
  font-size: 20px;
  font-weight: 600;
}

.result-title a {
  color: #333;
  text-decoration: none;
  transition: color 0.2s ease;
}

.result-title a:hover {
  color: #b00;
}

.result-summary {
  color: #666;
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.6;
}

.no-results {
  color: #666;
  margin: 40px 0;
  text-align: center;
  font-size: 16px;
}

.no-results strong {
  color: #b00;
  font-size: 18px;
  display: block;
  margin-bottom: 15px;
}

.search-tips,
.no-results {
  text-align: center;
  margin: 30px 0;
}

.search-tips strong {
  display: block;
  margin-bottom: 15px;
  color: #333;
  font-size: 16px;
}

.search-tips a,
.no-results a {
  display: inline-block;
  padding: 8px 16px;
  margin: 5px;
  background: #f8f9fa;
  border-radius: 20px;
  text-decoration: none;
  color: #b00;
  font-size: 14px;
  transition: all 0.3s ease;
  border: 1px solid #e9ecef;
}

.search-tips a:hover,
.no-results a:hover {
  background: #b00;
  color: #fff;
  border-color: #b00;
  box-shadow: 0 2px 8px rgba(187, 0, 0, 0.2);
}

/* Header search - OSCHINA style */
.desktop-header .search-form {
  display: inline-flex;
  align-items: center;
  margin-left: 20px;
  position: relative;
}

.desktop-header .search-input-wrapper {
  display: flex;
  align-items: center;
  background: #fafafa;
  border-radius: 6px;
  padding: 4px 11px;
  transition: all 0.3s ease;
}

.desktop-header .search-input-wrapper input {
  border: none;
  outline: none;
  background: transparent;
  width: 180px;
  font-size: 13px;
  color: #333;
  padding: 0;
  height: 27px;
  line-height: 27px;
  transition: width 0.3s ease;
}

.desktop-header .search-input-wrapper input:focus {
  width: 220px;
}

.desktop-header .search-input-wrapper input::placeholder {
  color: #999;
}

.desktop-header .search-input-wrapper .search-btn {
  border: none;
  background: transparent;
  color: #999;
  cursor: pointer;
  padding: 0;
  margin-left: 8px;
  font-size: 14px;
  transition: color 0.2s ease;
  height: 27px;
  line-height: 27px;
}

.desktop-header .search-input-wrapper .search-btn:hover {
  color: #666;
}

/* Search dropdown - Modern Design */
.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  z-index: 1000;
  max-height: 420px;
  overflow-y: auto;
  padding: 8px 0;
}

.search-dropdown::-webkit-scrollbar {
  width: 6px;
}

.search-dropdown::-webkit-scrollbar-track {
  background: transparent;
}

.search-dropdown::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 3px;
}

.suggest-item {
  padding: 12px 18px;
  cursor: pointer;
  border-bottom: 1px solid #f8f9fa;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  transition: all 0.2s ease;
  margin: 0 8px;
  border-radius: 8px;
}

.suggest-item:last-child {
  border-bottom: none;
}

.suggest-item:hover,
.suggest-item.active {
  background: #f8f9fa;
}

.suggest-item.active {
  background: #fff5f5;
  border-left: 3px solid #b00;
}

.suggest-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  font-size: 14px;
  font-weight: bold;
  color: #fff;
  flex-shrink: 0;
}

.suggest-item.suggest-command .suggest-icon {
  background: linear-gradient(135deg, #b00 0%, #900 100%);
}

.suggest-item.suggest-tutorial .suggest-icon {
  background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
}

.suggest-item.suggest-topic .suggest-icon {
  background: linear-gradient(135deg, #17a2b8 0%, #117a8b 100%);
}

.suggest-content {
  flex: 1;
  min-width: 0;
}

.suggest-title {
  font-weight: 600;
  color: #333;
  font-size: 15px;
  display: block;
  margin-bottom: 2px;
}

.suggest-type {
  font-size: 11px;
  color: #999;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.suggest-summary {
  width: 100%;
  font-size: 13px;
  color: #888;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-left: 44px;
}

/* Header dropdown specific */
.desktop-header .search-dropdown {
  width: 320px;
  left: auto;
  right: 0;
  top: calc(100% + 10px);
}

/* Search page header */
.search-page-header {
  text-align: center;
  padding: 40px 0 30px;
}

.search-page-header h1 {
  font-size: 32px;
  color: #333;
  margin-bottom: 10px;
  font-weight: 700;
}

.search-page-header p {
  color: #888;
  font-size: 16px;
}

/* Loading state */
.search-loading {
  text-align: center;
  padding: 40px;
  color: #999;
}

.search-loading::after {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid #ddd;
  border-top-color: #b00;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-left: 10px;
  vertical-align: middle;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
