/* ===================================
   CATEGORY HERO COMPONENT
   =================================== */

.category-hero {
  position: relative;
  min-height: 60vh;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero-background {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-overlay {
  background: linear-gradient(to bottom, rgba(63, 72, 111, 0.7) 0%, rgba(63, 72, 111, 0.9) 100%);
  padding: 60px 20px;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
}

.hero-text {
  text-align: center;
  margin-bottom: 40px;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: white;
  margin-bottom: 15px;
}

.hero-description {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
}

.search-container {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.search-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 25px;
  border-bottom: 2px solid #eee;
  flex-wrap: wrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #E30A1D #f0f0f0;
}

.search-tabs::-webkit-scrollbar {
  height: 6px;
}

.search-tabs::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 3px;
}

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

.tab {
  padding: 8px 14px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-weight: 600;
  color: #666;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  white-space: nowrap;
  flex-shrink: 0;
}

.tab:hover {
  color: #E30A1D;
  transform: translateY(-2px);
}

.tab.active-tab {
  color: #E30A1D;
  border-bottom-color: #E30A1D;
}

.tab-label {
  display: inline-block;
}

.tab-loader {
  display: none;
  animation: spin 1s linear infinite;
}

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

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  backdrop-filter: blur(2px);
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #E30A1D;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

.loading-overlay p {
  color: #333;
  font-size: 18px;
  font-weight: 600;
}

.search-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.search-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.search-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.search-field label {
  font-weight: 600;
  color: #333;
  font-size: 14px;
}

.search-field input,
.search-field select {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.search-field.checkbox-field {
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.search-field.checkbox-field input {
  width: auto;
}

.search-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.left-buttons,
.right-buttons {
  display: flex;
  gap: 10px;
}

.catalog-button,
.reset-button,
.search-button {
  padding: 12px 24px;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.catalog-button {
  background: #3F486F;
  color: white;
  text-decoration: none;
}

.catalog-button:hover {
  background: #2a2f43;
}

.reset-button {
  background: #f8f9fa;
  color: #333;
  border: 1px solid #ddd;
}

.reset-button:hover {
  background: #e9ecef;
}

.search-button {
  background: #24AD73;
  color: white;
}

.search-button:hover {
  background: #1e8f5f;
}

.catalog-button:hover,
.reset-button:hover,
.search-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .category-hero {
    min-height: auto !important;
    background-attachment: scroll !important;
  }

  .hero-overlay {
    padding: 30px 15px !important;
  }

  .hero-title {
    font-size: 24px !important;
    margin-bottom: 10px !important;
  }

  .hero-description {
    font-size: 16px !important;
  }

  .search-container {
    padding: 20px 15px !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box;
  }

  .search-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 15px;
  }

  .tab {
    font-size: 12px;
    padding: 8px 10px;
  }

  .search-fields {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }

  .search-actions {
    flex-direction: column !important;
    gap: 10px;
    align-items: stretch;
  }

  .left-buttons,
  .right-buttons {
    width: 100%;
    flex-direction: column;
    gap: 8px;
  }

  .catalog-button,
  .reset-button,
  .search-button {
    width: 100% !important;
    padding: 12px 16px !important;
    font-size: 15px !important;
    justify-content: center !important;
  }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
  .search-fields {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .search-container {
    padding: 25px;
  }
}

