﻿/* =========================
   HAPPENINGS PAGE (FULL)
========================= */

.hpage{
  padding-top: 0; /* header already handled globally */
}

/* Header area */
.hpage-hero{
  padding: 48px 0 18px;
  background: #fff;
}

.hpage-title{
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 400;
  text-align: center;
  margin: 0 0 8px;
  color: #111;
}

.hpage-subtitle{
  text-align: center;
  margin: 0 auto 18px;
  max-width: 720px;
  color: #666;
  font-size: 13px;
}

/* Filter tabs (pill-like) */
.hpage-filters{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:18px;
 justify-content: center;  
}

.hfilter{
  display:inline-flex;
  align-items:center;
  gap:8px;
  border:1px solid rgba(0,0,0,.12);
  background:#fff;
  color:#111;
  border-radius:999px;
  padding:10px 12px;
  cursor:pointer;
  transition:background .2s ease, border-color .2s ease, transform .2s ease, color .2s ease;
}

.hfilter .material-symbols-outlined{ font-size:18px; line-height:1; }
.hfilter .hfilter-pill{
  font-weight:900;
  letter-spacing:.06em;
  text-transform:uppercase;
  font-size:12px;
}


.hfilter.is-active{
  background: #111;
  color: #fff;
}

.hfilter:focus-visible{
  outline: 3px solid rgba(0,0,0,.15);
  outline-offset: 3px;
}

/* Jump row */
.hpage-jump{
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  border-top: 1px solid #eee;
  padding-top: 12px;
  margin-top: 12px;
  color: #777;
  font-size: 12px;
}

.hpage-jump__label{
  margin-right: 6px;
}

.hjump{
  border: 0;
  background: transparent;
  color: #666;
  cursor: pointer;
  font-size: 12px;
  padding: 6px 4px;
}

.hjump:hover{
  color: #111;
  text-decoration: underline;
}

/* Feed container */
.hfeed-wrap{
  padding: 18px 0 80px;
  background: #fff;
}

.hfeed-container{
  position: relative;
}

/* Horizontal month slider */
.hfeed{
  display: flex;
  gap: 54px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 18px 6px 26px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;  
  scrollbar-color: #ccc transparent;
}

/* hide scrollbar */
.hfeed::-webkit-scrollbar{ height: 10px; }
.hfeed::-webkit-scrollbar-track{ background: transparent; }
.hfeed::-webkit-scrollbar-thumb{
  background: rgba(0,0,0,.12);
  border-radius: 999px;
}
.hfeed:hover::-webkit-scrollbar-thumb{
  background: rgba(0,0,0,.22);
}

/* Month group */
.hmonth{
  display: flex;
  gap: 22px;
  align-items: stretch;
  scroll-snap-align: start;
  min-width: max-content;
}

.hmonth-label{
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 62px;
  color: #cfcfcf;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;

  writing-mode: vertical-rl;
  transform: rotate(180deg);
  user-select: none;
}

.hmonth-label span{
  font-size: 44px;
  line-height: 0.9;
}

/* Cards row inside month */
.hmonth-cards{
  display: flex;
  gap: 22px;
  align-items: stretch;
}

/* IMPORTANT:
   Here we override the "highlights" rule that makes cards 1/3 width,
   because in full page we want fixed card width like the mock */
.hfeed .event-card{
  flex: 0 0 340px;
  width: 340px;
  min-height: 330px;
}

/* Arrows */
.hfeed-arrow{
  position: absolute;
  top: 55%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.10);
  background: #fff;
  box-shadow: 0 10px 20px rgba(0,0,0,.08);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 5;
}

.hfeed-arrow .material-symbols-outlined{
  font-size: 22px;
  line-height: 1;
  color: #b00000;
}

.hfeed-arrow--left{ left: -14px; }
.hfeed-arrow--right{ right: -14px; }

.hfeed-arrow.is-disabled{
  opacity: .35;
  pointer-events: none;
}

/* Floating red next button (like mock) */
.hfloat-next{
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 0;
  background: #d3181d;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 20px 40px rgba(211,24,29,.22);
  cursor: pointer;
  z-index: 6;
}

.hfloat-next .material-symbols-outlined{
  font-size: 22px;
  line-height: 1;
}

/* RESPONSIVE */
@media (max-width: 980px){
  .hpage-jump{ justify-content: center; flex-wrap: wrap; }
  .hfeed-arrow{ display: none; }      /* swipe + wheel */
  .hfloat-next{ display: none; }      /* keep clean on smaller screens */
}

