@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500&family=Inter:wght@300&display=swap');

/* =========================================================
   RESET
   ========================================================= */
* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  min-height: 100svh;
  overflow-x: hidden;
  overflow-y: auto;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* =========================================================
   BACKGROUND
   ========================================================= */
.bg {
  position: fixed;
  inset: 0;
  background: url("../../assets/backgrounds/home.png") center / cover no-repeat;
  z-index: -1;
}

.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 50% 45%,
    rgba(0,0,0,0.18) 0%,
    rgba(0,0,0,0.35) 55%,
    rgba(0,0,0,0.45) 100%
  );
}

/* =========================================================
   HEADER PILLS (TITLE + INTRO — NEVER OVERLAP)
   ========================================================= */
.header-pills {
  position: absolute;
  top: 4svh;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(10px, 2svh, 18px);
  width: min(920px, calc(100vw - 24px));
  z-index: 2;
}

/* shared pill look */
.title-pill,
.intro-pill {
  max-width: 100%;
  text-align: center;


  border-radius: 999px;
}

/* title */
.title-pill {
  padding: 0.9rem 2.2rem;

  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 6.5vw, 5rem);
  font-weight: 650;
  letter-spacing: 0.02em;
  color: #c9b2ff;
}

/* intro */
.intro-pill {
  padding: 0.75rem 2rem;
  font-size: clamp(0.95rem, 1.15vw, 1.15rem);
  font-weight: 500;
  color: #ffffff;
}

/* =========================================================
   GRID WRAPPER (CENTERS HUB BUTTONS)
   ========================================================= */
.hub-wrap {
  position: absolute;
  left: 50%;
  top: 58%;
  transform: translate(-50%, -50%);

  width: min(800px, 90vw);
  max-height: 52svh;

  display: flex;
  align-items: center;
}

/* =========================================================
   GRID
   ========================================================= */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: clamp(12px, 1.8vw, 22px);

  width: 100%;
  height: 100%;
  min-height: 0;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.hub-btn {
  display: flex;
  align-items: center;
  justify-content: center;

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

  overflow: visible;
  transition: transform 0.18s ease, filter 0.18s ease;
  touch-action: manipulation;
}

.hub-btn img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
}

/* hover / focus */
.hub-btn:hover,
.hub-btn:focus-visible {
  transform: scale(1.04);
  filter: brightness(1.08);
  outline: none;
}

.hub-btn:active {
  transform: scale(1.01);
}

/* =========================================================
   HIDDEN ADMIN HOTSPOT
   ========================================================= */
#admin-hotspot {
  position: absolute;
  top: 6%;
  right: 6%;
  width: 80px;
  height: 80px;
  background: transparent;
  cursor: default;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
  .hub-wrap {
    top: 60%;
    max-height: 56svh;
  }

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

@media (max-width: 540px) {
  .header-pills {
    top: 3.5svh;
    gap: 10px;
  }

  .title-pill {
    padding: 0.75rem 1.25rem;
  }

  .intro-pill {
    padding: 0.65rem 1.1rem;
  }

  .hub-wrap {
    top: 62%;
    width: min(560px, 92vw);
    max-height: 60svh;
  }

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

  .hub-btn {
    aspect-ratio: 4 / 3;
  }
}

/* Extra safety: very short screens (landscape phones) */
@media (max-height: 520px) {
  .header-pills {
    top: 2svh;
  }

  .hub-wrap {
    top: 68%;
    max-height: 62svh;
  }
}
