/* 
   Ratings Page Styles - Advanced Version
   Maintained by Antigravity
   Primary Color: #4f0469
*/

/* Banner Area */
.banner-area.rating-banner {
  background-size: cover;
  background-position: center;
  padding: 100px 0;
  position: relative;
  color: #fff;
}

.banner-area.rating-banner:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(79, 4, 105, 0.7); /* Purple Overlay */
}

.banner-area.rating-banner .container {
  position: relative;
  z-index: 2;
}

/* Rating Summary Section */
.rating-summary-box {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
  margin-bottom: 40px;
  border-top: 5px solid #4f0469;
}

.rating-score-large {
  font-size: 64px;
  font-weight: 700;
  color: #4f0469;
  line-height: 1;
  margin-bottom: 10px;
}

.stars-outer {
  display: inline-block;
  position: relative;
  font-family: "FontAwesome";
  font-size: 24px;
  color: #e0e0e0;
}

.stars-outer::before {
  content: "\f005 \f005 \f005 \f005 \f005";
}

.stars-inner {
  position: absolute;
  top: 0;
  left: 0;
  white-space: nowrap;
  overflow: hidden;
  width: 0;
  color: #ffc107;
}

.stars-inner::before {
  content: "\f005 \f005 \f005 \f005 \f005";
}

/* Rating Bars */
.rating-bars {
  margin-top: 20px;
}

