/* ============================================================
   VoyaBear Homepage Redesign
   Magazine-style layout matching the V0 reference design
   ============================================================ */

/* ── Hero Post ────────────────────────────────────────────── */

.hero-post-wrap {
  margin-top: 1.5rem;
  margin-bottom: 0;
}

.hero-post {
  position: relative;
  min-height: 560px;
  background-size: cover;
  background-position: center;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.hero-post-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.88) 0%,
    rgba(0, 0, 0, 0.45) 45%,
    rgba(0, 0, 0, 0.1) 100%
  );
  border-radius: inherit;
}

.hero-post-body {
  position: relative;
  z-index: 2;
  padding: 2.5rem 2.5rem 2.75rem;
  color: white;
  width: 100%;
  max-width: 750px;
}

.hero-tag-wrap {
  margin-bottom: 0.85rem;
}

/* Hero title */
.hero-post-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: white;
  line-height: 1.1;
  margin-bottom: 0.65rem;
  letter-spacing: -0.5px;
}

.hero-post-excerpt {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1rem;
  line-height: 1.55;
  margin-bottom: 1.4rem;
  max-width: 560px;
}

.hero-post-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-meta-date,
.hero-meta-dot,
.hero-meta-time {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.85rem;
}

.hero-read-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: white !important;
  border: 1px solid rgba(255, 255, 255, 0.32);
  padding: 0.45rem 1.15rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.2s ease;
  text-decoration: none;
}

.hero-read-btn:hover {
  background: rgba(255, 255, 255, 0.24);
  color: white !important;
  transform: translateX(3px);
}

/* ── Card tag badge (overlaid on images) ─────────────────── */

.card-tag-badge {
  position: absolute;
  bottom: 0.65rem;
  left: 0.65rem;
  z-index: 3;
}

/* Base card tag styles — solid bg for image overlay readability */
.card-tag {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.22rem 0.55rem;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: white;
  background-color: var(--primary-color);
  line-height: 1.4;
}

