/* Professionals Page Styles - Clean CSS without Bootstrap/Tailwind */

/* Container - стандарты из памяти */
.professionals-container {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Hero Section */
.professionals-hero {
  position: relative;
  min-height: 290px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url("https://images.pexels.com/photos/3184418/pexels-photo-3184418.jpeg?auto=compress&cs=tinysrgb&w=1680");
  background-size: cover;
  background-position: center;
  text-align: center;
  color: white;
}

.professionals-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.professionals-hero__content {
  position: relative;
  z-index: 10;
  padding: 80px 24px;
}

.professionals-hero__title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.professionals-hero__subtitle {
  font-size: 1.125rem;
  max-width: 768px;
  margin: 0 auto;
}

/* CTA Banner */
.professionals-cta {
  background-color: rgba(30, 132, 73, 0.9);
  color: white;
  padding: 12px 0;
}

.professionals-cta__container {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.professionals-cta__text {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0;
}

.professionals-cta__link {
  font-weight: 700;
  text-decoration: underline;
  color: white;
  transition: color 0.2s;
}

.professionals-cta__link:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* Search Section */
.professionals-search-section {
  background-color: #f5f5f5;
  padding: 24px 0;
  position: sticky;
  top: 63px;
  z-index: 40;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.professionals-search-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  background-color: #1e8449;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
  .professionals-search-form {
    grid-template-columns: 2fr 1fr auto;
  }
}

.professionals-search-input,
.professionals-search-select {
  width: 100%;
  padding: 12px 16px;
  background-color: white;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 1rem;
  text-align: right;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.professionals-search-input:focus,
.professionals-search-select:focus {
  outline: none;
  border-color: #1e8449;
  box-shadow: 0 0 0 3px rgba(30, 132, 73, 0.1);
}

.professionals-search-btn {
  padding: 12px 24px;
  background-color: white;
  color: #1e8449;
  font-weight: 700;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s;
  white-space: nowrap;
}

.professionals-search-btn:hover {
  background-color: #f5f5f5;
}

/* Category Tabs */
.professionals-tabs-section {
  background-color: white;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  padding: 16px 0;
}

.professionals-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.professionals-tab {
  padding: 8px 20px;
  border-radius: 9999px;
  border: 1px solid #d1d5db;
  background-color: white;
  color: #374151;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.professionals-tab:hover {
  background-color: #f9fafb;
  color: #1e8449;
}

.professionals-tab--active {
  background-color: #1e8449;
  color: white;
  border-color: #1e8449;
}

/* Results Section */
.professionals-results {
  padding: 48px 0;
  background-color: #f5f5f5;
}

.professionals-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Professional Card */
.professionals-card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.professionals-card--sponsored {
  border: 2px solid #1e8449;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

.professionals-card__badge {
  background-color: #f3f4f6;
  color: #1e8449;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 8px;
  text-align: center;
  letter-spacing: 0.05em;
}

.professionals-card__content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px;
}

@media (min-width: 768px) {
  .professionals-card__content {
    flex-direction: row;
    align-items: flex-start;
  }
}

/* Image Wrapper */
.professionals-card__image-wrapper {
  flex-shrink: 0;
  text-align: center;
  width: 100%;
}

@media (min-width: 768px) {
  .professionals-card__image-wrapper {
    width: 160px;
  }
}

.professionals-card__image {
  width: 128px;
  height: 128px;
  border-radius: 8px;
  object-fit: cover;
  margin: 0 auto;
  display: block;
}

.professionals-card__license {
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 8px;
}

/* Info Section */
.professionals-card__info {
  flex: 1;
  text-align: right;
  width: 100%;
}

.professionals-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.professionals-card__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  flex: 1;
  min-width: 0;
}

.professionals-card__title a {
  color: #111827;
  text-decoration: none;
  transition: color 0.2s;
}

.professionals-card__title a:hover {
  color: #1e8449;
}

/* Rating */
.professionals-card__rating {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  font-size: 20px;
  font-weight: bold;
  font-family: Arial, Helvetica, sans-serif;
  flex-shrink: 0;
}

.professionals-card__rating-count {
  font-weight: bold;
  color: #374151;
  font-size: 16px;
}

.professionals-card__stars {
  display: flex;
  align-items: center;
  gap: 2px;
  direction: rtl;
}

.professionals-card__stars i {
  font-size: 14px;
  color: #fbbf24;
}

.professionals-card__stars i.far {
  color: rgba(0, 0, 0, 0.2);
}

.professionals-card__reviews {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #4b5563;
  text-decoration: none;
  transition: color 0.2s;
  font-size: 0.875rem;
  font-weight: 500;
}

.professionals-card__reviews:hover {
  color: #1e8449;
  text-decoration: underline;
}

.professionals-card__reviews i {
  font-size: 0.875rem;
}

/* Description */
.professionals-card__description {
  color: #374151;
  line-height: 1.6;
  margin-bottom: 16px;
}

/* Specializations */
.professionals-card__specializations {
  font-size: 0.875rem;
}

.professionals-card__specializations strong {
  font-weight: 600;
  margin-left: 4px;
}

.professionals-card__specializations span {
  color: #4b5563;
}

/* Actions */
.professionals-card__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
}

@media (min-width: 768px) {
  .professionals-card__actions {
    width: 192px;
    margin-right: auto;
    padding-top: 0;
    padding-right: 24px;
    border-top: none;
    border-right: 1px solid #e5e7eb;
  }
}

.professionals-card__btn {
  width: 100%;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
  border: none;
  font-size: 1rem;
}

.professionals-card__btn--primary {
  background-color: #1e8449;
  color: white;
}

.professionals-card__btn--primary:hover {
  background-color: #157a3f;
}

.professionals-card__btn--secondary {
  background-color: white;
  color: #374151;
  border: 1px solid #d1d5db;
}

.professionals-card__btn--secondary:hover {
  background-color: #f9fafb;
}

.professionals-card__btn--saved i {
  color: #fbbf24; /* Yellow color for saved bookmark */
}

.professionals-card__btn--saved {
  border-color: #fbbf24;
}

/* Loading & Empty States */
.professionals-loading,
.professionals-empty {
  text-align: center;
  padding: 80px 24px;
}

.professionals-empty__text {
  color: #6b7280;
  font-size: 1.125rem;
}

/* Pagination */
.professionals-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}

