/* ===============================
   Otoemdad — فقط technicians-details.html
   استایل مشترک در global.css
   =============================== */

:root {
  --tech-card-radius: 16px;
  --tech-inner-radius: 12px;
  --tech-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
  --tech-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
  --tech-border-color: #f0f2f5;
  --tech-bg-soft: #f8fafc;
}

.tech-detail-main {
  --tech-detail-icon-filter: brightness(0) saturate(100%) invert(69%) sepia(55%) saturate(2067%) hue-rotate(342deg)
    brightness(96%) contrast(102%);

  padding-top: 10rem;
  padding-bottom: 3.5rem;
  background-color: #f9fbff;
}

.tech-detail-main .breadcrumb {
  font-size: 0.88rem;
  --bs-breadcrumb-divider: "›";
  margin-bottom: 1.5rem;
}

.tech-detail-main .breadcrumb-item a {
  color: #8892a0;
  text-decoration: none;
  transition: color 0.2s ease;
}

.tech-detail-main .breadcrumb-item a:hover {
  color: var(--oto-primary);
}

.tech-detail-main .breadcrumb-item.active {
  color: var(--oto-secondary);
  font-weight: 600;
}

.tech-detail-card {
  padding: 2rem;
  border-radius: var(--tech-card-radius);
  background: #fff;
  border: 1px solid var(--tech-border-color);
  box-shadow: var(--tech-shadow-md);
  margin-bottom: 1.5rem;
}

/* ردیف پروفایل */
.tech-detail-profile-layout {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.5rem;
}

@media (min-width: 992px) {
  .tech-detail-profile-layout {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
  }

  .tech-detail-profile__main {
    flex: 1 1 0;
    min-width: 0;
  }
}

.tech-detail-profile__actions {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-width: 280px;
}

.tech-detail-profile__actions .btn-tech-fill,
.tech-detail-profile__actions .btn-tech-outline {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--tech-inner-radius);
  text-decoration: none;
  font-weight: 700;
  font-family: inherit;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tech-detail-profile__actions .btn-tech-fill {
  background: linear-gradient(135deg, #ff8a00, #ff6900);
  color: #fff;
  border: none;
  box-shadow: 0 4px 15px rgba(255, 105, 0, 0.3);
}

.tech-detail-profile__actions .btn-tech-fill:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 105, 0, 0.4);
  filter: brightness(1.05);
}

.tech-detail-profile__actions .btn-tech-outline {
  background: #fff;
  border: 2px solid #eef0f2;
  color: var(--oto-secondary);
}

.tech-detail-profile__actions .btn-tech-outline:hover {
  border-color: var(--oto-primary);
  color: var(--oto-primary);
  background: rgba(247, 147, 30, 0.04);
}

.tech-detail-profile__avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.tech-detail-profile__avatar {
  width: 120px;
  height: 120px;
  overflow: hidden;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  background: #f1f5f9;
}

.tech-detail-profile__avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tech-detail-profile__avatar-dot {
  position: absolute;
  bottom: 8px;
  left: 8px;
  width: 24px;
  height: 24px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.tech-detail-profile__title {
  margin: 0 0 0.5rem;
  color: var(--oto-secondary);
  font-size: 1.85rem;
  font-weight: 800;
}

.tech-detail-profile__subtitle {
  margin: 0 0 1.25rem;
  color: #64748b;
  font-size: 1.1rem;
  font-weight: 500;
}

.tech-detail-profile__top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

@media (min-width: 992px) {
  .tech-detail-profile__top {
    flex-direction: row;
    align-items: center;
  }

  .tech-detail-profile__info {
    text-align: right;
  }
}

.tech-detail-stars {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.tech-detail-stars .bi {
  font-size: 1.2rem;
  color: #ffb800;
}

.tech-detail-profile__meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1rem;
  font-size: 0.95rem;
  color: #475569;
}

.tech-detail-profile__meta-row span {
  display: flex;
  align-items: center;
}

.tech-detail-profile__meta-row .bi {
  margin-left: 0.5rem;
  color: var(--oto-primary);
  font-size: 1.1rem;
}

.tech-detail-badge-online {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.1);
  color: #15803d;
  font-size: 0.9rem;
  font-weight: 700;
}

