/* =====================================================
   REVIEWS PAGE - BrightStack Solutions (UPDATED)
   ===================================================== */

/* Rating Overview */
.rating-overview {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  background: #FFFFFF;
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(26, 26, 46, 0.1);
}

/* Rating Summary */
.rating-summary {
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, #FFF5F0 0%, #FFFFFF 100%);
  border-radius: 15px;
}

.rating-score {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.score-number {
  font-size: 2.7rem;
  font-weight: 600;
  background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 1rem;
}

.score-stars {
  margin-bottom: 1rem;
}

.score-stars .star {
  font-size: 2rem;
  color: #E2E8F0;
  margin: 0 0.125rem;
}

.score-stars .star.filled {
  color: #FF6B35;
}

.score-text {
  font-size: 1.125rem;
  color: #5a5a5a;
  margin: 0;
}

/* Rating Breakdown */
.rating-breakdown {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

.rating-bar-item {
  display: grid;
  grid-template-columns: 80px 1fr 60px;
  align-items: center;
  gap: 1rem;
}

.rating-label {
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a2e;
}

.rating-bar {
  height: 12px;
  background: #E2E8F0;
  border-radius: 6px;
  overflow: hidden;
}

.rating-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #FF6B35 0%, #F7931E 100%);
  transition: width 1s ease;
}

.rating-count {
  text-align: right;
  font-size: 1rem;
  font-weight: 600;
  color: #5a5a5a;
}

/* Reviews Controls */
.reviews-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 3rem;
  padding: 2rem;
  background: #FFFFFF;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(26, 26, 46, 0.08);
}

.filter-group,
.sort-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.filter-group label,
.sort-group label {
  font-weight: 600;
  color: #1a1a2e;
  font-size: 1rem;
}

.filter-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.625rem 1.25rem;
  background: #FFFFFF;
  border: 2px solid #E2E8F0;
  border-radius: 50px;
  font-weight: 600;
  color: #5a5a5a;
  text-decoration: none;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  border-color: #FF6B35;
  color: #FF6B35;
}

.filter-btn.active {
  background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
  border-color: #FF6B35;
  color: #FFFFFF;
}

.sort-select {
  padding: 0.625rem 1.25rem;
  border: 2px solid #E2E8F0;
  border-radius: 8px;
  font-size: 1rem;
  color: #1a1a2e;
  background: #FFFFFF;
  cursor: pointer;
  transition: all 0.3s ease;
}

.sort-select:focus {
  outline: none;
  border-color: #FF6B35;
}

/* Reviews List - UPDATED TO GRID LAYOUT */
.reviews-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 cards per row on desktop/tablet */
  gap: 2rem;
  margin-bottom: 2rem;
}

/* Detailed Review Card */
.review-card-detailed {
  background: #FFFFFF;
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(26, 26, 46, 0.08);
  border-left: 4px solid #FF6B35;
  transition: all 0.3s ease;
}

.review-card-detailed:hover {
  box-shadow: 0 10px 40px rgba(26, 26, 46, 0.15);
  transform: translateY(-5px);
}

/* Hidden review cards (initially hidden after 4th card) */
.review-card-detailed.hidden-review {
  display: none;
}

/* View All Reviews Button */
.view-all-reviews-container {
  text-align: center;
  margin-top: 3rem;
  display: none; /* Hidden by default, shown by JS when needed */
}

.view-all-reviews-container.show {
  display: block;
}

.view-all-reviews-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.9rem 2rem;
  background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
  color: #FFFFFF;
  border: none;
  border-radius: 50px;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.view-all-reviews-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255, 107, 53, 0.4);
}

.view-all-reviews-btn i {
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.view-all-reviews-btn.expanded i {
  transform: rotate(180deg);
}

/* Review Header */
.review-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.review-author-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
}

.review-author-details {
  flex-grow: 1;
}

.review-author-name {
  font-size: 1.25rem;
  color: #1a1a2e;
  margin-bottom: 0.25rem;
}

.review-project-type {
  font-size: 0.9375rem;
  color: #5a5a5a;
  margin: 0;
}

