/* =========================================================
   guest-guides.css
   Full file
   ========================================================= */

/* ------------------------------
   Theme tokens
------------------------------ */
:root{
  --gg-max: 1180px;

  --gg-bg: #ffffff;
  --gg-surface: #ffffff;
  --gg-surface-2: #f6fbfb;

  --gg-text: #1b1f23;
  --gg-muted: #556268;

  --gg-accent: #2d9391;
  --gg-accent-2: #2baab1;

  --gg-line: rgba(45,147,145,.22);
  --gg-shadow: 0 10px 30px rgba(0,0,0,.08);

  --gg-radius-lg: 22px;
  --gg-radius-md: 16px;
  --gg-radius-sm: 12px;

  /* overwritten by JS */
  --gg-sticky-top: 90px;
  --gg-scroll-offset: 120px;

  --gg-ease: cubic-bezier(.2,.8,.2,1);
}

/* ------------------------------
   Page container helpers
------------------------------ */
body.guides{
  background: var(--gg-bg);
  color: var(--gg-text);
}

main.container{
  max-width: var(--gg-max);
}

/* ------------------------------
   HERO helpers
------------------------------ */
.gg-hero-parallax{
  --gg-hero-y: 10%;
  background-image: var(--gg-hero-bg);
  background-size: cover;
  background-position: center var(--gg-hero-y);
  background-repeat: no-repeat;
  border-radius: 0;
}

.hero-container{
  margin-bottom: 0 !important;
}

/* ------------------------------
   Anchor offset (prevents header overlap)
------------------------------ */
.gg-season{
  scroll-margin-top: var(--gg-scroll-offset);
}

/* ------------------------------
   SEASON NAV (sticky pills)
   - no background bar
   - no borders
   - flush + balanced
   - pills stay rounded
------------------------------ */
.gg-season-nav{
  position: sticky;
  top: 0;
  z-index: 999;

  margin: 6px 0;
  padding: 6px 8px;
  width: 100%;

  background: transparent;
  border: 0;
  box-shadow: none;

  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;

  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}

/* Hide scrollbar but keep functionality */
.gg-season-nav::-webkit-scrollbar{ display:none; }
.gg-season-nav{ scrollbar-width:none; }

/* Remove container panel inside sticky stack */
.sticky-stack .container{
  background: transparent;
  padding-top: 0;
  padding-bottom: 0;
}

/* ------------------------------
   Season pills (KEEP rounded)
------------------------------ */
.gg-nav-pill{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  white-space: nowrap;
  flex: 0 0 auto;

  padding: 8px 12px;
  border-radius: 999px;

  font-weight: 700;
  font-size: 13px;
  letter-spacing: .2px;

  text-decoration: none !important;
  border: 1px solid rgba(45,147,145,.28);
  background: linear-gradient(
    180deg,
    rgba(255,255,255,.95),
    rgba(245,252,252,.92)
  );
  color: #183a3a;

  transition:
    transform .18s var(--gg-ease),
    box-shadow .18s var(--gg-ease),
    border-color .18s var(--gg-ease),
    background .18s var(--gg-ease),
    color .18s var(--gg-ease);

  scroll-snap-align: center;
}

.gg-nav-pill:hover{
  transform: translateY(-1px);
  border-color: rgba(45,147,145,.45);
  box-shadow: 0 10px 18px rgba(45,147,145,.10);
}

/* Keyboard focus */
.gg-nav-pill:focus{ outline: none; }
.gg-nav-pill:focus-visible{
  box-shadow: 0 0 0 3px rgba(45,147,145,.28);
  border-color: rgba(45,147,145,.55);
}


/* ACTIVE (set by JS on scroll) */
.gg-nav-pill.is-active{
  background: linear-gradient(180deg, rgba(45,147,145,.16), rgba(45,147,145,.08));
  border-color: rgba(45,147,145,.75);
  color: #0f2f2f;
  box-shadow: 0 10px 22px rgba(45,147,145,.18);
  transform: translateY(-1px);
}

