/* ================================================================
   reviews.css — Aqua Laundry · REVIEWS PAGE
   ================================================================
   ⚠️  ต้องโหลด main.css ก่อนไฟล์นี้เสมอ
   โค้ดที่ซ้ำกันทุกหน้า (hero, breadcrumb, :root tokens,
   utilities, keyframes) ถูกย้ายไปรวมที่ main.css แล้ว
   ================================================================ */

:root {
  --star-gold:      #F59E0B;
}

/* ============================================
   SHARED
   ============================================ */

.rv-eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(0,180,216,0.1);
  color: var(--aqua-secondary);
  border: 1px solid rgba(0,180,216,0.22);
  border-radius: 50px; padding: 7px 18px;
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.8px;
  margin-bottom: 14px;
}
.rv-eyebrow i { font-size: 11px; }

.rv-section-header { text-align: center; margin-bottom: 48px; }

.rv-section-title {
  font-family: 'Kanit', sans-serif;
  font-size: 38px; font-weight: 800;
  color: var(--aqua-dark); line-height: 1.2; margin-bottom: 12px;
}

.rv-section-title span {
  background: var(--aqua-gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.rv-section-desc { font-size: 15px; color: #64748b; max-width: 500px; margin: 0 auto; line-height: 1.7; }



/* ============================================
   VIDEO REVIEWS
   ============================================ */

.rv-videos { padding: 88px 0; background: #f0f9ff; }

.rv-videos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.rv-video-card {
  background: white; border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,119,182,0.08);
  border: 1.5px solid rgba(0,180,216,0.1);
  cursor: pointer;
  transition: all 0.32s ease;
  display: flex; flex-direction: column;
}

.rv-video-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 48px rgba(0,119,182,0.18);
  border-color: rgba(0,180,216,0.35);
}

.rv-video-thumb {
  position: relative; height: 220px; overflow: hidden;
  background: linear-gradient(135deg, #023E8A, #0077B6);
  flex-shrink: 0;
}

.rv-video-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease; display: block;
}

.rv-video-card:hover .rv-video-thumb img { transform: scale(1.06); }

.rv-video-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(2,62,138,0.2) 0%, rgba(2,62,138,0.55) 100%);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s;
}

.rv-video-card:hover .rv-video-overlay {
  background: linear-gradient(180deg, rgba(0,180,216,0.2) 0%, rgba(2,62,138,0.65) 100%);
}

