/* ===== REVIEWS PAGE STYLES ===== */

/* Reviews Hero Section */
.reviews-hero {
  background: linear-gradient(135deg, #131222 0%, #1a1930 100%);
  padding: 4rem 0;
  margin-bottom: 3rem;
}

.reviews-hero-content {
  text-align: center;
}

.reviews-stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
  padding: 2.5rem 2rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  min-width: 180px;
}

.stat-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  line-height: 40px;
  color: var(--mauno-base);
  background: linear-gradient(135deg, #60a5fa 0%, #3182ce 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}


/* Reviews Section */
.reviews-section {
  padding: 3rem 0;
  min-height: 400px;
}

/* Reviews Controls */
.reviews-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(19, 18, 34, 0.08);
  flex-wrap: wrap;
}

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

.filter-group label,
.sort-group label {
  font-weight: 600;
  color: var(--mauno-black);
  white-space: nowrap;
}

.form-select {
  min-width: 180px;
  padding: 0.5rem 1rem;
  border: 2px solid var(--mauno-bdr-color);
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.form-select:focus {
  border-color: var(--mauno-base);
  box-shadow: 0 0 0 3px rgba(11, 77, 136, 0.1);
  outline: none;
}

/* Reviews Grid */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

/* Review Card */
.review-card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 16px rgba(19, 18, 34, 0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.review-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #3182ce 0%, #60a5fa 100%);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.review-card:hover {
  box-shadow: 0 8px 24px rgba(19, 18, 34, 0.12);
  transform: translateY(-5px);
}

.review-card:hover::before {
  transform: scaleX(1);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.reviewer-info {
  flex: 1;
}

.reviewer-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--mauno-black);
  margin-bottom: 0.25rem;
}

.review-date {
  font-size: 0.9rem;
  color: var(--mauno-gray);
}

.review-rating {
  display: flex;
  gap: 0.25rem;
}

.review-rating i {
  color: #fbbf24;
  font-size: 1.1rem;
}

.review-rating i.empty {
  color: #e5e7eb;
}

.review-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.review-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  background: rgba(11, 77, 136, 0.08);
  border-radius: 6px;
  font-size: 0.85rem;
  color: var(--mauno-base);
  font-weight: 500;
}

.review-badge i {
  font-size: 0.9rem;
}

.review-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--mauno-black);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.review-message {
  font-size: 1rem;
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 0;
}

/* Load More Container */
.load-more-container {
  text-align: center;
  margin-top: 3rem;
}

#loadMoreBtn {
  min-width: 220px;
}

/* Review Form Section */
.review-form-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 4rem 0;
  margin-top: 4rem;
}

.review-form-wrapper {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 0 8px 32px rgba(19, 18, 34, 0.1);
}

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

.review-form-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--mauno-black);
  margin-bottom: 0.5rem;
}

.review-form-header p {
  font-size: 1.1rem;
  color: var(--mauno-gray);
}

/* Form Styles */
.review-form .form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.review-form .form-group {
  margin-bottom: 1.5rem;
}

.review-form label {
  display: block;
  font-weight: 600;
  color: var(--mauno-black);
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.review-form .required {
  color: #ef4444;
}

.review-form .form-control {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--mauno-bdr-color);
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: inherit;
}

.review-form .form-control:focus {
  border-color: var(--mauno-base);
  box-shadow: 0 0 0 4px rgba(11, 77, 136, 0.1);
  outline: none;
}

.review-form textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.char-count {
  display: block;
  text-align: right;
  color: var(--mauno-gray);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* Star Rating */
.star-rating {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.star-rating i {
  font-size: 2rem;
  color: #e5e7eb;
  cursor: pointer;
  transition: all 0.2s ease;
}

.star-rating i:hover,
.star-rating i.active {
  color: #fbbf24;
  transform: scale(1.1);
}

.star-rating i:hover ~ i {
  color: #e5e7eb;
  transform: scale(1);
}

/* Form Actions */
.form-actions {
  text-align: center;
  margin-top: 2rem;
}

.form-actions .btn-modern {
  min-width: 200px;
}

/* Success Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(19, 18, 34, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: #fff;
  border-radius: 20px;
  padding: 3rem 2.5rem;
  text-align: center;
  max-width: 450px;
  width: 90%;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.modal-icon i {
  font-size: 3rem;
  color: #fff;
}

.modal-content h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--mauno-black);
  margin-bottom: 0.75rem;
}

.modal-content p {
  font-size: 1.1rem;
  color: var(--mauno-gray);
  margin-bottom: 2rem;
}

.modal-content .btn-modern {
  min-width: 150px;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
}

.empty-state i {
  font-size: 4rem;
  color: var(--mauno-gray);
  margin-bottom: 1.5rem;
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--mauno-black);
  margin-bottom: 0.75rem;
}

.empty-state p {
  font-size: 1.1rem;
  color: var(--mauno-gray);
}

/* Loading Spinner */
.loading-spinner {
  text-align: center;
  padding: 3rem 0;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(11, 77, 136, 0.1);
  border-top-color: var(--mauno-base);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .reviews-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
  }

  .stat-item {
    min-width: 150px;
  }
}

@media (max-width: 768px) {
  .reviews-hero {
    padding: 3rem 0;
  }

  .reviews-stats {
    gap: 2rem;
  }

  .stat-number {
    font-size: 2.5rem;
  }

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

  .filter-group,
  .sort-group {
    flex-direction: column;
    align-items: stretch;
  }

  .form-select {
    width: 100%;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .review-form .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .review-form-wrapper {
    padding: 2rem 1.5rem;
  }

  .review-form-header h2 {
    font-size: 1.75rem;
  }
}

@media (max-width: 480px) {
  .reviews-hero {
    padding: 2rem 0;
  }

  .stat-item {
    min-width: 120px;
    padding: 1rem 1.5rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .stat-label {
    font-size: 0.85rem;
  }

  .review-card {
    padding: 1.5rem;
  }

  .review-form-wrapper {
    padding: 1.5rem 1rem;
  }

  .star-rating i {
    font-size: 1.75rem;
  }
}

/* Animation for review cards */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.review-card {
  animation: fadeInUp 0.5s ease forwards;
}

.review-card:nth-child(1) { animation-delay: 0.1s; }
.review-card:nth-child(2) { animation-delay: 0.2s; }
.review-card:nth-child(3) { animation-delay: 0.3s; }
.review-card:nth-child(4) { animation-delay: 0.4s; }
.review-card:nth-child(5) { animation-delay: 0.5s; }
.review-card:nth-child(6) { animation-delay: 0.6s; }

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .review-card,
  .stat-item,
  .modal-content {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}