/* Active indicator */
.gg-nav-pill.is-active::after{
  content:"";
  display:block;
  width: 16px;
  height: 3px;
  border-radius: 999px;
  margin-left: 8px;
  background: rgba(45,147,145,.70);
}

/* Mobile tighten to ensure all 4 fit comfortably (and keep it flush to hero) */
@media (max-width: 480px){
  .gg-season-nav{
    gap: 6px;
    padding: 7px 6px;
    margin: 0 0 14px 0; /* keep flush on mobile too */
  }
  .gg-nav-pill{
    padding: 7px 10px;
    font-size: 12.5px;
  }
}

/* ------------------------------
   Season headings
------------------------------ */
.gg-season-header{
  padding: 18px 0 8px 0;
}

.gg-season-kicker{
  margin: 0 0 8px 0;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 12px;
  color: var(--gg-accent);
}

.gg-season-title{
  margin: 0 0 10px 0;
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 36px;
  line-height: 1.08;
  color: var(--gg-text);
}

.gg-season-subtitle{
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--gg-muted);
  max-width: 78ch;
}

@media (max-width: 768px){
  .gg-season-title{ font-size: 30px; }
}

/* ------------------------------
   Month card (cover)
------------------------------ */
.gg-month-card{
  background: transparent;
  margin: 18px 0 26px 0;
}

.gg-cover{
  position: relative;
  border-radius: var(--gg-radius-lg);
  overflow: hidden;
  min-height: 320px;
  background: #0d1b1b;
  box-shadow: var(--gg-shadow);
  border: 1px solid rgba(0,0,0,.06);

  background-size: cover;
  background-position: center;
}

.gg-cover-overlay{
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1200px 520px at 20% 30%, rgba(0,0,0,.55), rgba(0,0,0,.15) 45%, rgba(0,0,0,.10)),
    linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.18) 55%, rgba(0,0,0,.10) 100%);
  opacity: .92;
}

/* background fade-in hook after lazy load */
.gg-bg-loaded{
  transition: filter .35s var(--gg-ease), transform .35s var(--gg-ease);
}
.gg-bg-loaded:hover{
  transform: scale(1.01);
}

/* content on cover */
.gg-cover-content{
  position: relative;
  z-index: 2;
  padding: 22px 22px 20px 22px;
  max-width: 720px;
  color: #fff;
}

.gg-month-meta{
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

.gg-month-badge{
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(45,147,145,.92);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
}

.gg-read-time{
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.92);
  font-weight: 700;
  font-size: 13px;
}

.gg-month-title{
  margin: 6px 0 8px 0;
  font-size: 34px;
  line-height: 1.08;
  font-family: "Playfair Display", serif;
  font-weight: 700;
  text-shadow: 0 10px 24px rgba(0,0,0,.35);
}

.gg-month-dek{
  margin: 0 0 12px 0;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255,255,255,.92);
}

.gg-chip-row{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 16px 0;
}

.gg-chip{
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.92);
  font-weight: 700;
  font-size: 13px;
}

/* Actions */
.gg-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.gg-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none !important;
  border: 1px solid transparent;
  transition: transform .18s var(--gg-ease),
              box-shadow .18s var(--gg-ease),
              background .18s var(--gg-ease),
              border-color .18s var(--gg-ease);
}

.gg-btn-primary{
  background: rgba(45,147,145,.95);
  color: #fff !important;
  box-shadow: 0 12px 22px rgba(45,147,145,.25);
}

.gg-btn-primary:hover{
  transform: translateY(-1px);
  background: rgba(43,170,177,.96);
}

.gg-btn-ghost{
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.20);
  color: rgba(255,255,255,.95) !important;
}

.gg-btn-ghost:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.18);
}

/* Mobile cover sizing */
@media (max-width: 768px){
  .gg-cover{ min-height: 280px; }
  .gg-cover-content{ padding: 18px 16px; }
  .gg-month-title{ font-size: 28px; }
}