.rv-play-btn {
  width: 64px; height: 64px;
  background: rgba(255,255,255,0.92);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: var(--aqua-secondary);
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

.rv-video-card:hover .rv-play-btn {
  transform: scale(1.12); background: white;
  box-shadow: 0 8px 32px rgba(0,180,216,0.4);
  color: var(--aqua-primary);
}

.rv-play-btn i { margin-left: 3px; }

.rv-video-duration {
  position: absolute; bottom: 10px; right: 12px;
  background: rgba(0,0,0,0.6); color: white;
  font-size: 12px; font-weight: 700;
  padding: 3px 8px; border-radius: 6px;
  backdrop-filter: blur(4px);
}

.rv-video-info { padding: 20px 22px 24px; flex: 1; }

.rv-video-stars { display: flex; gap: 3px; margin-bottom: 10px; }
.rv-video-stars i { color: var(--star-gold); font-size: 13px; }

.rv-video-title {
  font-family: 'Kanit', sans-serif;
  font-size: 17px; font-weight: 700;
  color: var(--aqua-dark); margin-bottom: 10px; line-height: 1.4;
}

.rv-video-meta {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 10px; flex-wrap: wrap;
}

.rv-video-author {
  font-size: 13px; color: #64748b; font-weight: 500;
  display: flex; align-items: center; gap: 5px;
}
.rv-video-author i { color: var(--aqua-primary); }

.rv-video-pkg {
  font-size: 11px; font-weight: 700;
  padding: 3px 10px; border-radius: 50px; color: white;
}
.rv-pkg-green  { background: linear-gradient(135deg, #10b981, #059669); }
.rv-pkg-blue   { background: linear-gradient(135deg, #00B4D8, #0077B6); }
.rv-pkg-orange { background: linear-gradient(135deg, #f59e0b, #d97706); }
.rv-pkg-purple { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }

.rv-video-snippet { font-size: 13px; color: #94a3b8; line-height: 1.6; margin: 0; }

/* ============================================
   COMMENT REVIEWS
   ============================================ */

.rv-comments { padding: 88px 0; background: white; }

/* Filter */
.rv-filter-wrap {
  display: flex; gap: 8px; flex-wrap: wrap;
  justify-content: center; margin-bottom: 40px;
}

.rv-filter-tab {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 18px;
  border: 1.5px solid #e2e8f0;
  border-radius: 50px; background: white;
  font-size: 13px; font-weight: 600; color: #64748b;
  cursor: pointer; transition: all 0.22s;
  font-family: inherit;
}
.rv-filter-tab i { font-size: 11px; }
.rv-filter-tab:hover { border-color: var(--aqua-primary); color: var(--aqua-primary); background: rgba(0,180,216,0.04); }
.rv-filter-tab.active {
  background: var(--aqua-gradient); border-color: transparent;
  color: white; box-shadow: 0 3px 12px rgba(0,180,216,0.3);
}

/* Grid */
.rv-comments-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

/* Card */
.rv-comment-card {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 18px;
  padding: 22px 20px;
  position: relative;
  transition: all 0.3s ease, opacity 0.5s ease, transform 0.5s ease;
  opacity: 0;
  transform: translateY(18px);
}

.rv-comment-card.rv-comment-visible { opacity: 1; transform: translateY(0); }

.rv-comment-card:hover {
  background: white;
  border-color: rgba(0,180,216,0.28);
  box-shadow: 0 10px 32px rgba(0,119,182,0.1);
  transform: translateY(-4px);
}

.rv-comment-featured {
  background: white;
  border-color: var(--aqua-primary);
  box-shadow: 0 4px 20px rgba(0,180,216,0.14);
}

.rv-featured-label {
  position: absolute; top: -12px; left: 20px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white; font-size: 11px; font-weight: 800;
  padding: 4px 12px; border-radius: 50px;
  display: flex; align-items: center; gap: 5px;
  box-shadow: 0 2px 8px rgba(245,158,11,0.35);
}

.rv-comment-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }

.rv-comment-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--color, #0077B6), #023E8A);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Kanit', sans-serif;
  font-size: 18px; font-weight: 700; color: white;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.rv-comment-meta { flex: 1; min-width: 0; }

.rv-comment-name {
  font-weight: 700; font-size: 14px; color: var(--aqua-dark);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.rv-comment-sub { font-size: 11.5px; color: #94a3b8; margin-top: 2px; line-height: 1.3; }

.rv-comment-platform { font-size: 18px; color: #94a3b8; flex-shrink: 0; }
.rv-comment-platform .fa-google   { color: #EA4335; }
.rv-comment-platform .fa-facebook { color: #1877F2; }
.rv-comment-platform .fa-line     { color: #06C755; }

.rv-comment-stars { display: flex; gap: 3px; margin-bottom: 12px; }
.rv-comment-stars i { color: var(--star-gold); font-size: 13px; }

.rv-comment-text { font-size: 14px; color: #475569; line-height: 1.75; margin-bottom: 14px; }

.rv-comment-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 12px; border-top: 1px solid #f1f5f9;
  flex-wrap: wrap; gap: 6px;
}

.rv-comment-date {
  font-size: 12px; color: #94a3b8;
  display: flex; align-items: center; gap: 5px;
}

.rv-comment-verified {
  font-size: 11px; font-weight: 700; color: var(--aqua-primary);
  display: flex; align-items: center; gap: 4px;
}
.rv-comment-verified i { font-size: 12px; }

/* Load more */
.rv-load-more-wrap { text-align: center; }

.rv-load-more-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 32px;
  border: 2px solid var(--aqua-primary);
  border-radius: 12px; background: transparent;
  color: var(--aqua-primary);
  font-size: 15px; font-weight: 700;
  cursor: pointer; transition: all 0.3s;
  font-family: inherit;
}

.rv-load-more-btn:hover:not(:disabled) {
  background: var(--aqua-gradient); border-color: transparent;
  color: white; box-shadow: 0 4px 16px rgba(0,180,216,0.3);
  transform: translateY(-2px);
}

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

.rv-cta {
  position: relative;
  background: linear-gradient(120deg, #023E8A 0%, #0077B6 55%, #0096C7 100%);
  padding: 80px 0;
  overflow: hidden;
  text-align: center;
}

.rv-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -55deg, transparent, transparent 18px,
    rgba(255,255,255,0.02) 18px, rgba(255,255,255,0.02) 19px
  );
}

/* Floating particles */
.rv-cta-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.rv-cta-particles span {
  position: absolute;
  display: block;
  border-radius: 50%;
  background: rgba(144, 224, 239, 0.2);
  animation: rvParticleFloat 8s ease-in-out infinite;
}

.rv-cta-particles span:nth-child(1) { width:60px; height:60px; top:15%; left:8%; animation-delay:0s; }
.rv-cta-particles span:nth-child(2) { width:30px; height:30px; top:65%; left:15%; animation-delay:2s; }
.rv-cta-particles span:nth-child(3) { width:45px; height:45px; top:30%; right:12%; animation-delay:4s; }
.rv-cta-particles span:nth-child(4) { width:20px; height:20px; bottom:20%; right:8%; animation-delay:1s; }
.rv-cta-particles span:nth-child(5) { width:70px; height:70px; top:55%; left:45%; animation-delay:3s; opacity:0.1; }

@keyframes rvParticleFloat {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.2; }
  50% { transform: translateY(-20px) scale(1.1); opacity: 0.4; }
}

.rv-cta-inner { position: relative; z-index: 1; }

.rv-cta-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  background: rgba(255,255,255,0.12);
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: white;
  backdrop-filter: blur(8px);
  animation: rvCtaIconPulse 3s ease-in-out infinite;
}

@keyframes rvCtaIconPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(144,224,239,0.3); }
  50% { transform: scale(1.05); box-shadow: 0 0 0 14px rgba(144,224,239,0); }
}

.rv-cta-title {
  font-family: 'Kanit', sans-serif;
  font-size: 38px; font-weight: 800;
  color: white; line-height: 1.3; margin-bottom: 14px;
}

.rv-cta-desc {
  font-size: 16px; color: rgba(255,255,255,0.75);
  margin-bottom: 36px;
  margin-left: auto; margin-right: auto; line-height: 1.7;
}

.rv-cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.rv-cta-primary {
  padding: 15px 36px; background: white;
  color: var(--aqua-secondary); border-radius: 12px;
  font-size: 15px; font-weight: 800; text-decoration: none;
  display: inline-flex; align-items: center; gap: 9px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.rv-cta-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(0,0,0,0.2); color: var(--aqua-primary); }

.rv-cta-outline {
  padding: 15px 36px; background: transparent;
  color: white; border: 2px solid rgba(255,255,255,0.35);
  border-radius: 12px; font-size: 15px; font-weight: 700;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 9px;
  transition: all 0.3s ease;
}
.rv-cta-outline:hover { border-color: white; background: rgba(255,255,255,0.12); color: white; transform: translateY(-3px); }

/* ============================================
   VIDEO MODAL
   ============================================ */

.rv-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(2,62,138,0.75);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.rv-modal-overlay.active { opacity: 1; pointer-events: all; }

.rv-modal {
  background: #000; border-radius: 20px;
  max-width: 860px; width: 100%;
  position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  animation: modalPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

@keyframes modalPop {
  from { transform: scale(0.88); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

.rv-modal-close {
  position: absolute; top: 12px; right: 12px;
  width: 36px; height: 36px; border-radius: 50%;
  border: none; background: rgba(255,255,255,0.15);
  color: white; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; z-index: 10;
  transition: all 0.2s; backdrop-filter: blur(4px);
}
.rv-modal-close:hover { background: rgba(255,255,255,0.3); transform: rotate(90deg); }

.rv-modal-video-wrap {
  position: relative; padding-bottom: 56.25%;
  height: 0; overflow: hidden;
}
.rv-modal-video-wrap iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet portrait */
@media (max-width: 992px) {
  .rv-videos-grid { grid-template-columns: 1fr 1fr; }
  .rv-comments-grid { grid-template-columns: repeat(2, 1fr); }
  .rv-section-title { font-size: 32px; }
}

/* Mobile */
@media (max-width: 768px) {
  /* Videos */
  .rv-videos { padding: 48px 0; }
  .rv-videos-grid { grid-template-columns: 1fr; gap: 16px; }
  .rv-video-card { flex-direction: row; border-radius: 16px; }
  .rv-video-thumb {
    height: auto; width: 130px; min-width: 130px;
    border-radius: 0; flex-shrink: 0;
  }
  .rv-video-info { padding: 14px 16px 16px; }
  .rv-video-title { font-size: 14px; margin-bottom: 6px; }
  .rv-video-snippet { display: none; }
  .rv-play-btn { width: 44px; height: 44px; font-size: 15px; }

  /* Comments */
  .rv-comments { padding: 48px 0; }
  .rv-comments-grid { grid-template-columns: 1fr; gap: 14px; }

  /* Filter: horizontal scroll */
  .rv-filter-wrap {
    flex-wrap: nowrap; overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 8px; padding-left: 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-bottom: 28px;
    /* fade edges */
    -webkit-mask-image: linear-gradient(90deg, transparent 0, black 16px, black calc(100% - 16px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, black 16px, black calc(100% - 16px), transparent 100%);
  }
  .rv-filter-wrap::-webkit-scrollbar { display: none; }
  .rv-filter-tab { white-space: nowrap; flex-shrink: 0; padding: 9px 16px; font-size: 13px; }

  /* Cards always visible on mobile — skip JS observer lag */
  .rv-comment-card { opacity: 1; transform: none; padding: 18px 16px; }
  .rv-comment-card.rv-comment-visible {
    transition: background 0.3s, border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  }
  /* Disable hover lift on touch */
  .rv-comment-card:hover { transform: none; }

  /* Shared */
  .rv-section-header { margin-bottom: 24px; }
  .rv-section-title { font-size: 26px; }
  .rv-eyebrow { font-size: 11px; padding: 6px 14px; }
  .rv-section-desc { font-size: 14px; }

  /* Load more */
  .rv-load-more-btn { width: 100%; max-width: 320px; justify-content: center; }

  /* CTA */
  .rv-cta { padding: 56px 0; }
  .rv-cta-title { font-size: 26px; }
  .rv-cta-desc { font-size: 14px; margin-bottom: 28px; }
  .rv-cta-primary, .rv-cta-outline {
    padding: 13px 24px;
    font-size: 14px;
    width: 100%;
    justify-content: center;
  }
  .rv-cta-actions { flex-direction: column; align-items: stretch; max-width: 320px; margin-left: auto; margin-right: auto; }

  /* Modal */
  .rv-modal { border-radius: 14px; }
  .rv-modal-overlay { padding: 10px; align-items: flex-end; }
  .rv-modal { border-radius: 20px 20px 14px 14px; }
}

/* Small mobile */
@media (max-width: 480px) {
  .rv-comment-avatar { width: 38px; height: 38px; font-size: 15px; }
  .rv-comment-name { font-size: 13px; }
  .rv-comment-text { font-size: 13.5px; }
  .rv-video-thumb { width: 110px; min-width: 110px; }
  .rv-cta-title { font-size: 22px; }
}
