/* =========================================================
   HomeCrowd Deeplink CSS v1.0
   ---------------------------------------------------------
   Scope:
   - Deeplink / invite / fallback pages only
   - Optimised for minimal payload
   - No dependency on Appever structure
   ========================================================= */

/* =========================================================
   FONT
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@300..900&display=swap');

/* =========================================================
   BRAND TOKENS
   ========================================================= */

:root {
  --hc-green: #00984A;
  --hc-green-hover: #007E3D;

  --hc-dark: #0c0a09;          /* stone-950 */
  --hc-dark-soft: #1c1917;     /* stone-900 */
  --hc-dark-muted: #292524;    /* stone-800 */

  --hc-light: #ffffff;
  --hc-muted: #a8a29e;         /* stone-400 */
  --hc-divider: rgba(231, 229, 228, 0.12);
}

/* =========================================================
   BASE
   ========================================================= */

html,
body {
  background-color: var(--hc-dark);
  color: var(--hc-light);
  font-family: 'Rubik', ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue',
    Arial, 'Noto Sans', sans-serif;
}

/* =========================================================
   UTILITY ALIASES (MATCH HTML CLASSES)
   ---------------------------------------------------------
   These mirror the semantic Tailwind-style classes used
   in deeplink.html without requiring a Tailwind rebuild
   ========================================================= */

.bg-hc-dark {
  background-color: var(--hc-dark) !important;
}

.bg-hc-darkSoft {
  background-color: var(--hc-dark-soft) !important;
}

.bg-hc-darkMuted {
  background-color: var(--hc-dark-muted) !important;
}

.text-hc-light {
  color: var(--hc-light) !important;
}

.text-hc-muted {
  color: var(--hc-muted) !important;
}

.border-hc-divider {
  border-color: var(--hc-divider) !important;
}

.bg-hc-green {
  background-color: var(--hc-green) !important;
}

.hover\:bg-hc-greenHover:hover {
  background-color: var(--hc-green-hover) !important;
}

/* =========================================================
   CARD SURFACE
   ========================================================= */

.shadow-lg {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45) !important;
}

/* =========================================================
   LINKS & BUTTONS
   ========================================================= */

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 2px solid var(--hc-green);
  outline-offset: 2px;
}