.rating-bar-item {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.rating-bar-label {
  width: 60px;
  font-weight: 600;
  font-size: 14px;
}

.rating-bar-progress {
  flex-grow: 1;
  height: 10px;
  background: #f0f0f0;
  border-radius: 5px;
  margin: 0 15px;
  overflow: hidden;
}

.rating-bar-fill {
  height: 100%;
  background: #4f0469;
  border-radius: 5px;
}

.rating-bar-count {
  width: 40px;
  font-size: 14px;
  color: #777;
  text-align: right;
}

/* Review Cards */
.review-card {
  background: #fff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 25px;
  transition: transform 0.3s ease;
  border-left: 0 solid #4f0469;
}

.review-card:hover {
  transform: translateY(-5px);
  border-left-width: 5px;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.user-info {
  display: flex;
  align-items: center;
}

.user-avatar {
  width: 50px;
  height: 50px;
  background: #4f0469;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
  margin-right: 15px;
}

.user-name {
  font-weight: 700;
  font-size: 18px;
  color: #333;
  margin-bottom: 0;
}

.review-date {
  font-size: 14px;
  color: #999;
}

.review-text {
  font-style: italic;
  color: #555;
  line-height: 1.6;
  margin-bottom: 0;
}

/* Form Styles */
.submit-rating-box {
  background: #f9f9f9;
  padding: 40px;
  border-radius: 8px;
  margin-top: 40px;
}

.star-rating-input {
  font-size: 30px;
  color: #e0e0e0;
  cursor: pointer;
  margin-bottom: 20px;
}

.star-rating-input .fa:hover,
.star-rating-input .fa.active {
  color: #ffc107;
}

/* Responsive */
@media (max-width: 767px) {
  .rating-score-large {
    font-size: 48px;
  }
  .rating-summary-box {
    text-align: center;
  }
  .rating-bar-item {
    flex-wrap: wrap;
  }
  .rating-bar-progress {
    width: 100%;
    margin: 10px 0;
    order: 3;
  }
  .review-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .review-date {
    margin-top: 10px;
  }
}

/* Review Filters */
.review-filters {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
  flex-wrap: wrap;
  position: relative;
  z-index: 10;
}

.filter-btn {
  padding: 8px 20px;
  border: 2px solid #ddd;
  background: #fff;
  color: #333;
  border-radius: 50px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  z-index: 11;
  pointer-events: auto !important;
  font-weight: 600;
}

.filter-btn:hover {
  border-color: #4f0469;
  color: #4f0469;
}

.filter-btn.active {
  background: #4f0469 !important;
  color: #fff !important;
  border-color: #4f0469 !important;
  box-shadow: 0 4px 10px rgba(79, 4, 105, 0.3);
}

/* FAQ Section */
.faq-section {
  padding: 60px 0;
  background: #fdfdfd;
}

.faq-item {
  border-bottom: 1px solid #eee;
  padding: 20px 0;
}

.faq-question {
  font-weight: 700;
  color: #333;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question:hover {
  color: #4f0469;
}

.faq-answer {
  display: none;
  padding: 15px 20px;
  color: #555;
  line-height: 1.7;
  background: #f9f9f9;
  border-top: 1px solid #eee;
  overflow: hidden;
}

.faq-answer.show {
  display: block !important;
}

/* Modernized Submit Area */
.premium-submit-card {
  background: linear-gradient(135deg, #4f0469 0%, #303030 100%);
  color: #fff;
  padding: 40px;
  border-radius: 12px;
  margin-top: 40px;
  text-align: center;
}

.premium-submit-card h4 {
  color: #fff;
}

.premium-submit-card .star-rating-input {
  color: #fff;
}

/* Pagination / Load More */
.pagination-wrapper {
  margin-top: 30px;
  text-align: center;
  position: relative;
  z-index: 10;
}

.load-more-btn {
  background: #fff;
  border: 2px solid #4f0469;
  color: #4f0469;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
  z-index: 11;
}

.load-more-btn:hover {
  background: #4f0469;
  color: #fff;
}

.review-card.hidden-review {
  display: none;
}

/* Modal Overlay */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

/* Modal Content */
.modal-content {
  background: #fff;
  width: 100%;
  max-width: 500px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
  position: relative;
}

.modal-header {
  background: #f9f9f9;
  padding: 20px 25px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header .border-title {
  margin: 0;
  font-size: 20px;
  padding-bottom: 0;
  border-bottom: none;
}

.close-modal {
  background: none;
  border: none;
  font-size: 28px;
  color: #999;
  cursor: pointer;
  line-height: 1;
}

.close-modal:hover {
  color: #4f0469;
}

.modal-body {
  padding: 25px;
}

.modal-footer {
  padding: 15px 25px;
  background: #f9f9f9;
  border-top: 1px solid #eee;
  text-align: right;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* Form Groups */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: #4f0469;
}

/* Star Selector */
.star-rating-selector {
  background: #fef8ff;
  padding: 15px;
  border-radius: 8px;
  border: 1px dashed #4f0469;
  text-align: center;
}

.stars-input {
  font-size: 32px;
  margin-bottom: 5px;
}

.star-select {
  cursor: pointer;
  color: #ddd;
  transition: all 0.2s ease;
  margin: 0 2px;
}

.star-select.active {
  color: #ffc107;
}

#rating-label {
  display: block;
  font-size: 14px;
  color: #4f0469;
  font-weight: 600;
}

/* Alerts */
.alert {
  padding: 12px 15px;
  border-radius: 6px;
  margin-bottom: 20px;
  font-size: 14px;
}

.alert-success {
  background: #e8f5e9;
  color: #2e7d32;
  border-left: 4px solid #4caf50;
}

.alert-danger {
  background: #ffebee;
  color: #c62828;
  border-left: 4px solid #f44336;
}

/* Animations */
.animate-zoom {
  animation: animateZoom 0.3s ease-out;
}

@keyframes animateZoom {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
/* Dedicated Submit Review Page Styles */
.submit-review-page {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  min-height: 100vh;
  padding: 80px 0;
  display: flex;
  align-items: center;
}

.submission-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  padding: 50px;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(79, 4, 105, 0.1);
  max-width: 800px;
  margin: 0 auto;
  transition: all 0.4s ease;
}

.submission-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(79, 4, 105, 0.15);
}

.submission-card .border-title {
  font-size: 32px;
  color: #4f0469;
  margin-bottom: 30px;
  text-align: center;
}

.submission-card .form-control {
  background: #fff;
  border: 2px solid #eee;
  padding: 15px;
  border-radius: 10px;
  font-size: 16px;
  margin-bottom: 25px;
}

.submission-card .form-control:focus {
  border-color: #4f0469;
  box-shadow: 0 0 10px rgba(79, 4, 105, 0.1);
}

.submission-card label {
  font-size: 16px;
  font-weight: 700;
  color: #333;
  margin-bottom: 10px;
}

.submission-card .star-rating-selector {
  background: #fff;
  border: 2px solid #eee;
  padding: 25px;
  border-radius: 15px;
  margin-bottom: 30px;
}

.submission-card .stars-input {
  font-size: 48px;
}

.submission-card .btn-primary {
  background: #4f0469;
  border: none;
  padding: 15px 40px;
  font-size: 18px;
  font-weight: 700;
  border-radius: 50px;
  transition: all 0.3s ease;
  width: 100%;
}

.submission-card .btn-primary:hover {
  background: #300240;
  transform: scale(1.02);
  box-shadow: 0 10px 20px rgba(79, 4, 105, 0.2);
}

.submission-card .btn-secondary {
  background: transparent;
  border: 2px solid #ccc;
  color: #777;
  padding: 12px 30px;
  border-radius: 50px;
  margin-top: 15px;
  width: 100%;
}

@media (max-width: 767px) {
  .submission-card {
    padding: 30px 20px;
  }
}

/* User-Friendly Star List */
.star-rating-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 15px;
}

.star-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border: 2px solid #eee;
  padding: 15px 25px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.star-option:hover {
  border-color: #4f0469;
  background: #fdf8ff;
  transform: translateX(5px);
}

.star-option.active {
  border-color: #4f0469 !important;
  background: #4f0469 !important;
  color: #fff !important;
  box-shadow: 0 10px 20px rgba(79, 4, 105, 0.2);
}

.star-option .option-stars {
  font-size: 20px;
}

.star-option .option-label {
  font-weight: 700;
  font-size: 16px;
}

.star-option.active .option-stars .fa {
  color: #ffc107 !important;
}

.star-option:not(.active) .option-stars .fa {
  color: #ddd;
}

.star-option:not(.active):hover .option-stars .fa {
  color: #ffc107 !important;
}

/* New classes for externalized styles */

/* Badge Styles */
.badge-rating {
    background: #ffc107 !important;
    color: #333 !important;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 50px;
}

/* Modal Content Styles */
.modal-title-custom {
    margin: 0;
    border: none !important;
    padding: 0 !important;
}

/* User Avatar Styles */
.user-avatar-initials {
    background: #4f0469;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-weight: bold;
}

.user-meta-wrapper {
    display: inline-block;
    vertical-align: middle;
}

.user-name-small {
    margin: 0;
    font-size: 16px;
}

.review-stars-wrapper {
    font-size: 14px;
}

.review-text-spaced {
    margin-top: 10px;
}

/* Pagination Styles */
.pagination-container-custom {
    margin-top: 30px;
}

.pagination-custom-php {
    display: inline-flex !important;
    list-style: none;
    padding: 0;
}

.pagination-custom-php li {
    margin: 0 5px;
}

.pagination-custom-php li a {
    color: #4f0469;
    background: #fff;
    border: 1px solid #4f0469;
    border-radius: 4px;
    padding: 10px 18px;
    text-decoration: none;
    font-weight: bold;
    display: block;
    transition: all 0.2s ease;
}

.pagination-custom-php li.active a {
    color: #fff !important;
    background: #4f0469 !important;
}

/* Submit Review Page Styles (Extracted from internal block) */
.star-radio {
    display: none;
}

.star-radio-label {
    display: block;
    cursor: pointer;
}

.star-radio:checked + .star-option {
    border-color: #4f0469 !important;
    background: #4f0469 !important;
    color: #fff !important;
    box-shadow: 0 10px 20px rgba(79, 4, 105, 0.2);
}

.star-radio:checked + .star-option .option-stars .fa {
    color: #ffc107 !important;
}

.submission-note {
    margin-bottom: 30px;
    color: #666;
}