.verified-badge-large {
  padding: 0.5rem 1rem;
  background: #10B981;
  color: #FFFFFF;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}



/* Review Rating & Date */
.review-rating-date {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.review-stars-large .star {
  font-size: 1.5rem;
  color: #E2E8F0;
  margin-right: 0.25rem;
}

.review-stars-large .star.filled {
  color: #FF6B35;
}

.review-date {
  font-size: 0.9375rem;
  color: #5a5a5a;
  cursor: help;
  text-decoration: underline dotted;
  text-underline-offset: 3px;
}

.review-date:hover {
  color: #FF6B35;
}

/* Review Content */
.review-title-large {
  font-size: 0.95rem;
  color: #1a1a2e;
  margin-bottom: 1rem;
  
}

.review-text-large {
  font-size: 0.95rem;
  color: #5a5a5a;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.review-project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  color: #FF6B35;
  font-weight: 600;
}

.review-project-link a {
  color: #FF6B35;
  text-decoration: none;
}

.review-project-link a:hover {
  text-decoration: underline;
}

/* Review Footer */
.review-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid #E2E8F0;
}

.helpful-btn {
  padding: 0.625rem 1.25rem;
  background: #FFFFFF;
  border: 2px solid #E2E8F0;
  border-radius: 50px;
  font-weight: 600;
  color: #5a5a5a;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.helpful-btn:hover {
  border-color: #FF6B35;
  color: #FF6B35;
}

.helpful-btn:disabled {
  cursor: not-allowed;
}

.response-indicator {
  color: #10B981;
  font-weight: 500;
  font-size: 0.9375rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Review Response */
.review-response {
  margin-top: 1.4rem;
  padding: 1.2rem;
  background: #FFF5F0;
  border-radius: 12px;
  border-left: 2px solid #FF6B35;
}

.response-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: #FF6B35;
}

.response-header strong {
  flex-grow: 1;
  color: #1a1a2e;
}

.response-date {
  font-size: 0.775rem;
  color: #5a5a5a;
}

.review-response p {
  font-size: 1rem;
  color: #5a5a5a;
  line-height: 1.75;
  margin: 0;
}

/* No Reviews State */
.no-reviews {
  text-align: center;
  padding: 4rem 2rem;
  grid-column: 1 / -1; /* Span full width in grid */
}

.no-reviews h3 {
  font-size: 1.4rem;
  color: #1a1a2e;
  margin-bottom: 1rem;
}

.no-reviews p {
  font-size: 1rem;
  color: #5a5a5a;
  margin-bottom: 2rem;
}

/* Trust Section */
.trust-section {
  text-align: center;
}

.trust-section h2 {
  font-size: 1.4rem;
  color: #1a1a2e;
  margin-bottom: 3rem;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.trust-item {
  text-align: center;
}

.trust-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(247, 147, 30, 0.1) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #FF6B35;
}

.trust-item h4 {
  font-size: 1.2rem;
  color: #1a1a2e;
  margin-bottom: 0.5rem;
  
}

.trust-item p {
  font-size: 1rem;
  color: #5a5a5a;
  margin: 0;
}

/* ==============================================
   REVIEW SUBMISSION STYLES
   ============================================== */

/* Write Review Prompt */
.write-review-prompt {
    background: linear-gradient(135deg, #FFF5F0 0%, #FFFFFF 100%);
    padding: 4rem 3rem;
    border-radius: 20px;
    text-align: center;
    border: 2px solid #FFE4D6;
}

.write-review-content h2 {
    font-size: 1.4rem;
    color: #1a1a2e;
    margin-bottom: 1rem;
}

.write-review-content p {
    font-size: 1rem;
    color: #5a5a5a;
    margin-bottom: 2rem;
}

/* Review Modal */
.review-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.review-modal.active {
    display: flex;
}

.review-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(4px);
}

.review-modal-content {
    position: relative;
    background: #FFFFFF;
    border-radius: 20px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.review-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #5a5a5a;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.review-modal-close:hover {
    background: #F8F9FA;
    color: #1a1a2e;
}

.review-modal-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.review-modal-header h2 {
    font-size: 1.4rem;
    color: #1a1a2e;
    margin-bottom: 0.5rem;
}

.review-modal-header p {
    color: #5a5a5a;
    font-size: 1rem;
}

/* Star Rating Input */
.star-rating-input {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.star-input {
    font-size: 2.5rem;
    color: #E2E8F0;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.star-input:hover {
    transform: scale(1.2);
}

/* Form Groups */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 0.5rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #E2E8F0;
    border-radius: 10px;
    font-size: 1rem;
    color: #1a1a2e;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #FF6B35;
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.1);
}

.form-textarea {
    resize: vertical;
}

.form-hint {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #5a5a5a;
}

.form-group-checkbox {
    margin: 2rem 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #FF6B35;
    flex-shrink: 0;
}