/* ------------------------------
   Highlights (four tiles)
------------------------------ */
.gg-highlights{
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.gg-highlight{
  background: var(--gg-surface);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: var(--gg-radius-md);
  padding: 14px 14px;
  box-shadow: 0 8px 18px rgba(0,0,0,.05);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.gg-highlight-icon{
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(45,147,145,.10);
  border: 1px solid rgba(45,147,145,.20);
  font-size: 18px;
}

.gg-highlight h4{
  margin: 0 0 6px 0;
  font-size: 14px;
  font-weight: 900;
  color: var(--gg-text);
}

.gg-highlight p{
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--gg-muted);
}

@media (max-width: 991px){
  .gg-highlights{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 520px){
  .gg-highlights{ grid-template-columns: 1fr; }
}

/* ------------------------------
   Details (collapsed content)
------------------------------ */
.gg-details{ margin-top: 12px; }

.gg-details-inner{
  background: var(--gg-surface);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: var(--gg-radius-lg);
  padding: 18px;
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
}

.gg-two-col{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.gg-block h4{
  margin: 0 0 8px 0;
  font-weight: 900;
  font-size: 15px;
}

.gg-block p{
  margin: 0;
  color: var(--gg-muted);
  line-height: 1.65;
}

.gg-list{
  margin: 0;
  padding-left: 18px;
  color: var(--gg-muted);
  line-height: 1.65;
}

.gg-callout{
  margin-top: 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border-radius: var(--gg-radius-md);
  background: rgba(45,147,145,.08);
  border: 1px solid rgba(45,147,145,.18);
}

.gg-callout-icon{
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(45,147,145,.12);
  border: 1px solid rgba(45,147,145,.20);
}

.gg-callout h4{
  margin: 0 0 6px 0;
  font-weight: 900;
  font-size: 15px;
}

.gg-callout p{
  margin: 0;
  color: var(--gg-muted);
  line-height: 1.65;
}

.gg-details-actions{
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.gg-back-top{
  margin-left: auto;
  color: var(--gg-accent);
  font-weight: 800;
  text-decoration: none !important;
}

@media (max-width: 991px){
  .gg-two-col{ grid-template-columns: 1fr; }
  .gg-back-top{ margin-left: 0; }
}

/* ------------------------------
   Mini jump tiles row
------------------------------ */
.gg-month-grid{
  margin: 14px 0 6px 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px;
}

.gg-mini{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--gg-radius-md);
  border: 1px solid rgba(0,0,0,.06);
  background: var(--gg-surface);
  box-shadow: 0 8px 18px rgba(0,0,0,.05);
  text-decoration: none !important;
  transition: transform .18s var(--gg-ease),
              box-shadow .18s var(--gg-ease),
              border-color .18s var(--gg-ease);
}

.gg-mini:hover{
  transform: translateY(-1px);
  border-color: rgba(45,147,145,.25);
  box-shadow: 0 14px 26px rgba(0,0,0,.08);
}

.gg-mini-month{
  font-weight: 900;
  color: var(--gg-accent);
}

.gg-mini-title{
  color: var(--gg-muted);
  font-weight: 700;
}

.gg-mini-cta{
  margin-left: auto;
  color: var(--gg-accent);
  font-weight: 900;
}

@media (max-width: 991px){
  .gg-month-grid{ grid-template-columns: 1fr; }
}

/* ------------------------------
   Reveal animation helpers
------------------------------ */
.gg-reveal{
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s var(--gg-ease), transform .55s var(--gg-ease);
  will-change: opacity, transform;
}

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

@media (prefers-reduced-motion: reduce){
  .gg-reveal{
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .gg-bg-loaded,
  .gg-bg-loaded:hover{
    transform: none !important;
    transition: none !important;
  }
}

/* ------------------------------
   Small spacing polish
------------------------------ */
.gg-season + .gg-season{
  margin-top: 34px;
}