.professionals-pagination__btn {
  padding: 8px 12px;
  border: 1px solid #1e8449;
  border-radius: 4px;
  background-color: white;
  color: #1e8449;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 40px;
}

.professionals-pagination__btn:hover {
  background-color: #f9fafb;
}

.professionals-pagination__btn--active {
  background-color: #1e8449;
  color: white;
}

/* pr- prefixed pagination (unique for professionals) */
.pr-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 24px 0;
}

.pr-page,
.pr-nav {
  border: 1px solid #16a34a;
  background: #ffffff;
  color: #16a34a;
  padding: 6px 10px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  min-width: 36px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pr-page--active {
  background: #16a34a;
  color: #ffffff;
}

.pr-nav[disabled],
.pr-page[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.pr-nav i {
  font-size: 12px;
}

/* Responsive Adjustments */
@media (max-width: 767px) {
  .professionals-hero__title {
    font-size: 2rem;
  }

  .professionals-card__content {
    align-items: center;
  }

  .professionals-card__info {
    text-align: center;
  }

  .professionals-card__header {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .professionals-card__title {
    text-align: center;
    width: 100%;
  }

  .professionals-card__rating {
    justify-content: center;
    font-size: 18px;
    gap: 12px;
  }

  .professionals-card__stars i {
    font-size: 12px;
  }
}

/* Disable sticky position for search section on screens 1090px and below */
@media (max-width: 1090px) {
  .professionals-search-section {
    position: static;
  }
}

/* RTL Support */
.professionals-page[dir="rtl"] {
  direction: rtl;
  text-align: right;
}
