/*
 * CumbriaGuru — home.css
 * Homepage-specific styles
 * Requires: global.css
 * Path: /assets/css/home.css
 */

/* ============================================================
   HERO
   ============================================================ */

.hero {
  min-height: calc(100vh - var(--nav-h));
  display:    grid;
  grid-template-columns: 1fr 1fr;
  overflow:   hidden;
}

.hero-text {
  display:         flex;
  flex-direction:  column;
  justify-content: center;
  padding:         5rem 4rem 5rem 5rem;
  background:      var(--bg);
}

.hero-tag {
  display:        block;
  font-size:      0.7rem;
  font-weight:    600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color:          var(--copper);
  margin-bottom:  1.5rem;
  font-family:    var(--sans);
  animation:      fadeUp 0.55s ease 0.1s both;
}

.hero-title {
  font-family:    var(--serif);
  font-size:      clamp(2.6rem, 4.5vw, 4rem);
  font-weight:    700;
  line-height:    1.08;
  color:          var(--ink);
  letter-spacing: -0.025em;
  margin-bottom:  1.25rem;
  animation:      fadeUp 0.55s ease 0.18s both;
}

.hero-title em {
  font-style: italic;
  color:      var(--moss);
}

.hero-sub {
  font-size:    1rem;
  color:        var(--quiet);
  line-height:  1.7;
  max-width:    400px;
  margin-bottom: 2.5rem;
  font-family:  var(--sans);
  font-weight:  300;
  animation:    fadeUp 0.55s ease 0.26s both;
}

.hero-actions {
  display:     flex;
  gap:         1rem;
  align-items: center;
  animation:   fadeUp 0.55s ease 0.34s both;
}

/* Primary button */
.btn-primary {
  background:      var(--ink);
  color:           var(--white);
  padding:         0.85rem 2rem;
  border-radius:   100px;
  font-size:       0.875rem;
  font-weight:     500;
  text-decoration: none;
  font-family:     var(--sans);
  transition:      background 0.18s, transform 0.18s;
  border:          none;
  cursor:          pointer;
  display:         inline-block;
}
.btn-primary:hover { background: var(--moss); transform: translateY(-1px); }

/* Ghost button */
.btn-ghost {
  color:           var(--ink);
  padding:         0.85rem 1.25rem;
  font-size:       0.875rem;
  font-weight:     500;
  text-decoration: none;
  font-family:     var(--sans);
  display:         flex;
  align-items:     center;
  gap:             0.4rem;
  transition:      gap 0.18s;
}
.btn-ghost::after  { content: '→'; }
.btn-ghost:hover   { gap: 0.7rem; }

/* Hero media panel */
.hero-media {
  position:   relative;
  overflow:   hidden;
  background: var(--ink);
  cursor:     pointer;
}

