/* ============================================================
   Teman Girls: Events Calendar
   Soft editorial romance: blush paper, deep maroon serif,
   rose & hot-pink accents. Mobile-first.
   ============================================================ */

:root {
  --maroon: #990033;
  --maroon-deep: #6e0025;
  --blush: #f2d4de;
  --blush-soft: #f9e6ec;
  --offwhite: #fff7fa;
  --rose: #cd467c;
  --rose-dark: #b03765;
  --hotpink: #ff66c4;
  --ink: #4a2b36;          /* warm gray-plum body text */
  --ink-soft: #8a6b76;

  --cat-body: #1f7a4d;     /* green, AA on blush/offwhite */
  --cat-mind: #2f5d8f;     /* blue,  AA on blush/offwhite */
  --cat-soul: #b03765;     /* pink,  AA on blush/offwhite */

  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px -12px rgba(153, 0, 51, 0.25);
  --shadow-soft: 0 4px 16px -6px rgba(153, 0, 51, 0.15);

  /* Lato hierarchy: 900 display moments, 700 headers/UI, 400 body, 300 light standfirst, italic accents */
  --font-display: "Lato", "Segoe UI", Arial, sans-serif;
  --font-body: "Lato", "Segoe UI", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--blush);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, var(--offwhite) 0%, transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.55;
}

/* ---------- background blobs ---------- */
.bg-blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}
.bg-blob--1 {
  width: 420px; height: 420px;
  background: var(--hotpink);
  opacity: 0.16;
  top: -140px; right: -120px;
}
.bg-blob--2 {
  width: 380px; height: 380px;
  background: var(--rose);
  opacity: 0.12;
  bottom: -160px; left: -140px;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: clamp(3rem, 8vw, 5.5rem) 1.25rem 1.5rem;
  animation: rise 0.7s ease both;
}
.hero__eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 0.9rem;
}
.spark { color: var(--hotpink); }
.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.2rem, 12vw, 6.5rem);
  line-height: 0.95;
  color: var(--maroon);
  letter-spacing: -0.02em;
}
.hero__title em {
  font-style: italic;
  font-weight: 400;
  color: var(--rose);
}
.hero__tag {
  margin-top: 0.9rem;
  font-size: clamp(0.95rem, 2.6vw, 1.1rem);
  color: var(--ink-soft);
  font-style: italic;
  font-family: var(--font-display);
  font-weight: 400;
}
.hero__wave {
  display: block;
  width: min(220px, 50vw);
  height: 12px;
  margin: 1.4rem auto 0;
  color: var(--hotpink);
  opacity: 0.8;
}

/* logo image (shows when logo.png exists; wordmark hides) */
.hero__logo {
  display: block;
  max-width: min(300px, 70vw);
  max-height: 140px;
  margin: 0 auto 0.6rem;
  object-fit: contain;
}
body.has-logo .hero__title { display: none; }

/* main nav: quiet uppercase text links */
.mainnav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.4rem 1.4rem;
  margin-top: 1.15rem;
}
.mainnav__btn {
  display: inline-flex;
  align-items: center;
  background: none;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  padding: 0.25rem 0;
  color: var(--maroon);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 1.5px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.mainnav__btn:hover { color: var(--rose-dark); border-bottom-color: var(--rose); }
.mainnav__btn.is-active { color: var(--maroon); background: none; border-bottom-color: var(--maroon); }

/* ---------- shell ---------- */
.shell {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.5rem 1rem 4rem;
}

/* ---------- side-by-side panels ---------- */
.panels {
  display: grid;
  gap: 1.4rem;
  align-items: start;
}
@media (min-width: 900px) {
  .panels { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .month { position: sticky; top: 1rem; }
}

/* ---------- controls ---------- */
.controls {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  align-items: center;
  margin: 1.2rem 0 1.6rem;
  animation: rise 0.7s 0.15s ease both;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
}
.chip {
  border: 1.5px solid rgba(153, 0, 51, 0.15);
  background: var(--offwhite);
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
}
.chip:hover { border-color: var(--rose); transform: translateY(-1px); }
.chip.is-active {
  background: var(--maroon);
  border-color: var(--maroon);
  color: #fff;
}

/* host-your-own CTA under the filter chips */
.hostcta {
  display: inline-block;
  background: linear-gradient(135deg, var(--rose), var(--maroon));
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  padding: 0.65rem 1.6rem;
  border-radius: 999px;
  box-shadow: var(--shadow);
  transition: all 0.2s;
}
.hostcta:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -10px rgba(153, 0, 51, 0.4); }

/* ---------- status ---------- */
.status {
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 1rem;
  font-style: italic;
}

/* ---------- month view ---------- */
.month {
  background: var(--offwhite);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(0.9rem, 3vw, 1.8rem);
  animation: rise 0.7s 0.25s ease both;
}
.month__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.month__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.3rem, 4.5vw, 1.9rem);
  color: var(--maroon);
}
.month__nav {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(153, 0, 51, 0.15);
  background: transparent;
  color: var(--maroon);
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s;
}
.month__nav:hover { background: var(--maroon); color: #fff; transform: scale(1.06); }

.month__dow {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  text-align: center;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-bottom: 0.5rem;
  border-bottom: 1.5px dashed rgba(153, 0, 51, 0.15);
  margin-bottom: 0.4rem;
}

.month__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 3px;
}
.day {
  min-height: 64px;
  border-radius: var(--radius-sm);
  padding: 6px 5px 4px;
  font-size: 0.8rem;
  position: relative;
  background: transparent;
  border: 1.5px solid transparent;
  text-align: left;
  font-family: var(--font-body);
  color: var(--ink);
  cursor: default;
  transition: all 0.18s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.day--pad { visibility: hidden; }
.day__num {
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--ink-soft);
  line-height: 1;
}
.day--today {
  border-color: var(--hotpink);
  background: var(--blush-soft);
}
.day--today .day__num { color: var(--maroon); }
.day--has {
  cursor: pointer;
  background: var(--blush-soft);
}
.day--has:hover {
  background: var(--blush);
  border-color: var(--rose);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}
