/* Reviews Page - Cyberpunk Dark Theme
   Theme: Cyan/Magenta neon (#00ffff → #ff00ff)
   Typography: Rajdhani + Orbitron
*/

:root {
  --rps-gradient: linear-gradient(135deg, #00ffff 0%, #ff00ff 100%);
  --rps-primary: #00ffff;
  --rps-primary-2: #ff00ff;
  --rps-text: #e0e0e0;
  --rps-text-muted: #aaaaaa;
  --rps-border: rgba(0, 255, 255, 0.15);
  --rps-bg: #0a0a0f;
  --rps-card: rgba(10, 10, 15, 0.9);
  --rps-success: #00ff88;
  --rps-warning: #f59e0b;
  --rps-danger: #ff4444;
}

.reviews-page {
  background: var(--rps-bg);
  margin-top: 24px; /* Space from header */
}

/* Hero */
.reviews-hero {
  background: var(--rps-gradient);
  color: #fff;
  padding: 40px 0;
  margin: 0 -20px;
  border-radius: 0;
  box-shadow: 0 12px 30px rgba(0, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
}
.reviews-hero .hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}
/* Cool animated background effects */
.reviews-hero::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, 
    rgba(255,255,255,0.1) 25%, 
    transparent 25%, 
    transparent 50%, 
    rgba(255,255,255,0.1) 50%, 
    rgba(255,255,255,0.1) 75%, 
    transparent 75%);
  background-size: 60px 60px;
  animation: heroPattern 20s linear infinite;
  opacity: 0.3;
}
.reviews-hero::after {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(255,255,255,0.25), transparent 70%);
  transform: rotate(18deg);
  animation: heroFloat 6s ease-in-out infinite;
}
@keyframes heroPattern {
  0% { transform: translateX(0) translateY(0); }
  100% { transform: translateX(60px) translateY(60px); }
}
@keyframes heroFloat {
  0%, 100% { transform: rotate(18deg) translateY(0px); }
  50% { transform: rotate(18deg) translateY(-10px); }
}
.reviews-hero .hero-title {
  font-weight: 700;
  font-size: 2rem;
  margin: 0 0 16px 0;
  text-align: center;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
  animation: heroTitleGlow 3s ease-in-out infinite alternate;
}
@keyframes heroTitleGlow {
  0% { text-shadow: 0 2px 10px rgba(0,0,0,0.3); }
  100% { text-shadow: 0 2px 20px rgba(255,255,255,0.4); }
}
.reviews-hero .hero-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  justify-content: center;
}
.reviews-hero .meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.28);
  color: #fff;
  padding: 8px 12px;
  border-radius: 0;
  font-weight: 600;
  font-size: 0.95rem;
  backdrop-filter: blur(6px);
  animation: metaPillPulse 4s ease-in-out infinite;
  animation-delay: calc(var(--pill-index) * 0.3s);
}
@keyframes metaPillPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 rgba(255,255,255,0.4); }
  50% { transform: scale(1.05); box-shadow: 0 0 20px rgba(255,255,255,0.3); }
}
@keyframes ownerReplyGlow {
  0% { 
    box-shadow: 
      0 0 30px rgba(102,126,234,.4),
      0 0 60px rgba(118,75,162,.2),
      inset 0 1px 0 rgba(255,255,255,.1);
  }
  100% { 
    box-shadow: 
      0 0 40px rgba(102,126,234,.6),
      0 0 80px rgba(118,75,162,.3),
      inset 0 1px 0 rgba(255,255,255,.2);
  }
}
.reviews-hero .back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 0;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.28);
  color: #fff;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}
.reviews-hero .back-btn:hover {
  transform: translateX(-4px);
  background: rgba(255,255,255,0.28);
}