.hero-media-bg {
  width:      100%;
  height:     100%;
  background: linear-gradient(145deg, #3b5240 0%, #2e5f7a 50%, #506a55 100%);
  transition: transform 8s ease;
}
.hero-media:hover .hero-media-bg { transform: scale(1.04); }

.play-btn {
  position:        absolute;
  top:             50%;
  left:            50%;
  transform:       translate(-50%, -50%);
  width:           64px;
  height:          64px;
  background:      rgba(255,255,255,0.12);
  border:          2px solid rgba(255,255,255,0.28);
  border-radius:   50%;
  display:         flex;
  align-items:     center;
  justify-content: center;
  transition:      background 0.2s, transform 0.2s;
}
.hero-media:hover .play-btn { background: rgba(255,255,255,0.22); transform: translate(-50%,-50%) scale(1.08); }
.play-btn svg { margin-left: 3px; }

.hero-video-badge {
  position:       absolute;
  bottom:         2.5rem;
  left:           2rem;
  background:     rgba(10,10,10,0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border:         1px solid rgba(255,255,255,0.12);
  color:          var(--white);
  padding:        1rem 1.3rem;
  border-radius:  12px;
  max-width:      280px;
}

.vb-label {
  font-size:      0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color:          rgba(255,255,255,0.5);
  margin-bottom:  0.35rem;
  font-family:    var(--sans);
}

.vb-title {
  font-family:   var(--serif);
  font-size:     1rem;
  font-weight:   700;
  line-height:   1.3;
  margin-bottom: 0.6rem;
}

.verdict-pill {
  display:        inline-block;
  background:     var(--moss);
  color:          var(--white);
  font-size:      0.68rem;
  font-weight:    500;
  padding:        0.25rem 0.75rem;
  border-radius:  100px;
  letter-spacing: 0.04em;
  font-family:    var(--sans);
}

/* ============================================================
   SHARED SECTION STYLES
   ============================================================ */

.section {
  padding:   5rem 0;
  max-width: 1120px;
  margin:    0 auto;
  padding-left:  5rem;
  padding-right: 5rem;
}

/* Full-bleed background for alt section */
.section-alt-wrap {
  background: #f4f2ee;
  border-top:    1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.section-alt {
  background: transparent;
}

.section-header {
  display:         flex;
  align-items:     baseline;
  justify-content: space-between;
  margin-bottom:   2.5rem;
  gap:             1rem;
}

.section-label {
  display:        block;
  font-size:      0.7rem;
  font-weight:    600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color:          var(--copper);
  margin-bottom:  0.4rem;
  font-family:    var(--sans);
}

.section-title {
  font-family:    var(--serif);
  font-size:      clamp(1.6rem, 3vw, 2.2rem);
  font-weight:    700;
  color:          var(--ink);
  letter-spacing: -0.02em;
  line-height:    1.15;
}

.see-all {
  font-size:       0.8rem;
  font-weight:     500;
  color:           var(--quiet);
  text-decoration: none;
  display:         flex;
  align-items:     center;
  gap:             0.3rem;
  white-space:     nowrap;
  font-family:     var(--sans);
  transition:      color 0.18s, gap 0.18s;
}
.see-all::after  { content: '→'; }
.see-all:hover   { color: var(--ink); gap: 0.55rem; }

/* ============================================================
   TRENDING GRID
   ============================================================ */

.trending-grid {
  display:               grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap:                   1.5rem;
  align-items:           start;
}

.card {
  border-radius:   16px;
  overflow:        hidden;
  background:      var(--white);
  cursor:          pointer;
  text-decoration: none;
  color:           inherit;
  display:         block;
  border:          1px solid var(--rule);
  transition:      transform 0.22s ease, box-shadow 0.22s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(0,0,0,0.1); }

.card-img {
  transition: transform 0.4s ease;
}
.card:hover .card-img { transform: scale(1.03); }

.card-img-placeholder {
  background: linear-gradient(145deg, #3b5240 0%, #506a55 60%, #8aaa8a 100%);
}

.card-body { padding: 1.2rem 1.3rem 1.4rem; }

.card-category {
  font-size:      0.65rem;
  font-weight:    600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color:          var(--copper);
  margin-bottom:  0.35rem;
  font-family:    var(--sans);
}

.card-title {
  font-family:   var(--serif);
  font-size:     1.05rem;
  font-weight:   700;
  color:         var(--ink);
  line-height:   1.25;
  margin-bottom: 0.45rem;
}

.card-verdict {
  font-size:     0.82rem;
  color:         var(--quiet);
  line-height:   1.55;
  margin-bottom: 0.9rem;
  font-family:   var(--sans);
}

.card-footer {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
}

.rating {
  display:     flex;
  align-items: center;
  gap:         0.35rem;
  font-size:   0.78rem;
  font-weight: 500;
  color:       var(--ink);
  font-family: var(--sans);
}

.rating-dot {
  width:         7px;
  height:        7px;
  border-radius: 50%;
  background:    var(--moss);
  flex-shrink:   0;
}

.stat-row {
  display:     flex;
  gap:         0.75rem;
  font-size:   0.72rem;
  color:       var(--quiet);
  font-family: var(--sans);
}

/* ============================================================
   CATEGORIES GRID
   ============================================================ */

.categories-grid {
  display:               grid;
  grid-template-columns: repeat(3, 1fr);
  gap:                   1.5rem;
}

.cat-card {
  border-radius:   16px;
  overflow:        hidden;
  position:        relative;
  cursor:          pointer;
  text-decoration: none;
  display:         block;
  aspect-ratio:    4/3;
  transition:      transform 0.22s ease;
}
.cat-card:hover { transform: translateY(-4px); }

.cat-card-bg {
  width:      100%;
  height:     100%;
  transition: transform 0.5s ease;
}
.cat-card:hover .cat-card-bg { transform: scale(1.06); }

/* Category background gradients */
.cat-bg-food  { background: linear-gradient(135deg, #7a5c3d 0%, #b5642a 60%, #d4956a 100%); }
.cat-bg-stay  { background: linear-gradient(135deg, #3d4a5c 0%, #5a6a7a 60%, #8a9aaa 100%); }
.cat-bg-todo  { background: linear-gradient(135deg, #3b5240 0%, #506a55 60%, #88a07a 100%); }

.cat-overlay {
  position:       absolute;
  inset:          0;
  background:     linear-gradient(to top, rgba(20,20,20,0.75) 0%, rgba(20,20,20,0.15) 55%, transparent 100%);
  pointer-events: none;
}

.cat-count {
  position:        absolute;
  top:             1rem;
  right:           1rem;
  background:      rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border:          1px solid rgba(255,255,255,0.2);
  color:           var(--white);
  font-size:       0.7rem;
  font-weight:     500;
  padding:         0.3rem 0.75rem;
  border-radius:   100px;
  font-family:     var(--sans);
}

.cat-label {
  position: absolute;
  bottom:   1.5rem;
  left:     1.5rem;
  color:    var(--white);
}

.cat-label-tag {
  font-size:      0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity:        0.65;
  margin-bottom:  0.25rem;
  font-family:    var(--sans);
}

.cat-label-title {
  font-family:    var(--serif);
  font-size:      1.35rem;
  font-weight:    700;
  line-height:    1.15;
}

/* ============================================================
   WORTH IT PICKS
   ============================================================ */

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

.worth-card {
  border-radius:   14px;
  overflow:        hidden;
  background:      var(--white);
  border:          1px solid var(--rule);
  cursor:          pointer;
  text-decoration: none;
  color:           inherit;
  display:         block;
  transition:      transform 0.22s ease, box-shadow 0.22s ease;
}
.worth-card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0,0,0,0.09); }

.worth-card-img {
  transition: transform 0.4s ease;
}
.worth-card:hover .worth-card-img { transform: scale(1.04); }

.worth-card-img--placeholder {
  background: linear-gradient(145deg, #3b5240 0%, #506a55 60%, #8aaa8a 100%);
}

.worth-body { padding: 0.9rem 1rem 1.1rem; }

.worth-label {
  font-size:      0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color:          var(--copper);
  margin-bottom:  0.25rem;
  font-weight:    500;
  font-family:    var(--sans);
}

.worth-name {
  font-family:   var(--serif);
  font-size:     0.9rem;
  font-weight:   700;
  color:         var(--ink);
  margin-bottom: 0.3rem;
  line-height:   1.25;
}

.worth-location {
  font-size:   0.75rem;
  color:       var(--quiet);
  font-family: var(--sans);
  display:     flex;
  align-items: center;
  gap:         0.3rem;
}
.worth-location::before {
  content:       '';
  width:         4px;
  height:        4px;
  background:    var(--quiet);
  border-radius: 50%;
  flex-shrink:   0;
}

/* ============================================================
   SUGGEST BAR — override to use global .suggest-bar
   (global.css handles the dark bar, this just fixes padding)
   ============================================================ */

/* ============================================================
   ANIMATIONS
   ============================================================ */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

@media (max-width: 1100px) {
  .section           { padding: 4rem 3rem; }
  .hero-text         { padding: 4rem 3rem; }
}

@media (max-width: 900px) {
  .hero              { grid-template-columns: 1fr; min-height: auto; }
  .hero-media        { height: 55vw; min-height: 280px; }
  .hero-text         { padding: 3rem 2rem; }

  .trending-grid     { grid-template-columns: 1fr; }
  .categories-grid   { grid-template-columns: 1fr 1fr; }
  .worth-grid        { grid-template-columns: 1fr 1fr; }

  .section           { padding: 3rem 2rem; }
}

@media (max-width: 600px) {
  .categories-grid   { grid-template-columns: 1fr; }
  .worth-grid        { grid-template-columns: 1fr; }

  .hero-text         { padding: 2rem 1.25rem; }
  .section           { padding: 2.5rem 1.25rem; }

  .hero-actions      { flex-direction: column; align-items: flex-start; }
}