.day--past { opacity: 0.45; }
.day--selected {
  border-color: var(--maroon);
  background: var(--blush);
}
.day--flash { animation: flashring 0.8s ease 2; }

.day__dots { display: flex; gap: 3px; flex-wrap: wrap; }
.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  display: inline-block;
  background: var(--rose);
}

.day__label {
  display: none;
  font-size: 0.63rem;
  line-height: 1.25;
  font-weight: 700;
  color: var(--maroon);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
  min-width: 0;
}
.day__label--more { color: var(--ink-soft); }

@media (min-width: 640px) {
  .day { min-height: 84px; }
  .day__label { display: block; }
  .day__dots { display: none; }
}
@media (max-width: 639px) {
  .day__dots { margin-top: auto; }
}

/* ---------- event card ---------- */
.event {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  background: #fff;
  border: 1.5px solid rgba(153, 0, 51, 0.08);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  margin-bottom: 0.6rem;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
  width: 100%;
  font-family: var(--font-body);
}
.event:hover {
  border-color: var(--rose);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}
.event__main { flex: 1; min-width: 0; }
.event__cat {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rose);
}
.event__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--maroon);
  line-height: 1.25;
  margin: 2px 0 3px;
}
.event__meta {
  font-size: 0.8rem;
  color: var(--ink-soft);
}
.event__arrow {
  align-self: center;
  color: var(--hotpink);
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ---------- list view ---------- */
.list { animation: rise 0.5s ease both; }
.list__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-style: italic;
  font-size: clamp(1.3rem, 4.5vw, 1.9rem);
  color: var(--maroon);
  margin: 0.4rem 0 1rem;
}
.dategroup { margin-bottom: 1.6rem; display: flex; gap: 1rem; scroll-margin-top: 1rem; }
.dategroup--flash .dategroup__badge {
  animation: flashring 0.8s ease 2;
}
.dategroup__badge {
  flex-shrink: 0;
  width: 58px;
  text-align: center;
  background: var(--offwhite);
  border: 1.5px solid rgba(153, 0, 51, 0.12);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.2rem;
  box-shadow: var(--shadow-soft);
  height: fit-content;
  position: sticky;
  top: 12px;
}
.dategroup__day {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--maroon);
  line-height: 1;
}
.dategroup__mon {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rose);
  margin-top: 2px;
}
.dategroup__dow {
  font-size: 0.6rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.dategroup__events { flex: 1; min-width: 0; }

.empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--ink-soft);
}
.empty__flower { font-size: 2.2rem; display: block; margin-bottom: 0.6rem; }
.empty__text { font-family: var(--font-display); font-style: italic; font-size: 1.1rem; }