/* Tag-specific solid colors for badges on images */
.card-tag.tag-adventure         { background-color: #fb5607; }
.card-tag.tag-food-and-wine     { background-color: #7b3fa0; }
.card-tag.tag-budget-savvy      { background-color: #27ae60; }
.card-tag.tag-digital-nomad     { background-color: #0ea5c9; }
.card-tag.tag-romantic          { background-color: #d64d8a; }
.card-tag.tag-destinations      { background-color: #0d9488; }
.card-tag.tag-city-guide        { background-color: #1d7eb8; }
.card-tag.tag-solo-travel       { background-color: #e55555; }
.card-tag.tag-backpacking       { background-color: #059669; }
.card-tag.tag-luxury            { background-color: #b8860b; }
.card-tag.tag-hidden-gems       { background-color: #c2185b; }
.card-tag.tag-road-trips        { background-color: #e07b00; }
.card-tag.tag-beaches           { background-color: #0077b6; }
.card-tag.tag-mountains         { background-color: #4a9070; }
.card-tag.tag-eco-travel        { background-color: #2b9348; }

/* ── Tag Filter Section ───────────────────────────────────── */

/* Override old hero to avoid conflicting section */
.hero-section {
  display: none;
}

.tag-filter-section {
  margin: 1.75rem 0 1.5rem;
  text-align: left;
}

/* Hide the old title */
.filter-title {
  display: none;
}

.tag-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-start;
}

.tag-filter {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.38rem 1rem;
  border-radius: 20px;
  border: 1.5px solid var(--mid-gray);
  color: var(--foreground) !important;
  background: transparent !important;
  transition: all 0.2s ease;
  letter-spacing: 0.2px;
  box-shadow: none;
}

.tag-filter:hover {
  border-color: var(--primary-color);
  color: var(--primary-color) !important;
  transform: none;
  box-shadow: none;
}

.tag-filter-all {
  background: var(--primary-color) !important;
  color: white !important;
  border-color: var(--primary-color) !important;
}

.tag-filter-all:hover {
  background: var(--primary-dark) !important;
  color: white !important;
  border-color: var(--primary-dark) !important;
}

/* ── Curated tag filter colors ───────────────────────────── */

.tf-beaches        { border-color: #0077b6 !important; color: #0077b6 !important; }
.tf-beaches:hover  { background: #0077b6 !important; color: white !important; }

.tf-adventure        { border-color: #fb5607 !important; color: #fb5607 !important; }
.tf-adventure:hover  { background: #fb5607 !important; color: white !important; }

.tf-food-and-wine        { border-color: #7b3fa0 !important; color: #7b3fa0 !important; }
.tf-food-and-wine:hover  { background: #7b3fa0 !important; color: white !important; }

.tf-romantic        { border-color: #d64d8a !important; color: #d64d8a !important; }
.tf-romantic:hover  { background: #d64d8a !important; color: white !important; }

.tf-city-guide        { border-color: #1d7eb8 !important; color: #1d7eb8 !important; }
.tf-city-guide:hover  { background: #1d7eb8 !important; color: white !important; }

.tf-hidden-gems        { border-color: #c2185b !important; color: #c2185b !important; }
.tf-hidden-gems:hover  { background: #c2185b !important; color: white !important; }

.tf-budget        { border-color: #27ae60 !important; color: #27ae60 !important; }
.tf-budget:hover  { background: #27ae60 !important; color: white !important; }

.tf-luxury        { border-color: #b8860b !important; color: #b8860b !important; }
.tf-luxury:hover  { background: #b8860b !important; color: white !important; }

/* ── Featured Grid — 2 columns ───────────────────────────── */

.featured-grid {
  grid-template-columns: repeat(2, 1fr);
}

/* ── Post Cards — cleaner, no top accent bar ─────────────── */

/* Remove top colored accent */
.post-card-inner::before {
  display: none !important;
}

.post-card-inner {
  border: 1px solid var(--mid-gray);
  box-shadow: var(--shadow-sm);
  border-radius: 12px;
}

.post-card-inner:hover {
  box-shadow: var(--shadow-md);
}

.post-card:hover .post-card-inner {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

/* image-link is the relative parent for the badge */
.post-card-image-link {
  position: relative;
}

.featured-post-image {
  position: relative;
}

/* ── Read time value — colored bold text ─────────────────── */

.post-reading-time-val {
  font-size: 0.8rem;
  font-weight: 700;
  color: #22a45d;
}

.dark-mode .post-reading-time-val {
  color: #4ade80;
}

/* ── Section titles — consistent with reference ──────────── */

.section-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  padding-left: 0;
}

.section-title::before,
.section-title::after {
  display: none;
}

/* ── City Guides Section ──────────────────────────────────── */

.city-guides-section {
  background-color: var(--light-gray);
  padding: 3rem 0 3.5rem;
  margin-top: 2.5rem;
}

.dark-mode .city-guides-section {
  background-color: var(--light-gray);
}

.city-guides-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.city-guides-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--primary-color);
  background: rgba(157, 78, 221, 0.1);
  padding: 0.22rem 0.65rem;
  border-radius: 20px;
  margin-bottom: 0.5rem;
}

.city-guides-label::before {
  content: "🌐";
  font-size: 0.8em;
}

.city-guides-title {
  font-size: 2rem;
  font-weight: 800;
  margin: 0.25rem 0 0.4rem;
  line-height: 1.15;
}

.city-guides-desc {
  color: var(--dark-gray);
  font-size: 0.92rem;
  margin: 0;
}

.city-guides-view-all {
  font-weight: 600;
  color: var(--foreground);
  font-size: 0.9rem;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
  transition: color 0.2s ease;
}

.city-guides-view-all:hover {
  color: var(--primary-color);
}

.city-guides-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.city-guide-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  display: block;
  text-decoration: none;
  background-color: var(--mid-gray);
}

.city-guide-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.city-guide-card:hover .city-guide-image {
  transform: scale(1.06);
}

.city-guide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0) 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
}

.city-guide-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: white;
  margin: 0 0 0.15rem;
  line-height: 1.2;
}

.city-guide-country {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
}

/* ── Responsive adjustments ──────────────────────────────── */

@media (max-width: 1024px) {
  .city-guides-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-post {
    min-height: 440px;
  }

  .hero-post-body {
    padding: 1.75rem 1.5rem 2rem;
  }

  .hero-post-title {
    font-size: 1.7rem;
  }

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

  .city-guides-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .city-guides-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .city-guides-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-post {
    min-height: 300px;
  }
}