/* آیکن‌های آماری */
.tech-detail-stat-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  height: 100%;
  padding: 1.5rem;
  border-radius: var(--tech-card-radius);
  background: #fff;
  border: 1px solid var(--tech-border-color);
  box-shadow: var(--tech-shadow-sm);
  transition: all 0.3s ease;
}

.tech-detail-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--tech-shadow-md);
  border-color: rgba(247, 147, 30, 0.2);
}

.tech-detail-stat-card__row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
}

.tech-detail-stat-card__value {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--oto-secondary);
}

.tech-detail-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(247, 147, 30, 0.12);
  flex-shrink: 0;
}

.tech-detail-icon-wrap .bi {
  font-size: 1.25rem;
  filter: var(--tech-detail-icon-filter);
}

.tech-detail-stat-card__label {
  margin: 0;
  font-size: 0.92rem;
  color: #64748b;
  font-weight: 500;
}

/* تب های درباره/سوالات */
.tech-detail-tabs {
  margin-bottom: 2rem;
}

.tech-detail-tabs__nav {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  margin-bottom: 1.25rem;
  border-radius: 16px;
  border: 1px solid var(--tech-border-color);
  background: #fff;
  box-shadow: var(--tech-shadow-sm);
}

.tech-detail-tabs__btn {
  border: 0;
  border-radius: 12px;
  padding: 0.75rem 1.5rem;
  color: #64748b;
  font-size: 1rem;
  font-weight: 700;
  transition: all 0.3s ease;
}

.tech-detail-tabs__btn:hover {
  color: var(--oto-primary);
  background: rgba(247, 147, 30, 0.06);
}

.tech-detail-tabs__btn.active {
  color: #fff !important;
  background: var(--oto-secondary) !important;
  box-shadow: 0 4px 12px rgba(11, 60, 93, 0.25);
}

.tech-detail-tabs__content > .tab-pane > .tech-detail-card {
  margin-bottom: 0;
  box-shadow: var(--tech-shadow-md);
}

/* درباره */
.tech-detail-section-title {
  margin: 0 0 1.5rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--oto-secondary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.tech-detail-section-title::after {
  content: "";
  height: 3px;
  flex: 1;
  background: linear-gradient(to left, var(--tech-border-color), transparent);
  border-radius: 2px;
}

.tech-detail-about__lead {
  margin: 0 0 2rem;
  color: #475569;
  font-size: 1.05rem;
  line-height: 2;
}

.tech-detail-subheading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 2rem 0 1.25rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--oto-secondary);
}

.tech-detail-subheading .tech-detail-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.tech-detail-subheading .bi {
  font-size: 1.1rem;
}

.tech-detail-check-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 1rem 2rem;
}

@media (min-width: 768px) {
  .tech-detail-check-list--2col {
    grid-template-columns: 1fr 1fr;
  }
}

.tech-detail-check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: #334155;
  padding: 0.75rem 1rem;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #f1f5f9;
}

.tech-detail-check-list .bi-check-lg {
  flex-shrink: 0;
  font-size: 1.1rem;
  color: #22c55e;
}

.tech-detail-cert-grid {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
  gap: 1rem;
}

.tech-detail-cert-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  width: 100%;
  margin: 0;
  padding: 0.75rem;
  border: 1px solid var(--tech-border-color);
  border-radius: var(--tech-inner-radius);
  background: #fff;
  cursor: pointer;
  text-align: center;
  transition: all 0.3s ease;
}

.tech-detail-cert-card:hover {
  border-color: var(--oto-primary);
  transform: translateY(-3px);
  box-shadow: var(--tech-shadow-md);
}

.tech-detail-cert-card__thumb {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  background: #f1f5f9;
  aspect-ratio: 1;
}

.tech-detail-cert-card__title {
  font-size: 0.85rem;
  color: var(--oto-secondary);
  font-weight: 700;
}

.tech-detail-coverage {
  margin: 0;
  font-size: 1rem;
  color: #475569;
  line-height: 1.8;
  padding: 1.25rem;
  background: #fff9f0;
  border-radius: var(--tech-inner-radius);
  border: 1px solid rgba(247, 147, 30, 0.15);
}

.tech-detail-coverage .bi-geo-alt-fill {
  margin-left: 0.65rem;
  color: var(--oto-primary);
  font-size: 1.2rem;
}

/* سوالات متداول */
.tech-detail-faq {
  position: relative;
  overflow: hidden;
  background: #fff;
}

