/* ============================================================
   Giải Trí Hà Nội Hôm Nay — Design System
   ============================================================ */

/* --- Design Tokens --- */
:root {
  /* Hanoi palette */
  --red-deep: #8b1a1a;
  --red-mid: #c0392b;
  --red-light: #e74c3c;
  --red-pale: #fde8e8;
  --red-whisper: #fdf2f2;

  /* Gold & warmth */
  --gold-warm: #d4a017;
  --gold-light: #f5d060;
  --gold-pale: #fef9e7;
  --amber: #e67e22;
  --amber-soft: #fdebd0;

  /* Neutrals */
  --ink: #1a1a2e;
  --ink-soft: #3d3d56;
  --mist: #7a8a9e;
  --cloud: #faf8f5;
  --white: #ffffff;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Sans 3', 'Segoe UI', Tahoma, sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cloud);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--red-light);
  text-decoration: none;
  transition: color 0.25s;
}

a:hover {
  color: var(--red-deep);
}

/* --- Layout --- */
.container {
  width: 90%;
  max-width: 1140px;
  margin: 0 auto;
}

.section {
  padding: var(--space-lg) 0;
}

.section--alt {
  background: var(--gold-pale);
}

.section__header {
  text-align: center;
  margin-bottom: var(--space-md);
}

.section__tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red-mid);
  background: var(--red-pale);
  padding: 0.3em 1em;
  border-radius: 50px;
  margin-bottom: var(--space-xs);
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--red-deep);
  line-height: 1.2;
  margin-bottom: 0.4em;
}

.section__desc {
  max-width: 640px;
  margin: 0 auto;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

/* --- Wave Decorations --- */
.wave-decoration {
  display: block;
  width: 100%;
  height: auto;
  line-height: 0;
}

.wave-decoration--top {
  margin-bottom: -2px;
}

.wave-decoration--bottom {
  margin-top: -2px;
}

.wave-decoration svg {
  width: 100%;
  height: auto;
  display: block;
}

/* --- Hero --- */
.hero {
  position: relative;
  background: linear-gradient(165deg, var(--red-deep) 0%, var(--red-mid) 40%, var(--amber) 100%);
  color: var(--white);
  padding: var(--space-xl) 0 var(--space-lg);
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 80%, rgba(212, 160, 23, 0.2) 0%, transparent 60%);
  pointer-events: none;
}

.hero__eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: var(--space-xs);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 0.3em;
  position: relative;
  z-index: 1;
  animation: fadeUp 1s var(--ease-out) both;
}

.hero__title .highlight {
  color: var(--gold-light);
}

.hero__subtitle {
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  max-width: 600px;
  margin: 0 auto var(--space-md);
  opacity: 0.9;
  line-height: 1.6;
  position: relative;
  z-index: 1;
  animation: fadeUp 1s 0.15s var(--ease-out) both;
}

.hero__cta {
  display: inline-block;
  padding: 0.85em 2.2em;
  font-size: 1rem;
  font-weight: 700;
  color: var(--red-deep);
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: all 0.3s var(--ease-out);
  position: relative;
  z-index: 1;
  animation: fadeUp 1s 0.3s var(--ease-out) both;
  text-decoration: none;
}

.hero__cta:hover {
  background: var(--white);
  color: var(--red-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  margin-top: var(--space-sm);
  padding: 0.5em 1.2em;
  font-size: 0.95rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  backdrop-filter: blur(6px);
  position: relative;
  z-index: 1;
  animation: fadeUp 1s 0.45s var(--ease-out) both;
}

/* --- Overview Cards --- */
.overview__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
}

.overview__card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}

.overview__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.overview__icon {
  font-size: 2.2rem;
  margin-bottom: var(--space-xs);
}

.overview__card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--red-deep);
  margin-bottom: 0.4em;
}