/* Stage 6A browser destination fallback. */
.hc-deeplink { min-height: 100vh; margin: 0; display: flex; flex-direction: column; }
.hc-header, .hc-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem clamp(1.25rem, 5vw, 5rem); }
.hc-header { border-bottom: 1px solid var(--hc-divider); }
.hc-header img { display: block; max-width: 100%; height: auto; }
.hc-header nav a, .hc-footer a, .hc-store-links a { color: #86efac; text-decoration: underline; text-underline-offset: 3px; }
.hc-main { flex: 1; display: grid; place-items: center; padding: clamp(2rem, 7vw, 6rem) 1.25rem; background: radial-gradient(circle at 78% 18%, rgba(0, 152, 74, .15), transparent 38%), var(--hc-dark-soft); }
.hc-card { box-sizing: border-box; width: min(100%, 44rem); padding: clamp(1.5rem, 5vw, 3.5rem); border: 1px solid var(--hc-divider); border-radius: 1.5rem; background: var(--hc-dark-muted); box-shadow: 0 20px 50px rgba(0, 0, 0, .2); }
.hc-eyebrow { margin: 0 0 1rem; color: #86efac; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; }
.hc-card h1 { margin: 0; font-size: clamp(2rem, 6vw, 3.4rem); line-height: 1.1; overflow-wrap: anywhere; }
.hc-pairing { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 1rem; align-items: center; margin-top: 1.5rem; }
.hc-pairing div { display: grid; gap: .35rem; min-width: 0; }
.hc-pairing div:last-child { text-align: right; }
.hc-pairing span:not(.hc-pairing-versus) { color: #a8a29e; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.hc-pairing strong { overflow-wrap: anywhere; font-size: clamp(1rem, 3vw, 1.35rem); }
.hc-pairing-versus { color: #86efac; font-weight: 700; }
.hc-description { color: #e7e5e4; line-height: 1.7; font-size: 1.08rem; }
.hc-facts { display: flex; flex-wrap: wrap; gap: .6rem; padding: 0; margin: 1.5rem 0; list-style: none; }
.hc-facts[hidden] { display: none; }
.hc-facts li { border: 1px solid var(--hc-divider); border-radius: 999px; padding: .55rem .85rem; color: #e7e5e4; font-size: .9rem; }
.hc-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hc-button { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; min-height: 3.25rem; padding: .75rem 1.35rem; border-radius: 999px; font-weight: 700; text-align: center; }
.hc-button-primary { background: #007e3d; color: white; }
.hc-button-primary:hover { background: #006b34; }
.hc-button-secondary { border: 1px solid #a8a29e; color: white; }
.hc-button-secondary:hover { border-color: white; }
.hc-store-links { margin: 1.5rem 0 0; color: #d6d3d1; line-height: 1.6; font-size: .9rem; }
.hc-footer { color: #d6d3d1; border-top: 1px solid var(--hc-divider); font-size: .85rem; }
@media (max-width: 480px) {
  .hc-header nav a { font-size: .83rem; }
  .hc-actions { flex-direction: column; }
  .hc-button { width: 100%; }
  .hc-footer { flex-direction: column; align-items: flex-start; }
}

/* Mirror the shared footer's Tailwind layout without loading Tailwind on deep-link pages. */
.hc-deeplink .hc-site-footer {
  box-sizing: border-box;
  padding-block: 2rem;
  background: var(--hc-dark);
  color: #d6d3d1;
}
.hc-deeplink .hc-site-footer .container {
  box-sizing: border-box;
  width: 100%;
  margin-inline: auto;
  padding-inline: 1rem;
}
.hc-deeplink .hc-site-footer-grid { display: grid; align-items: center; }
.hc-deeplink .hc-site-footer-identity > div {
  box-sizing: border-box;
  padding-inline: 1rem;
  text-align: center;
  color: #d6d3d1;
}
.hc-deeplink .hc-site-footer-identity p { margin: 0; }
.hc-deeplink .hc-site-footer-identity .mt-1 { margin-top: .25rem; }
.hc-deeplink .hc-site-footer .policy-footer-copy {
  font-size: clamp(11px, 2.75vw, 13px);
  line-height: 1.45;
  white-space: nowrap;
}
.hc-deeplink .hc-site-footer-social ul {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}
.hc-deeplink .hc-site-footer-social a {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid oklch(37.3% 0.034 259.733);
  border-radius: .5rem;
  color: #d6d3d1;
  transition: background-color .2s, border-color .2s, color .2s, translate .2s;
}
.hc-deeplink .hc-site-footer-social a:hover {
  color: white;
  background: var(--hc-green);
  border-color: var(--hc-green);
  translate: 0 -1px;
}
.hc-deeplink .hc-site-footer-social a:focus-visible {
  color: white;
  background: var(--hc-green);
  border-color: var(--hc-green);
  outline: 2px solid white;
  outline-offset: 4px;
}
.hc-deeplink .hc-site-footer-social svg { width: 1rem; height: 1rem; }
@media (min-width: 540px) { .hc-deeplink .hc-site-footer .container { max-width: 540px; } }
@media (min-width: 640px) { .hc-deeplink .hc-site-footer .container { max-width: 640px; } }
@media (min-width: 720px) {
  .hc-deeplink .hc-site-footer .container { max-width: 720px; }
  .hc-deeplink .hc-site-footer-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .hc-deeplink .hc-site-footer-identity { grid-column: span 8; }
  .hc-deeplink .hc-site-footer-identity > div { text-align: left; }
  .hc-deeplink .hc-site-footer-social { grid-column: span 4; }
  .hc-deeplink .hc-site-footer-social ul { justify-content: flex-end; margin-top: 0; }
}
@media (min-width: 960px) { .hc-deeplink .hc-site-footer .container { max-width: 960px; } }
@media (min-width: 992px) { .hc-deeplink .hc-site-footer .container { max-width: 992px; } }
@media (min-width: 1140px) { .hc-deeplink .hc-site-footer .container { max-width: 1140px; } }

.hc-header nav { display: flex; align-items: center; gap: 1rem; }
.hc-language-toggle { background: transparent; border: 1px solid #64748b; border-radius: .4rem; color: white; cursor: pointer; padding: .3rem .5rem; font: inherit; }
.hc-language-toggle:focus-visible { outline: 2px solid #86efac; outline-offset: 2px; }

/* Registered evergreen Match destination. Keep shared fallback styles above intact. */
.hc-match-main {
  flex: 1;
  padding: 2.25rem 1.25rem 4rem;
  background: radial-gradient(circle at 80% 0, rgba(0, 152, 74, .11), transparent 31rem), var(--hc-dark);
}
.hc-match {
  box-sizing: border-box;
  width: min(100%, 48rem);
  margin-inline: auto;
  min-width: 0;
}
.hc-match-heading { margin-bottom: 1.75rem; }
.hc-breadcrumb { display: flex; gap: .55rem; margin-bottom: 1.5rem; color: #b9c0ba; font-size: .84rem; }
.hc-breadcrumb a:hover, .hc-match-about a:hover { color: #86efac; text-decoration: underline; }
.hc-match-about ul { margin: .8rem 0 0; padding-left: 1.3rem; color: #c8cdc8; line-height: 1.8; }
.hc-match-heading .hc-eyebrow { margin-bottom: .65rem; color: #70e5a3; }
.hc-match h1 {
  margin: 0;
  max-width: 18ch;
  font-size: clamp(2.3rem, 10vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -.045em;
  overflow-wrap: anywhere;
}
.hc-match-event {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding: .35rem 1.25rem;
  border: 1px solid rgba(134, 239, 172, .19);
  border-radius: 1.35rem;
  background: linear-gradient(145deg, #252723, #181b19 72%);
  box-shadow: 0 20px 42px rgba(0, 0, 0, .18);
}
.hc-match-event-cell {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  min-width: 0;
  padding: .95rem 0;
  overflow-wrap: anywhere;
}
.hc-match-event-cell + .hc-match-event-cell { border-top: 1px solid var(--hc-divider); }
.hc-match-event-label {
  margin-bottom: .15rem;
  color: #70e5a3;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.hc-match-event-cell strong { font-size: 1rem; font-weight: 650; line-height: 1.35; }
.hc-match-event-cell span:not(.hc-match-event-label), .hc-match-event-cell time span {
  color: #b9c0ba;
  font-size: .88rem;
  line-height: 1.35;
}
.hc-match-event-cell time { display: flex; flex-direction: column; gap: .3rem; }
.hc-match-teams { display: grid; gap: .7rem; margin-top: 1rem; }
.hc-team-card {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .85rem;
  min-width: 0;
  min-height: 5.25rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--hc-divider);
  border-radius: 1.15rem;
  background: linear-gradient(130deg, #292d29, #1c211e);
  transition: border-color .2s, background-color .2s, transform .2s;
}
.hc-team-card:hover { border-color: rgba(134, 239, 172, .55); transform: translateY(-2px); }
.hc-team-card-copy { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.hc-team-card-copy strong { font-size: 1.08rem; line-height: 1.25; overflow-wrap: anywhere; }
.hc-team-card-copy > span { color: #b9c0ba; font-size: .82rem; }
.hc-chevron { flex: none; color: #70e5a3; font-size: 1.8rem; line-height: 1; }
.hc-match-about { margin-top: 2rem; }
.hc-match h2 { margin: 0; font-size: clamp(1.35rem, 5vw, 1.7rem); line-height: 1.22; letter-spacing: -.025em; overflow-wrap: anywhere; }
.hc-match-about p { margin: .75rem 0 0; max-width: 65ch; color: #c8cdc8; font-size: .98rem; line-height: 1.6; overflow-wrap: anywhere; }
.hc-match-actions { display: grid; gap: .7rem; margin-top: 2rem; }
.hc-match-actions .hc-button { width: 100%; min-height: 3.55rem; border-radius: .9rem; font-size: 1rem; }
.hc-match-actions .hc-button-primary { background: var(--hc-green); color: white; box-shadow: 0 10px 26px rgba(0, 152, 74, .18); }
.hc-match-actions .hc-button-primary:hover { background: var(--hc-green-hover); }
.hc-match-actions .hc-button-secondary { border-color: rgba(255, 255, 255, .34); background: rgba(255, 255, 255, .025); }
.hc-match-actions .hc-store-links { margin: .3rem 0 0; text-align: center; color: #b9c0ba; font-size: .83rem; }
.hc-match-actions .hc-store-links span { margin-inline: .2rem; color: #747e76; }
@media (min-width: 620px) {
  .hc-match-main { padding-top: 3.5rem; }
  .hc-match-teams { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hc-match-actions { width: min(100%, 25rem); }
  .hc-match-actions .hc-store-links { white-space: nowrap; }
}
@media (min-width: 720px) {
  .hc-match-event { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 1rem .4rem; }
  .hc-match-event-cell { padding: .45rem 1rem; }
  .hc-match-event-cell + .hc-match-event-cell { border-top: 0; border-left: 1px solid var(--hc-divider); }
}