.tech-detail-faq__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  background: rgba(247, 147, 30, 0.1);
  color: #b45309;
  font-size: 0.85rem;
  font-weight: 800;
}

.tech-detail-faq__intro {
  margin-top: 1rem;
  color: #64748b;
  font-size: 1rem;
  line-height: 1.8;
}

.tech-detail-faq__accordion {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.tech-detail-faq__item {
  border: 1px solid var(--tech-border-color);
  border-radius: var(--tech-inner-radius) !important;
  overflow: hidden;
  background: #fff;
  transition: all 0.3s ease;
}

.tech-detail-faq__item:hover {
  border-color: rgba(247, 147, 30, 0.3);
}

.tech-detail-faq__btn {
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--oto-secondary);
  background: #fff;
  border: none;
  box-shadow: none;
}

.tech-detail-faq__btn:focus {
  outline: none;
  border-color: rgba(247, 147, 30, 0.4);
  box-shadow: 0 0 0 4px rgba(247, 147, 30, 0.1);
}

.tech-detail-faq__btn:not(.collapsed) {
  color: var(--oto-primary);
  background: #fff9f0;
}

.tech-detail-faq__btn-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(247, 147, 30, 0.1);
  color: var(--oto-primary);
}

.tech-detail-faq__answer {
  padding: 1.25rem 1.5rem;
  padding-top: 0;
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.9;
  background: #fff9f0;
}

.tech-detail-faq__support {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--tech-inner-radius);
  background: #f1f5f9;
  color: #475569;
  font-weight: 600;
}

.tech-detail-faq__support a {
  color: var(--oto-primary);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* نظرات */
.tech-detail-reviews__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.tech-detail-reviews__rating-summary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  background: #fff;
  border: 1px solid var(--tech-border-color);
  border-radius: 12px;
  font-weight: 800;
  color: var(--oto-secondary);
  box-shadow: var(--tech-shadow-sm);
}

.tech-detail-reviews__rating-summary .bi-star-fill {
  color: #ffb800;
}

.tech-detail-review {
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: var(--tech-inner-radius);
  background: #f8fafc;
  border: 1px solid #f1f5f9;
}

.tech-detail-review__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow: var(--tech-shadow-sm);
  flex-shrink: 0;
}

.tech-detail-review__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tech-detail-review__name {
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0;
}

.tech-detail-review__date {
  color: #94a3b8;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.tech-detail-review__text {
  font-size: 1rem;
  line-height: 1.8;
  color: #334155;
  margin: 1rem 0 0;
}

.tech-detail-review__top {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.tech-detail-review__body {
  flex: 1;
  min-width: 0;
}

.tech-detail-review__headline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.tech-detail-review__stars .bi {
  font-size: 0.95rem;
  color: #ffb800;
}

.tech-detail-review__reply-box {
  border-right: 4px solid var(--oto-primary);
  background: #fff;
  padding: 1.5rem;
  border-radius: 0 12px 12px 0;
  margin-top: 1.5rem;
  box-shadow: var(--tech-shadow-sm);
}

/* ثبت نظر */
.tech-detail-form-card {
  background: linear-gradient(to bottom left, #fff, #f8fafc);
  position: relative;
  overflow: hidden;
}

.tech-detail-form-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to left, var(--oto-primary), var(--oto-secondary));
}

.tech-detail-form-label {
  font-weight: 700;
  color: var(--oto-secondary);
  margin-bottom: 0.75rem;
  display: block;
  font-size: 0.92rem;
}