/* Top controls */
.reviews-controls {
  margin-top: 22px;
  margin-bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sort-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sort-controls label {
  color: var(--rps-text-muted);
  font-weight: 600;
  font-size: 0.95rem;
}
.sort-select {
  border: 1px solid var(--rps-border);
  background: var(--rps-card);
  border-radius: 0;
  padding: 8px 12px;
  color: var(--rps-text);
  font-weight: 600;
}

.rating-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.rating-chip {
  border: 1px solid var(--rps-border);
  background: var(--rps-card);
  color: var(--rps-text);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 6px 10px;
  border-radius: 0;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}
.rating-chip:hover {
  border-color: var(--rps-primary);
  color: var(--rps-primary);
}
.rating-chip.active {
  background: var(--rps-primary);
  border-color: var(--rps-primary);
  color: #fff;
}

/* Cards */
.sidebar-card, .reviews-container {
  background: var(--rps-card);
  border: 1px solid var(--rps-border);
  border-radius: 0;
  box-shadow: 0 6px 16px rgba(17, 24, 39, 0.05);
}
.sidebar-card { margin-bottom: 18px; }
.sidebar-header {
  padding: 14px 16px;
  background: #0f172a; /* slate-900 */
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}
.sidebar-body { padding: 18px; }

/* Overview rating */
.overall-rating { text-align: center; padding: 16px 0; border-bottom: 1px solid var(--rps-border); margin-bottom: 16px; }
.rating-number { font-size: 2.6rem; font-weight: 800; background: var(--rps-gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.rating-stars { color: #ffd700; display: flex; justify-content: center; gap: 3px; font-size: 1.2rem; }
.rating-count { color: var(--rps-text-muted); font-weight: 600; font-size: 0.95rem; }

/* Rating breakdown bars */
.rating-breakdown { list-style: none; padding: 0; margin: 0; }
.rating-bar { display:flex; align-items:center; gap:10px; padding:10px; border-radius:0; cursor:pointer; transition: transform .15s ease, background .15s ease; }
.rating-bar:hover { background: rgba(0, 255, 255, 0.05); transform: translateX(2px); }
.rating-bar.active { background: rgba(0, 255, 255, 0.08); border-left: 3px solid var(--rps-primary); }
.bar-label { width: 56px; display:flex; align-items:center; gap:4px; font-weight:700; color:#e0e0e0; }
.bar-container { flex:1; height:8px; background:rgba(0, 255, 255, 0.1); border-radius:0; overflow:hidden; }
.bar-fill { height:100%; background: var(--rps-gradient); }
.bar-count { width: 32px; text-align:right; color: var(--rps-text-muted); font-weight:600; }

/* Reviews list */
.reviews-container .reviews-header { display:flex; justify-content:space-between; align-items:center; padding:16px 18px; background:#0f172a; color:#fff; border-top-left-radius:0; border-top-right-radius:0; }
.reviews-container .reviews-body { padding: 18px; }

.review-item {
  border: 1px solid var(--rps-border);
  border-radius: 0;
  padding: 16px;
  margin-bottom: 16px;
  transition: transform .15s ease, box-shadow .15s ease;
  background: rgba(10, 10, 15, 0.8);
}
.review-item:hover { transform: translateY(-2px); box-shadow: 0 8px 16px rgba(0, 255, 255, 0.05); }

/* Rating accent borders by score */
.review-item.rating-5, .review-item.rating-4, .review-item.rating-3 { 
  border-left: 4px solid;
  border-image: var(--rps-gradient) 1;
  position: relative;
}
.review-item.rating-5::before, .review-item.rating-4::before, .review-item.rating-3::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--rps-gradient);
  z-index: 1;
}
.review-item.rating-2 { border-left: 4px solid var(--rps-warning); }
.review-item.rating-1 { border-left: 4px solid var(--rps-danger); }

.review-header { display:flex; justify-content:space-between; align-items:flex-start; gap: 12px; }
.reviewer-info { display:flex; align-items:center; gap:12px; }
.reviewer-avatar { width:48px; height:48px; border-radius: 0; background: var(--rps-gradient); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:800; box-shadow: 0 2px 8px rgba(102,126,234,.35); }
img.reviewer-avatar { background:none; border: 1px solid var(--rps-border); }
.reviewer-details h5 { margin:0; font-weight:700; font-size:1rem; color:#e0e0e0; }
.review-date { color: var(--rps-text-muted); font-size: 0.9rem; }
.review-rating { color:#ffd700; display:flex; gap:2px; font-size:1rem; }
.review-content { margin: 14px 0; padding-bottom: 14px; border-bottom: 1px solid var(--rps-border); }
.review-title { font-weight:700; margin-bottom:6px; font-size:1rem; color:#e0e0e0; }
.review-text { color:#ccc; line-height:1.65; white-space: pre-wrap; word-break: break-word; }

.review-footer { display:flex; justify-content:space-between; align-items:center; padding-top: 12px; }
.helpful-indicator { color: var(--rps-primary); font-weight:700; display:flex; align-items:center; gap:6px; }
.comment-link { color: var(--rps-primary); text-decoration:none; display:flex; align-items:center; gap:8px; font-weight:700; padding:6px 10px; border-radius:0; }
.comment-link:hover { background: rgba(0, 255, 255, 0.08); }

/* Owner replies — match regular comment styling, very neutral */
.owner-reply {
  margin-top: 12px;
  padding: 0;              /* no extra padding beyond text blocks */
  border: 0;               /* no extra border box */
  background: transparent; /* use parent card background */
}


.reply-header { display:flex; align-items:center; gap: 8px; margin-bottom: 6px; }
.reply-author-info { display:flex; align-items:center; gap: 8px; }
.reply-avatar { width: 28px; height: 28px; border-radius: 50%; background: rgba(0, 255, 255, 0.1); color:#00ffff; display:flex; align-items:center; justify-content:center; font-weight:700; font-size: .9rem; }
img.reply-avatar { background:none; border:1px solid var(--rps-border); }
.reply-author { font-weight:700; color:#e0e0e0; font-size: .95rem; }
.reply-date { color: var(--rps-text-muted); font-size: .85rem; margin-left:auto; }
.reply-text { color:#ccc; line-height:1.55; white-space: pre-wrap; word-break: break-word; font-size: .95rem; padding-left: 0; }

/* Owner reply notice */
.owner-replied-badge { background: var(--rps-success); color:#fff; border-radius: 0; padding: 4px 10px; font-weight:800; display:inline-flex; align-items:center; gap:6px; }

/* Reply form */
.reply-form { margin-top: 14px; padding: 14px; background: rgba(0, 255, 255, 0.03); border: 1.5px dashed var(--rps-border); border-radius: 0; }
.reply-form h6 { margin: 0 0 8px 0; font-weight: 800; color:#e0e0e0; }
.reply-form textarea { width:100%; min-height:110px; resize: vertical; padding: 10px; border: 1px solid var(--rps-border); border-radius: 0; font-size: 0.95rem; }
.reply-form textarea:focus { outline: none; border-color: var(--rps-primary); box-shadow: 0 0 0 3px rgba(0, 255, 255, 0.15); }
.reply-form button { margin-top: 10px; background: var(--rps-gradient); color:#fff; border:none; padding: 10px 16px; border-radius: 0; font-weight:800; cursor:pointer; }
.reply-form button:hover { filter: brightness(1.05); box-shadow: 0 0 15px rgba(0, 255, 255, 0.25); }
.reply-form button:disabled { opacity:.6; cursor:not-allowed; }

/* Pagination */
.pagination-wrapper { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--rps-border); }
.page-info { text-align:center; color: var(--rps-text-muted); font-weight:700; margin-bottom: 10px; }
.pagination { display:flex; justify-content:center; gap:10px; }
.pagination a, .pagination span { padding: 8px 12px; border: 1px solid var(--rps-border); background: rgba(10, 10, 15, 0.8); color: var(--rps-text); text-decoration:none; border-radius: 0; font-weight:800; }
.pagination a:hover { border-color: var(--rps-primary); color: var(--rps-primary); }
.pagination .active { background: var(--rps-gradient); color:#fff; border-color: transparent; }

/* Responsive */
@media (max-width: 992px) {
  .reviews-controls { flex-direction: column; align-items: stretch; }
  .sort-controls { justify-content: space-between; }
}