@media (max-width: 767px){
  .hpage-title{ font-size: 34px; }

  /* Switch to vertical feed like your old mock :contentReference[oaicite:5]{index=5} */
  .hfeed{
    flex-direction: column;
    overflow-x: hidden;
    gap: 34px;
    padding: 10px 0 0;
  }

  .hmonth{
    flex-direction: column;
    min-width: 100%;
    gap: 14px;
  }

  .hmonth-label{
    writing-mode: horizontal-tb;
    transform: none;
    min-width: auto;
    justify-content: flex-start;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
  }

  .hmonth-label span{
    font-size: 34px;
    color: #d7d7d7;
  }

  .hmonth-cards{
    flex-direction: column;
    gap: 16px;
  }

  .hfeed .event-card{
    width: 100%;
    flex: 1 1 auto;
  }
}
/* =========================
   PATCH: make .event-card look like the homepage card
   Scoped to Happenings page only (inside .hfeed)
========================= */

/* kill default link look */
.hfeed a.event-card{
  display: block;
  text-decoration: none;
  color: inherit;
}

/* card shell */
.hfeed .event-card{
  position: relative;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(0,0,0,.08);
  border: 1px solid rgba(0,0,0,.06);
  transition: transform .18s ease, box-shadow .18s ease;
}
.hfeed .event-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0,0,0,.12);
}

/* top image area (IMPORTANT: gives height even if image missing) */
.hfeed .event-thumb{
  position: relative;
  height: 160px;
  background: #f4f4f4;
  background-size: cover;
  background-position: center;
}

/* date pills */
.hfeed .date-group{
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hfeed .date-pill{
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 10px;
  padding: 8px 10px;
  line-height: 1;
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  text-align:center;
}
.hfeed .date-pill b{
  font-size: 14px;
  color: #111;
}
.hfeed .date-pill span{
  font-size: 11px;
  color: #555;
}
.hfeed .date-dash{
  color: rgba(0,0,0,.95);
  text-shadow: 0 1px 6px rgba(0,0,0,.22);
  font-weight: 900;
}

/* category icon badge (top-right like mock) */
.hfeed .event-cat{
  position: absolute;
  top: 0;
  right: 25px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #fff;
  z-index: 2;
}

/* category colors */
.hfeed .event-cat[data-cat="events"]{ background:#d3181d; }      /* red */
.hfeed .event-cat[data-cat="games"]{ background:#111; }          /* black */
.hfeed .event-cat[data-cat="campaigns"]{ background:#39b54a; }   /* green */
.hfeed .event-cat[data-cat="broadcasts"]{ background:#0b63ce; }  /* blue */

.hfeed .event-cat .material-symbols-outlined{
  font-size: 20px;
  line-height: 1;
}

/* content area */
.hfeed .event-body{
  padding: 16px 18px 18px;
}
.hfeed .event-title{
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 900;
  color: #111;
}
.hfeed .event-summary{
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.45;
  color: #555;
}
.hfeed .meta{
  font-size: 12px;
  color: #777;
}

/* clamp helpers (in case your global clamp classes not loaded) */
.clamp-2{
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.clamp-3{
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

/* category color variables */
:root{
  --cat-all:#111;
  --cat-events:#DA2128;
  --cat-games:#FCAF17;
  --cat-campaigns:#4EB857;
  --cat-broadcasts:#1268B3;
}

/* helper: set --cat for each tab */
.hfilter[data-filter="all"]{ --cat: var(--cat-all); }
.hfilter[data-filter="events"]{ --cat: var(--cat-events); }
.hfilter[data-filter="games"]{ --cat: var(--cat-games); }
.hfilter[data-filter="campaigns"]{ --cat: var(--cat-campaigns); }
.hfilter[data-filter="broadcasts"]{ --cat: var(--cat-broadcasts); }

/* hover: tinted bg + colored border/text */
.hfilter:hover{
  border-color: var(--cat);
  background: color-mix(in srgb, var(--cat) 10%, #fff);
  color: var(--cat);
  transform: translateY(-1px);
}

/* selected */
.hfilter.is-active{
  background: var(--cat);
  border-color: var(--cat);
  color:#fff;
}

/* ensure icon turns white on active */
.hfilter.is-active .material-symbols-outlined{
  color:#fff;
}

.hfilter-select {
  width: 100%;
  margin-top: 10px;
  padding: 12px 44px 12px 14px; /* ðŸ‘ˆ extra space on right */
  border: 1px solid rgba(0,0,0,.14);
  background-color: #fff;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 12px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%23333' height='18' viewBox='0 0 24 24' width='18' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center; /* ðŸ‘ˆ move arrow */
  background-size: 16px;
}