/*
 * Momo Review — Single review page styles.
 * Port từ React src/pages/ReviewDetail.css.
 */

/* Banner */
.detail-banner {
  width: 100%;
  padding: 60px 0 40px;
  margin-bottom: 40px;
  position: relative;
  color: var(--text);
}

.banner-content {
  position: relative;
  z-index: 2;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 30px;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 20px;
  transition: var(--transition);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.back-btn:hover {
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary);
}

.detail-category {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.detail-title {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--text);
  margin: 0 0 16px;
  max-width: 800px;
  line-height: 1.2;
}

.detail-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.4);
  padding: 8px 16px;
  border-radius: 30px;
  display: inline-flex;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.meta-divider {
  color: rgba(0, 0, 0, 0.3);
}

.meta-author strong {
  color: var(--text);
}

/* Detail content wrapper */
.detail-content {
  padding: 40px;
  margin-bottom: 80px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.main-article {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 32px;
}

.main-article p {
  margin-bottom: 1.2em;
}

/* Hero image (between banner and content) */
.review-hero {
  margin: 0 0 32px;
}

.review-hero-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.review-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.review-hero-fallback {
  font-size: clamp(64px, 12vw, 120px);
  opacity: 0.55;
  line-height: 1;
  user-select: none;
}

.review-hero-hint {
  margin: 12px 0 0;
  font-size: 0.9rem;
  color: rgba(0, 0, 0, 0.6);
  text-align: center;
}

.review-hero-hint a {
  color: var(--primary, #ec4899);
  text-decoration: none;
  font-weight: 600;
  margin-left: 4px;
}

.review-hero-hint a:hover {
  text-decoration: underline;
}

/* Gallery */
.article-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin: 32px 0;
}

.article-gallery-empty {
  margin: 32px 0;
  padding: 20px 24px;
  border: 1px dashed rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.02);
  font-size: 0.95rem;
  color: rgba(0, 0, 0, 0.6);
  text-align: center;
}

.article-gallery-empty-icon {
  display: block;
  font-size: 32px;
  margin-bottom: 6px;
  opacity: 0.5;
}

.article-gallery-empty a {
  color: var(--primary, #ec4899);
  text-decoration: none;
  font-weight: 600;
  margin-left: 6px;
}

.article-gallery-empty a:hover {
  text-decoration: underline;
}

.article-gallery-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

/* Pros / Cons */
.pros-cons-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 32px 0;
}

.pros-box,
.cons-box {
  padding: 24px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.pros-box h3,
.cons-box h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 16px;
}

.pros-box ul,
.cons-box ul {
  list-style: disc;
  padding-left: 20px;
  margin: 0;
}

.pros-box li,
.cons-box li {
  margin-bottom: 8px;
  line-height: 1.6;
  color: var(--text);
}

/* Affiliate section */
.affiliate-section {
  margin: 40px 0 0;
  padding: 24px;
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid var(--border);
}

.affiliate-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--text);
}

/* Related reviews slider */
.related-reviews-wrapper {
  margin: 60px 0 40px;
}

.related-title {
  font-size: 1.75rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 32px;
  color: var(--text);
}

.related-slider {
  position: relative;
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 20px 16px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  scroll-padding-left: 20px;
  -webkit-mask-image: linear-gradient(to right, black 0, black calc(100% - 56px), transparent 100%);
          mask-image: linear-gradient(to right, black 0, black calc(100% - 56px), transparent 100%);
}

.related-slider .review-card {
  flex: 0 0 320px;
  scroll-snap-align: start;
}

/* Responsive */
@media (max-width: 768px) {
  .detail-banner { padding: 40px 0 24px; }
  .detail-content { padding: 24px 20px; }
  .pros-cons-section { grid-template-columns: 1fr; }
  .related-slider {
    padding: 0 16px 16px;
    scroll-padding-left: 16px;
    -webkit-mask-image: linear-gradient(to right, black 0, black calc(100% - 40px), transparent 100%);
            mask-image: linear-gradient(to right, black 0, black calc(100% - 40px), transparent 100%);
  }
  .related-slider .review-card { flex: 0 0 240px; }
  .affiliate-section { padding: 16px; }
}