.overview__card p {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* --- Venue Table --- */
.venue-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.venue-table thead {
  background: linear-gradient(135deg, var(--red-deep), var(--red-mid));
  color: var(--white);
}

.venue-table th {
  padding: 1em 1.2em;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: left;
}

.venue-table td {
  padding: 0.9em 1.2em;
  border-bottom: 1px solid #f0ebe3;
  font-size: 0.98rem;
}

.venue-table tbody tr:last-child td {
  border-bottom: none;
}

.venue-table tbody tr:hover {
  background: var(--gold-pale);
}

.badge {
  display: inline-block;
  padding: 0.2em 0.75em;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 700;
}

.badge--hot {
  background: #fde8e8;
  color: #c0392b;
}

.badge--popular {
  background: #fef9e7;
  color: #b7950b;
}

.badge--trending {
  background: #e8f8f5;
  color: #1e8449;
}

.badge--classic {
  background: #eaf2f8;
  color: #2e6da4;
}

/* --- Category Cards --- */
.categories__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-md);
}

.category-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
}

.category-card--food::before {
  background: var(--amber);
}

.category-card--culture::before {
  background: var(--red-mid);
}

.category-card--nightlife::before {
  background: var(--gold-warm);
}

.category-card__icon {
  font-size: 2rem;
  margin-bottom: var(--space-xs);
}

.category-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--red-deep);
  margin-bottom: 0.5em;
}

.category-card p {
  color: var(--ink-soft);
  font-size: 0.98rem;
  margin-bottom: 0.6em;
}

.category-card ul {
  list-style: none;
  padding: 0;
}

.category-card li {
  padding: 0.3em 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.category-card li::before {
  content: '→ ';
  color: var(--red-light);
  font-weight: 700;
}

/* --- Tips --- */
.tips__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-sm);
}

.tip-card {
  display: flex;
  gap: 1em;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.5em;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}

.tip-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
}

.tip-card__number {
  flex-shrink: 0;
  width: 2.4em;
  height: 2.4em;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  background: linear-gradient(135deg, var(--red-mid), var(--amber));
  border-radius: 50%;
}

.tip-card h3 {
  font-size: 1.05rem;
  color: var(--red-deep);
  margin-bottom: 0.25em;
}

.tip-card p {
  color: var(--ink-soft);
  font-size: 0.93rem;
}

/* --- FAQ --- */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-xs);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.faq-item summary {
  padding: 1.2em 1.5em;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--red-deep);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.2s;
}

.faq-item summary:hover {
  background: var(--red-whisper);
}

.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--red-mid);
  transition: transform 0.3s var(--ease-out);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item__body {
  padding: 0 1.5em 1.2em;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.7;
  overflow: hidden;
  transition: max-height 0.35s var(--ease-out), opacity 0.35s;
}

/* --- Footer --- */
.footer {
  background: var(--red-deep);
  color: rgba(255, 255, 255, 0.75);
  padding: var(--space-md) 0;
  text-align: center;
  font-size: 0.92rem;
}

.footer__brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 0.4em;
}

.footer__links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-sm);
}

.footer__links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer__links a:hover {
  color: var(--gold-light);
}

.footer__copy {
  font-size: 0.82rem;
  opacity: 0.6;
}

/* --- Animations --- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal:nth-child(5) { transition-delay: 0.4s; }
.reveal:nth-child(6) { transition-delay: 0.5s; }

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero {
    padding: var(--space-lg) 0 var(--space-md);
  }

  .section {
    padding: var(--space-md) 0;
  }

  .venue-table thead {
    display: none;
  }

  .venue-table,
  .venue-table tbody,
  .venue-table tr,
  .venue-table td {
    display: block;
  }

  .venue-table tr {
    margin-bottom: var(--space-sm);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  }

  .venue-table td {
    padding: 0.6em 1em;
    text-align: right;
    border-bottom: 1px solid #f0ebe3;
    position: relative;
    padding-left: 45%;
  }

  .venue-table td::before {
    content: attr(data-label);
    position: absolute;
    left: 1em;
    font-weight: 700;
    color: var(--red-deep);
    text-align: left;
  }

  .categories__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: clamp(2.2rem, 10vw, 3.5rem);
  }

  .overview__grid {
    grid-template-columns: 1fr;
  }

  .tips__grid {
    grid-template-columns: 1fr;
  }

  .footer__links {
    flex-direction: column;
    align-items: center;
    gap: 0.5em;
  }
}
