/* Agency Page Styles */

.agency-section {
  padding: 4rem 1rem;
  background: #f8f9fa;
}

.agency-header {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.agency-title {
  margin: 0;
  font-size: 2rem;
  color: var(--text-color);
}

.agency-subtitle {
  color: #666;
  margin: 0.5rem 0 0;
  font-size: 1.1rem;
}

.rating-overview {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #eee;
}

/* Circular Rating */
.rating-circle {
  width: 150px;
  height: 150px;
  position: relative;
  margin: 0 auto;
}

.circle-bg {
  fill: none;
  stroke: #eee;
  stroke-width: 8;
}

.circle-progress {
  fill: none;
  stroke-width: 8;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  transition: stroke-dashoffset 0.3s ease;
  stroke-dasharray: 439.6;
}

.progress-excellent { stroke: #2ECC71; }
.progress-good { stroke: #3498DB; }
.progress-normal { stroke: #F1C40F; }
.progress-bad { stroke: #E67E22; }
.progress-scam { stroke: #E74C3C; }

.rating-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 80%;
  max-width: 100px;
}

.rating-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-color);
  line-height: 1;
  margin: 0;
}

.rating-label {
  font-size: 0.875rem;
  color: #666;
  margin: 0.25rem 0 0;
  white-space: nowrap;
}

/* Trust Rating Block */
.trust-rating {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  margin-top: 2rem;
  text-align: center;
}

.trust-title {
  margin: 0 0 2rem;
  font-size: 1.5rem;
  color: var(--text-color);
}

.trust-charts {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.trust-chart {
  width: 120px;
}

.trust-circle {
  width: 120px;
  height: 120px;
  position: relative;
  margin-bottom: 1rem;
}

.trust-circle.yes .circle-progress {
  stroke: #2ECC71;
}

.trust-circle.no .circle-progress {
  stroke: #E74C3C;
}

.trust-value {
  font-size: 1.75rem;
}

.trust-label {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-color);
  margin: 0;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 1rem;
  width: 100%;
  flex-wrap: wrap;
}

.action-button {
  flex: 1;
  min-width: 150px;
  padding: 0.75rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.write-review {
  background: var(--primary-color);
  color: white;
}

.write-review:hover {
  background: #3955a3;
}

.share-button {
  background: #f0f2f5;
  color: var(--text-color);
}

.share-button:hover {
  background: #e4e6e9;
}

.rate-button {
  background: #f0f2f5;
  color: var(--text-color);
}

.rate-button:hover {
  background: #e4e6e9;
}

.agency-content {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
}

.agency-main {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

/* Contact Card */
.contact-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.contact-card-title {
  margin: 0 0 1.5rem;
  font-size: 1.25rem;
  color: var(--text-color);
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #555;
}

.contact-item svg {
  flex-shrink: 0;
  color: var(--primary-color);
}

.contact-item a {
  color: var(--primary-color);
  text-decoration: none;
}

.contact-item a:hover {
  text-decoration: underline;
}

/* Reviews Section */
.reviews-section {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.reviews-title {
  margin: 0 0 2rem;
  font-size: 1.5rem;
  color: var(--text-color);
}

.review-card {
  padding: 1.5rem;
  border: 1px solid #eee;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  word-wrap: break-word;
}

.review-card:last-child {
  margin-bottom: 0;
}

.review-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.reviewer-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: 24px;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.reviewer-avatar.positive {
  background-color: #1a8d4c;
  background-image: url('/src/img/excellent.svg');
  box-shadow: 0 0 10px rgba(26, 141, 76, 0.3);
}

.reviewer-avatar.neutral {
  background-color: #F1C40F;
  background-image: url('/src/img/normal.svg');
  box-shadow: 0 0 10px rgba(241, 196, 15, 0.2);
}

.reviewer-avatar.negative {
  background-color: #E74C3C;
  background-image: url('/src/img/scam.svg');
  box-shadow: 0 0 10px rgba(231, 76, 60, 0.2);
}

.reviewer-avatar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
}

.reviewer-info {
  flex: 1;
}

.reviewer-name {
  font-weight: 600;
  color: var(--text-color);
  margin: 0;
}

.review-date {
  color: #666;
  font-size: 0.9rem;
  margin: 0;
}

.review-rating {
  color: #FFD700;
  font-size: 1.25rem;
}

.review-content {
  color: #333;
  line-height: 1.6;
  margin: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  overflow: hidden;
}

/* Similar Agencies */
.similar-agencies {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  margin-top: 2rem;
}

.similar-agencies-title {
  margin: 0;
  padding: 1.5rem;
  font-size: 1.25rem;
  color: var(--text-color);
  border-bottom: 1px solid #eee;
}

.agencies-banner {
  background: linear-gradient(135deg, #4A90E2, #357ABD);
  padding: 2rem;
  color: white;
  text-align: center;
}

.banner-content h3 {
  margin: 0 0 1.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.4;
}

.banner-button {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: white;
  color: #4A90E2;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.banner-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.similar-agency-card {
  padding: 1rem;
  border: 1px solid #eee;
  border-radius: 8px;
  margin-bottom: 1rem;
  transition: all 0.2s ease;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.similar-agency-card:last-child {
  margin-bottom: 0;
}

.similar-agency-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.similar-agency-name {
  margin: 0;
  font-weight: 600;
  color: var(--text-color);
  font-size: 1rem;
}

.similar-agency-rating {
  color: #FFD700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.similar-agency-rating span {
  color: #666;
  margin-left: 0.25rem;
}

/* Rating Distribution */
.rating-distribution {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.rating-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.25rem 0;
  width: 100%;
}

.rating-type {
  min-width: 90px;
  font-size: 0.9rem;
  color: var(--text-color);
  font-weight: 500;
  text-align: left;
}

.mini-progress {
  flex: 1;
  min-width: 100px;
  height: 6px;
  background: #f0f2f5;
  border-radius: 3px;
  overflow: hidden;
}

.mini-progress-fill {
  height: 100%;
  width: 0;
  transition: width 0.3s ease;
}

.mini-progress-fill.excellent {
  background: #2ECC71;
}

.mini-progress-fill.good {
  background: #3498DB;
}

.mini-progress-fill.normal {
  background: #F1C40F;
}

.mini-progress-fill.bad {
  background: #E67E22;
}

.mini-progress-fill.scam {
  background: #E74C3C;
}

.rating-percent {
  min-width: 40px;
  text-align: right;
  font-size: 0.9rem;
  color: #666;
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #eee;
}

.pagination-button {
  min-width: 40px;
  height: 40px;
  border: 1px solid #eee;
  background: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  color: var(--text-color);
  cursor: pointer;
  transition: all 0.2s ease;
}

.pagination-button:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.pagination-button.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.pagination-dots {
  color: #666;
  padding: 0 0.5rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .agency-content {
    grid-template-columns: 1fr;
  }
  
  .rating-overview {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .rating-circle {
    margin: 0 auto 2rem;
  }

  .rating-distribution {
    width: 100%;
    max-width: none;
    margin: 0;
  }
  
  .rating-row {
    justify-content: space-between;
  }

  .mini-progress {
    flex: 1;
    min-width: 150px;
  }
  
  .action-buttons {
    flex-direction: column;
  }
  
  .action-button {
    width: 100%;
    min-width: auto;
  }
}

@media (max-width: 768px) {
  .agency-section {
    padding: 2rem 1rem;
  }
  
  .agency-main {
    gap: 1.5rem;
  }

  .review-card {
    padding: 1rem;
  }

  .review-header {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .review-rating {
    width: 100%;
    text-align: left;
  }

  .review-content {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .agencies-banner {
    padding: 1.5rem;
  }
  
  .banner-content h3 {
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
  }
  
  .banner-button {
    padding: 0.625rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .rating-text {
    top: 65%;
    left: 65%;
  }

  .agency-header {
    padding: 1.5rem;
  }
  
  .agency-title {
    font-size: 1.5rem;
  }
  
  .rating-circle {
    width: 120px;
    height: 120px;
  }
  
  .rating-value {
    font-size: 1.5rem;
  }
  
  .rating-type {
    min-width: 80px;
    font-size: 0.8rem;
  }

  .mini-progress {
    min-width: 100px;
  }
  
  .rating-percent {
    font-size: 0.8rem;
    min-width: 40px;
  }

  .pagination {
    gap: 0.25rem;
  }

  .pagination-button {
    min-width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }

  .agency-main {
    gap: 1rem;
  }

  .action-buttons {
    gap: 0.75rem;
  }

  .review-card {
    padding: 0.875rem;
  }

  .reviewer-name {
    font-size: 1rem;
  }

  .review-date {
    font-size: 0.85rem;
  }

  .review-content {
    font-size: 0.9rem;
  }
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  font-size: 0.95rem;
  color: #94a3b8;
}

.breadcrumbs a {
  color: #64748b;
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
  display: flex;
  align-items: center;
}

.breadcrumbs a:hover {
  color: var(--primary-color);
}

.breadcrumbs a::after {
  content: '/';
  margin-left: 0.75rem;
  color: #cbd5e1;
}

.breadcrumbs span {
  color: #475569;
  font-weight: 500;
}

@media (max-width: 480px) {
  .breadcrumbs {
    font-size: 0.875rem;
    gap: 0.5rem;
  }
  
  .breadcrumbs a::after {
    margin-left: 0.5rem;
  }
}

