/**
 * Blog Search Widget Styles
 * Styles for the blog search sidebar widget to match existing widgets
 */

/* Blog search sidebar widget */
.blog-search-widget {
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  margin-bottom: 30px;
}

.blog-search-widget h3 {
  background: #253980;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  margin: 0;
  padding: 12px 15px;
  text-transform: uppercase;
  font-family: clearsans-medium, Arial, sans-serif;
  border-radius: 4px 4px 0 0;
}

/* Blog search content styling */
.blog-search-content {
  padding: 15px;
  margin: 0;
}

.blog-search-form {
  margin: 0;
}

.blog-search-form .form-item {
  margin: 0;
  display: flex;
  gap: 5px;
}

.blog-search-input {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: 14px;
  font-family: ClearSans-Regular, Arial, sans-serif;
  background: #fff;
  color: #333;
  transition: border-color 0.3s ease;
}

.blog-search-input:focus {
  outline: none;
  border-color: #253980;
  box-shadow: 0 0 3px rgba(37, 57, 128, 0.3);
}

.blog-search-input::placeholder {
  color: #999;
  font-style: italic;
}

.blog-search-submit {
  padding: 8px 15px;
  background: #253980;
  color: #fff;
  border: 1px solid #253980;
  border-radius: 3px;
  font-size: 14px;
  font-family: ClearSans-Medium, Arial, sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.blog-search-submit:hover {
  background: #fb6100;
  border-color: #fb6100;
}

.blog-search-submit:active {
  background: #e55100;
  border-color: #e55100;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .blog-search-content {
    padding: 12px;
  }

  .blog-search-form .form-item {
    flex-direction: column;
    gap: 8px;
  }

  .blog-search-input {
    font-size: 16px; /* Prevents zoom on iOS */
  }

  .blog-search-submit {
    padding: 10px 15px;
    align-self: stretch;
  }
}

/* Integration with existing sidebar styles */
.right-sidebar .blog-search-widget {
  width: 100%;
}

/* Make sure it fits well with other sidebar blocks */
.right-sidebar .blog-search-widget + .blog-categories-widget,
.right-sidebar .blog-categories-widget + .blog-search-widget,
.right-sidebar .blog-search-widget + .recently-added-widget,
.right-sidebar .recently-added-widget + .blog-search-widget {
  margin-top: 20px;
}

/* Focus styles for accessibility */
.blog-search-input:focus,
.blog-search-submit:focus {
  outline: 2px solid #253980;
  outline-offset: 2px;
}