/* ---------- modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.modal[hidden] { display: none; }
@media (min-width: 640px) {
  .modal { align-items: center; }
}
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(110, 0, 37, 0.35);
  backdrop-filter: blur(4px);
  animation: fade 0.25s ease both;
}
.modal__card {
  position: relative;
  background: var(--offwhite);
  border-radius: var(--radius) var(--radius) 0 0;
  max-width: 480px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 1.6rem 1.5rem 2rem;
  box-shadow: 0 -10px 40px rgba(110, 0, 37, 0.3);
  animation: slideup 0.35s cubic-bezier(0.2, 0.8, 0.3, 1) both;
}
@media (min-width: 640px) {
  .modal__card { border-radius: var(--radius); }
}
.modal__close {
  position: absolute;
  top: 12px; right: 14px;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 0;
  background: var(--blush);
  color: var(--maroon);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.2s;
}
.modal__close:hover { background: var(--maroon); color: #fff; }

.modal__img {
  width: calc(100% + 3rem);
  margin: -1.6rem -1.5rem 1.2rem;
  max-height: 220px;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
}
.modal__cat {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rose);
}
.modal__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.7rem;
  color: var(--maroon);
  line-height: 1.15;
  margin: 6px 0 10px;
}
.modal__row {
  display: flex;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--ink);
  margin-bottom: 5px;
}
.modal__row span:first-child { flex-shrink: 0; }
.modal__desc {
  margin-top: 0.9rem;
  font-size: 0.95rem;
  color: var(--ink);
}
.modal__cta {
  display: inline-block;
  margin-top: 1.3rem;
  background: linear-gradient(135deg, var(--rose), var(--maroon));
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  padding: 0.75rem 1.8rem;
  border-radius: 999px;
  box-shadow: var(--shadow);
  transition: all 0.2s;
}
.modal__cta:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -10px rgba(153,0,51,0.4); }

/* ---------- footer ---------- */
.footer {
  position: relative;
  z-index: 1;
  background: var(--blush-soft);
  color: var(--ink-soft);
  text-align: center;
  padding: 2.2rem 1rem 2.4rem;
  margin-top: 2rem;
  border-radius: var(--radius) var(--radius) 0 0;
}
.footer__logo {
  height: 30px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
}
.footer__note {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  opacity: 0.75;
  margin-top: 0.4rem;
}
.footer__legal {
  font-size: 0.8rem;
  margin-top: 0.9rem;
  opacity: 0.85;
}
.footer__legal a {
  color: var(--maroon);
  text-decoration: none;
  border-bottom: 1px solid rgba(153, 0, 51, 0.3);
}
.footer__legal a:hover { border-bottom-color: var(--maroon);}
.footer__legal span { margin: 0 0.5rem; opacity: 0.6; }

/* ---------- links page ---------- */
.hero--compact { padding-bottom: 1.3rem; border-bottom: 1px solid rgba(153, 0, 51, 0.1); }
.hero__title--sm { font-size: clamp(2.6rem, 9vw, 4.5rem); }
.shell--narrow { max-width: 520px; }

.links {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 0.8rem 0 1rem;
}
.linkbtn {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--offwhite);
  border: 1.5px solid rgba(153, 0, 51, 0.1);
  border-radius: 999px;
  padding: 0.85rem 1.4rem 0.85rem 1rem;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  transition: all 0.22s;
  animation: rise 0.6s ease both;
}
.linkbtn:hover {
  transform: translateY(-3px) scale(1.015);
  border-color: var(--rose);
  box-shadow: var(--shadow);
  background: #fff;
}
.linkbtn__icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose), var(--maroon));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.22s;
}
.linkbtn__icon svg { width: 22px; height: 22px; }
.linkbtn:hover .linkbtn__icon { transform: rotate(-8deg) scale(1.08); }
.linkbtn__text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.linkbtn__label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--maroon);
  line-height: 1.2;
}
.linkbtn__sub {
  font-size: 0.78rem;
  color: var(--ink-soft);
}
.linkbtn__arrow {
  color: var(--hotpink);
  font-size: 1.15rem;
  transition: transform 0.22s;
}
.linkbtn:hover .linkbtn__arrow { transform: translateX(4px); }

/* nav pill (hero link between pages) */
.hero__nav {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.2rem;
  background: var(--offwhite);
  border: 1.5px solid rgba(153, 0, 51, 0.15);
  color: var(--rose);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  transition: all 0.2s;
}
.hero__nav:hover {
  background: var(--maroon);
  border-color: var(--maroon);
  color: #fff;
  transform: translateY(-2px);
}

/* ---------- animations ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fade {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes slideup {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes flashring {
  0%, 100% { box-shadow: none; }
  50% { box-shadow: 0 0 0 4px rgba(255, 102, 196, 0.55); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* compact brand logo in hero (Connect page) */
.hero__brand { display: inline-block; line-height: 0; }
.hero--compact .hero__logo {
  max-width: min(220px, 60vw);
  max-height: 48px;
  margin: 0 auto 0.5rem;
}