.tech-detail-form-card .form-control {
  border: 1px solid #e2e8f0;
  background-color: #fff;
  padding: 1rem 1.25rem;
  border-radius: 12px !important;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.tech-detail-form-card .form-control:focus {
  border-color: var(--oto-primary);
  box-shadow: 0 0 0 4px rgba(247, 147, 30, 0.1);
  background: #fff;
  transform: translateY(-1px);
}

.tech-detail-star-input {
  background: #fff;
  display: inline-flex;
  padding: 0.5rem 1rem;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  margin-bottom: 0.5rem;
}

.tech-detail-star-input__stars {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.tech-detail-star-input__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  line-height: 1;
  cursor: pointer;
  color: #e2e8f0;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.tech-detail-star-input__btn:hover {
  transform: scale(1.2);
  color: #ffb800;
}

.tech-detail-star-input__btn.is-active {
  color: #ffb800;
}

.tech-detail-star-input__btn .bi {
  font-size: 1.75rem;
}

.tech-detail-form-card .btn-tech-fill {
  padding: 1rem 3rem;
  font-size: 1.05rem;
  border-radius: 12px !important;
  background: linear-gradient(135deg, var(--oto-secondary), #0f172a);
  color: #fff;
  border: none;
  font-weight: 800;
  transition: all 0.3s ease;
}

.tech-detail-form-card .btn-tech-fill:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(11, 60, 93, 0.3);
  filter: brightness(1.1);
}

/* مشابه */
.tech-detail-similar {
  padding: 2rem 0;
}

.tech-detail-similar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.tech-detail-similar-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--oto-secondary);
}

.tech-detail-similar-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem;
  border-radius: var(--tech-card-radius);
  border: 1px solid var(--tech-border-color);
  background: #fff;
  box-shadow: var(--tech-shadow-sm);
  transition: all 0.3s ease;
  height: 100%;
}

.tech-detail-similar-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--tech-shadow-md);
  border-color: var(--oto-primary);
}

.tech-detail-similar-card__avatar-wrap {
  position: relative;
  margin-bottom: 1rem;
}

.tech-detail-similar-card__avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #fff;
  box-shadow: var(--tech-shadow-sm);
}

.tech-detail-similar-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tech-detail-similar-card__dot {
  position: absolute;
  bottom: 5px;
  left: 5px;
  width: 16px;
  height: 16px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #22c55e;
}

.tech-detail-similar-card__dot--busy {
  background: #94a3b8;
}

.tech-detail-similar-card__name {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--oto-secondary);
  margin: 0;
}

.tech-detail-similar-card__spec {
  font-size: 0.9rem;
  color: #64748b;
  margin: 0.35rem 0 0.75rem;
}

.tech-detail-similar-card__rating {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.tech-detail-similar-card__rating .bi-star-fill {
  color: #ffb800;
}

.tech-detail-similar-card__loc {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 1.25rem;
}

.tech-detail-similar-card__loc .bi {
  color: var(--oto-primary);
}

.tech-detail-similar-card .btn-tech-fill {
  width: 100%;
  text-align: center;
  text-decoration: none;
  background: var(--oto-secondary);
  color: #fff;
  padding: 0.75rem;
  border-radius: 10px;
  font-weight: 700;
  transition: all 0.3s ease;
  margin-top: auto;
}

.tech-detail-similar-card .btn-tech-fill:hover {
  background: var(--oto-primary);
  box-shadow: 0 4px 12px rgba(255, 105, 0, 0.25);
}

.tech-detail-similar__nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tech-detail-similar-swiper__btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--tech-border-color);
  background: #fff;
  color: var(--oto-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tech-detail-similar-swiper__btn:hover {
  background: var(--oto-primary);
  color: #fff;
  border-color: var(--oto-primary);
}

.tech-detail-similar-swiper {
  padding: 0.5rem;
  margin: -0.5rem;
}

/* Modals */
.modal-content {
  border-radius: 20px;
  border: none;
  box-shadow: 0 15px 50px rgba(0,0,0,0.15);
}

.modal-header {
  border-bottom: 1px solid #f1f5f9;
  padding: 1.5rem 2rem;
}

.modal-title {
  font-weight: 800;
  color: var(--oto-secondary);
}

.modal-body {
  padding: 2rem;
}

.modal-footer {
  border-top: 1px solid #f1f5f9;
  padding: 1.25rem 2rem;
}

/* Modal Helper Classes */
.tech-detail-repair-modal__tech-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-radius: 12px;
  background: #fdf6ee;
  border: 1px solid rgba(247, 147, 30, 0.12);
}

.tech-detail-repair-modal__tech-avatar {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--oto-primary);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
}

.tech-detail-repair-dropzone {
  border: 2px dashed #d1d5dc;
  border-radius: 12px;
  background: #fafafa;
  padding: 2rem 1.25rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tech-detail-repair-dropzone:hover {
  border-color: var(--oto-primary);
  background: #fffaf5;
}

.tech-detail-repair-files__item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  background: #f9fafb;
  border: 1px solid #eef0f3;
  margin-top: 0.5rem;
}
