/**
 * Component Styles
 * Styles for reusable components
 */

/* Search Form Styles */
.search-form-wrapper {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  width: 300px;
  background: #fff;
  padding: 10px;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.search-form-wrapper.active {
  display: block;
}

.search-form {
  display: flex;
  align-items: center;
}

.search-form input {
  flex: 1;
  border: 1px solid #ddd;
  padding: 8px 12px;
  border-radius: 4px;
}

.search-toggle {
  background: none;
  border: none;
  color: #333;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
}

.btn-search {
  background: none;
  border: none;
  color: #333;
  margin-left: 10px;
  cursor: pointer;
}

.header-search {
  position: relative;
  margin-right: 15px;
}

/* Social Icons */
.social-icons {
  display: flex;
  gap: 15px;
  margin: 20px 0;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f8f9fa;
  color: #333;
  transition: all 0.3s ease;
}

.social-icon:hover {
  transform: translateY(-3px);
}

.social-facebook:hover {
  background: #1877f2;
  color: #fff;
}

.social-twitter:hover {
  background: #1da1f2;
  color: #fff;
}

.social-linkedin:hover {
  background: #0077b5;
  color: #fff;
}

.social-youtube:hover {
  background: #ff0000;
  color: #fff;
}

.social-icon i {
  font-size: 18px;
}

/* Form Messages */
.form-message {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 0.25rem;
}

.form-message.alert-success {
  background-color: #d4edda;
  border-color: #c3e6cb;
  color: #155724;
}

.form-message.alert-danger {
  background-color: #f8d7da;
  border-color: #f5c6cb;
  color: #721c24;
}

/* Image Loading States */
img[data-src] {
  opacity: 0;
  transition: opacity 0.3s;
}

img[data-src].loaded {
  opacity: 1;
}

