/**
 * @file shittag-layout.v124.css
 * @description Centralized, single-source stylesheet for the ShitTag header,
 * graphic wordmark with the white BETA sub-label underneath "tag",
 * global footer, and floating quick dock across all pages.
 */

/* ==========================================================================
   1. CENTRALIZED BRAND WORDMARK & WHITE "BETA" SUB-LABEL UNDER "TAG"
   ========================================================================== */
.brand,
.brand-link,
.st-home-brand-logo {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.65rem !important;
  text-decoration: none !important;
}

.brand .brand-plunger,
.brand-link .brand-logo,
.st-home-brand-icon {
  height: 32px !important;
  width: 32px !important;
  border-radius: 8px !important;
  border: 1px solid rgba(204, 255, 0, 0.28) !important;
  object-fit: cover !important;
  flex-shrink: 0 !important;
}

.brand .brand-wordmark-text,
.st-brand-wordmark,
.brand-link .brand-text,
.brand-cluster .brand-wordmark-text,
.footer-col-brand .brand-wordmark-text,
.footer-col .brand-wordmark-text {
  position: relative !important;
  display: inline-block !important;
  width: 112px !important;
  height: 25px !important;
  background: url("/brand/shit-wordmark.png?v=4") no-repeat left center / contain !important;
  color: transparent !important;
  text-shadow: none !important;
  font-size: 0 !important;
  line-height: 1 !important;
  vertical-align: middle !important;
  user-select: none !important;
  overflow: visible !important;
  margin-bottom: 5px !important;
}

.brand .brand-wordmark-text .shit-accent,
.st-brand-wordmark .st-brand-accent,
.brand-link .brand-text .shit-accent,
.brand-cluster .brand-wordmark-text .shit-accent,
.footer-col-brand .brand-wordmark-text .shit-accent,
.footer-col .brand-wordmark-text .shit-accent {
  color: transparent !important;
  text-shadow: none !important;
}

/**
 * Small white "BETA" badge positioned directly underneath the "tag" portion
 * (right 44% of the 486x106 shittag wordmark image).
 */
.brand .brand-wordmark-text::after,
.st-brand-wordmark::after,
.brand-link .brand-text::after,
.brand-cluster .brand-wordmark-text::after,
.footer-col-brand .brand-wordmark-text::after,
.footer-col .brand-wordmark-text::after {
  content: "BETA";
  position: absolute;
  left: 56%;
  right: 0;
  bottom: -7px;
  text-align: center;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1;
  color: #ffffff !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85) !important;
  opacity: 0.95;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.page.launchpad-mode .brand .brand-plunger {
  height: 26px !important;
  width: 26px !important;
}

.page.launchpad-mode .brand .brand-wordmark-text {
  width: 100px !important;
  height: 22px !important;
}

.page.launchpad-mode .brand .brand-wordmark-text::after {
  font-size: 6.8px;
  bottom: -6px;
}

/* ==========================================================================
   2. CENTRALIZED STANDALONE PAGE HEADER (DOCS / FAQ / TERMS / PRIVACY)
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 12, 16, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-badge {
  font-size: 0.68rem;
  padding: 0.15rem 0.45rem;
  background: rgba(204, 255, 0, 0.12);
  color: #ccff00;
  border: 1px solid rgba(204, 255, 0, 0.25);
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: #a8aea6;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.18s ease;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: #ccff00;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

/* ==========================================================================
   3. CENTRALIZED UNIFIED ECOSYSTEM FOOTER
   ========================================================================== */
.footer,
.site-footer,
.site-global-footer {
  background: rgba(12, 15, 13, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3rem 1.5rem 2.25rem;
  margin-top: auto;
}

.footer-inner,
.footer-grid,
.footer-inner-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
}

.footer-col h4,
.footer-col-links h4 {
  font-size: 0.85rem;
  font-weight: 800;
  color: #f6f4ea;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-col ul,
.footer-col-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col ul li,
.footer-col-links ul li {
  margin-bottom: 0.6rem;
}

.footer-col ul a,
.footer-col-links ul a {
  color: #a8aea6;
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.18s ease;
}

.footer-col ul a:hover,
.footer-col-links ul a:hover {
  color: #ccff00;
}

.footer-bottom,
.footer-bottom-bar {
  max-width: 1280px;
  margin: 2.25rem auto 0;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  color: #72786f;
  font-size: 0.82rem;
}

/* P25: 961-1240 px: the eight header links plus the two buttons were wider than the bar (1024 px pages scrolled
   sideways by 65 px); same links, tighter spacing */
@media (min-width: 961px) and (max-width: 1240px) {
  .nav-container {
    gap: 0.75rem;
  }
  .nav-links {
    gap: 0.7rem;
  }
  .nav-links a {
    font-size: 0.78rem;
  }
  .nav-container .brand-badge {
    display: none;
  }
  .header-actions .btn {
    padding: 0.45rem 0.8rem;
    font-size: 0.8rem;
    white-space: nowrap;
  }
}

@media (max-width: 960px) {
  .nav-links {
    display: none;
  }
  .footer-inner,
  .footer-grid,
  .footer-inner-grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }
}

@media (max-width: 640px) {
  .nav-container {
    padding: 0.75rem 1rem;
  }
  .brand-link .brand-text,
  .brand .brand-wordmark-text {
    width: 98px !important;
    height: 22px !important;
  }
  .brand-link .brand-text::after,
  .brand .brand-wordmark-text::after {
    font-size: 6.8px;
    bottom: -6px;
  }
  .brand-badge {
    display: none;
  }
}

/* R4WEB-2: a 320-360 px phone: the two header buttons (OpenAPI / Launch App) fit next to the logo instead of the
   second one running past the screen edge */
@media (max-width: 360px) {
  .nav-container {
    padding: 0.7rem 0.75rem;
    gap: 0.5rem;
  }
  .header-actions {
    gap: 0.4rem;
    min-width: 0;
  }
  .header-actions .btn {
    padding: 0.38rem 0.5rem;
    font-size: 0.7rem;
    line-height: 1.15;
  }
}