.checkbox-label span {
    color: #5a5a5a;
    line-height: 1.6;
}

/* Review Form Actions */
.review-form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding-top: 1.5rem;
    border-top: 2px solid #F8F9FA;
}


/* =====================================================
   RESPONSIVE - TABLET (992px and below)
   ===================================================== */
@media (max-width: 992px) {
  .rating-overview {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .reviews-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-group,
  .sort-group {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .filter-buttons {
    width: 100%;
  }

  .sort-select {
    width: 100%;
  }

  /* Keep 2 per row on tablet */
  .reviews-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

/* =====================================================
   RESPONSIVE - MOBILE (768px and below)
   ===================================================== */
@media (max-width: 768px) {
  /* Stack reviews in single column on mobile */
  .reviews-list {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .rating-overview {
    padding: 2rem;
  }

  .rating-summary {
    padding: 1.5rem;
  }

  .score-number {
    font-size: 1.7rem;
  }

  .score-stars .star {
    font-size: 1.5rem;
  }

  .rating-bar-item {
    grid-template-columns: 60px 1fr 40px;
    gap: 0.75rem;
  }

  .rating-label {
    font-size: 0.875rem;
  }

  .rating-count {
    font-size: 0.875rem;
  }

  .reviews-controls {
    padding: 1.5rem;
  }

  .filter-buttons {
    justify-content: center;
  }

  .review-card-detailed {
    padding: 1.5rem;
  }

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

  .review-author-avatar {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }

  .review-author-name {
    font-size: 1.125rem;
  }

  .verified-badge-large {
    width: 100%;
    justify-content: center;
  }

  .review-rating-date {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .review-stars-large .star {
    font-size: 1rem;
  }

  .review-title-large {
    font-size: 0.95rem;
  }

  .review-text-large {
    font-size: 0.95rem;
  }



  .review-footer {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .trust-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .trust-icon {
    width: 70px;
    height: 70px;
    font-size: 1.75rem;
  }

  .trust-item h4 {
    font-size: 1.25rem;
  }

  .view-all-reviews-btn {
    padding: 1rem 2rem;
    font-size: 1rem;
  }

  .review-modal-content {
    padding: 2rem 1.5rem;
    max-height: 95vh;
  }

  .review-modal-header h2 {
    font-size: 1.5rem;
  }

  .star-input {
    font-size: 2rem;
  }

  .review-form-actions {
    flex-direction: column;
  }

  .review-form-actions .btn {
    width: 100%;
  }


.response-indicator {
 
  font-weight: 500;
  font-size: 0.8375rem;

}


.response-header strong {
  flex-grow: 1;
  color: #9a370c;
  font-size: 0.75rem;
  font-weight: 600;
}

.response-date {
  font-size: 0.575rem;
 
}

.review-response p {
  font-size: 0.75rem;
 
}



}

/* =====================================================
   RESPONSIVE - SMALL MOBILE (480px and below)
   ===================================================== */
@media (max-width: 480px) {
  .score-number {
    font-size: 2.5rem;
  }

  .score-stars .star {
    font-size: 1.25rem;
  }

  .review-title-large {
    font-size: 1.125rem;
  }

  .review-text-large {
    font-size: 0.9375rem;
  }

  .trust-section h2 {
    font-size: 2rem;
  }

  .view-all-reviews-btn {
    padding: 0.875rem 1.75rem;
    font-size: 0.9375rem;
  }
}


/* =====================================================
   CTA SECTION
   ===================================================== */

.cta-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, 30px) scale(1.05); }
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.cta-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.75;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cta-section {
        padding: 4rem 0;
    }

    .cta-title {
        font-size: 1.375rem;
    }

    .cta-subtitle {
        font-size: 0.9375rem;
    }

    .btn-large {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .cta-section {
        padding: 3rem 0;
    }

    .cta-title {
        font-size: 1.25rem;
    }

    .cta-subtitle {
        font-size: 0.875rem;
    }
}


.verified-badge-large {
  padding: 0.5rem 1rem;
  background: #10B981;
  color: #fff;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  max-width: fit-content;
  transition: all 0.25s ease;
}

/* Tablet breakpoint */
@media (max-width: 768px) {
  .verified-badge-large {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    gap: 0.4rem;
  }
}

/* Mobile breakpoint (force shrink) */
@media (max-width: 480px) {
  .verified-badge-large {
    padding: 0.3rem 0.65rem !important;
    font-size: 0.7rem !important;
    gap: 0.3rem !important;
    border-radius: 40px !important;
  }
}




