/* ============================================================
   GIẢI TRÍ PAGE
   ============================================================ */

/* ---- Hero section ---- */

.gt-hero {
  position: relative;
  overflow: hidden;
  padding-block: var(--space-2xl);
  background-color: var(--color-bg);
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
}

/* ---- Floating background shapes ---- */

.gt-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.gt-shape {
  position: absolute;
}

/* Large red sphere */
.gt-shape--sphere {
  top: 8%;
  right: -4%;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(244, 67, 54, 0.6), rgba(183, 28, 28, 0.6));
  will-change: transform;
  animation: gt-float-sphere 6s ease-in-out infinite;
}

/* White cube */
.gt-shape--cube {
  bottom: 12%;
  left: 3%;
  width: 160px;
  height: 160px;
  background: #fff;
  border: 3px solid var(--color-text-primary);
  box-shadow: 14px 14px 0 0 rgba(158, 0, 39, 0.25);
  will-change: transform;
  animation: gt-float-cube 8s ease-in-out infinite 2s;
}

/* Small yellow diamond */
.gt-shape--diamond {
  top: 30%;
  left: 20%;
  width: 44px;
  height: 44px;
  background: #fde047;
  border: 2px solid var(--color-text-primary);
  will-change: transform;
  animation: gt-float-diamond 6s ease-in-out infinite 1s;
}

/* Dashed red ring */
.gt-shape--ring {
  bottom: 20%;
  right: 20%;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 4px dashed var(--color-accent);
  will-change: transform;
  animation: gt-float-ring 7s ease-in-out infinite 2.5s;
}

@keyframes gt-float-sphere {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-24px);
  }
}

@keyframes gt-float-cube {

  0%,
  100% {
    transform: translateY(0px) rotate(12deg);
  }

  50% {
    transform: translateY(-20px) rotate(22deg);
  }
}

@keyframes gt-float-diamond {

  0%,
  100% {
    transform: translateY(0px) rotate(45deg);
  }

  50% {
    transform: translateY(-16px) rotate(55deg);
  }
}

@keyframes gt-float-ring {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-18px);
  }
}

/* ---- Glassmorphism featured card ---- */

.gt-glass-pane {
  position: relative;
  z-index: 10;
  display: block;
  max-width: 840px;
  margin-inline: auto;
  padding: var(--space-xl) var(--space-2xl);
  background: rgba(249, 249, 247, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 8px 32px rgba(158, 0, 39, 0.1);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  margin-bottom: var(--space-lg);
  transition: box-shadow var(--duration-base) var(--ease-out);
}

.gt-glass-pane:hover {
  box-shadow: 0 12px 40px rgba(158, 0, 39, 0.18);
}

/* Sticker tag */
.gt-sticker {
  position: absolute;
  top: -16px;
  right: -8px;
  background: #fde047;
  color: #221b00;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border: 2px solid var(--color-text-primary);
  box-shadow: 3px 3px 0 0 var(--color-text-primary);
  transform: rotate(3deg);
  z-index: 20;
  white-space: nowrap;
}

/* Date */
.gt-date {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

/* Title */
.gt-title {
  font-size: clamp(20px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}

.gt-glass-pane:hover .gt-title {
  color: var(--color-accent);
}

/* Excerpt */
.gt-excerpt {
  font-size: 12px;
  line-height: var(--leading-body);
  color: var(--color-text-secondary);
  border-left: 4px solid var(--color-accent);
  padding-left: var(--space-md);
  margin-bottom: var(--space-lg);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}

/* Author row */
.gt-author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.gt-author__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--color-text-primary);
  background: var(--color-accent);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
}

.gt-author__name {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-primary);
}

.gt-author__role {
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--color-text-secondary);
  margin-top: 2px;
}

/* Views meta */
.gt-meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.gt-meta__views {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--color-text-secondary);
}

/* ---- 3 horizontal cards ---- */

.gt-row-cards {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.gt-row-card {
  display: flex;
  background: rgba(249, 249, 247, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 16px rgba(158, 0, 39, 0.07);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow var(--duration-fast) var(--ease-out),
    transform var(--duration-fast) var(--ease-out);
}

.gt-row-card:hover {
  box-shadow: 0 8px 24px rgba(158, 0, 39, 0.15);
  transform: translateY(-2px);
}

.gt-row-card__img-wrap {
  flex: 0 0 96px;
  overflow: hidden;
}

.gt-row-card__img {
  width: 96px;
  height: 100%;
  min-height: 108px;
  object-fit: cover;
  display: block;
}

.gt-row-card__body {
  flex: 1;
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
}

.gt-row-card__cat {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 4px;
}

.gt-row-card__title {
  font-size: 14px;
  font-weight: 700;
  line-height: var(--leading-heading);
  color: var(--color-text-primary);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  transition: color var(--duration-fast) var(--ease-in-out);
}

.gt-row-card:hover .gt-row-card__title {
  color: var(--color-accent);
}

.gt-row-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-top: auto;
  padding-top: var(--space-sm);
  font-size: 11px;
  color: var(--color-text-secondary);
  letter-spacing: 0.03em;
}

/* ---- Responsive ---- */

@media (max-width: 1023px) {
  .gt-shape--cube {
    width: 120px;
    height: 120px;
  }

  .gt-shape--sphere {
    width: 220px;
    height: 220px;
    right: -8%;
  }
}

@media (max-width: 767px) {
  .gt-row-cards {
    grid-template-columns: 1fr;
  }

  .gt-glass-pane {
    padding: var(--space-lg);
  }

  .gt-title {
    font-size: clamp(18px, 6vw, 28px);
  }

  .gt-shape--cube {
    display: none;
  }

  .gt-shape--sphere {
    width: 160px;
    height: 160px;
    top: 5%;
    right: -5%;
  }
}