/* ============================================================
   BeachSports Help Scout Docs — Custom Stylesheet
   Matches: beachsports.com/year-round/ design system
   ============================================================ */

/* --- Google Font Import --- */
@import url('https://fonts.googleapis.com/css2?family=Jost:wght@300;400;500;600;700;800;900&display=swap');

/* --- Brand Tokens --- */
:root {
  --bs-green:  #10b48a;
  --bs-orange: #f37730;
  --bs-gold:   #fbac2b;
  --bs-muted:  #6e6060;
  --bs-off:    #f7f5f2;
  --bs-offb:   #ede9e4;
  --bs-white:  #ffffff;
  --bs-text:   #1a1a1a;
}


/* ============================================================
   1. GLOBAL TYPOGRAPHY & PAGE BACKGROUND
   ============================================================ */
body {
  font-family: 'Jost', sans-serif !important;
  color: var(--bs-text) !important;
  background-color: var(--bs-off) !important;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Jost', sans-serif !important;
  color: var(--bs-muted) !important;
  letter-spacing: -0.5px;
}
h1 {
  font-size: 38px !important;
  font-weight: 800 !important;
}
h2 {
  font-size: 28px !important;
  font-weight: 700 !important;
}

a {
  color: var(--bs-green) !important;
  transition: color 0.2s ease;
}
a:hover {
  color: #0d9472 !important;
}


/* ============================================================
   2. TRIBAR ACCENT (top of page — signature BeachSports touch)
   ============================================================ */
body::before {
  content: '';
  display: block;
  width: 100%;
  height: 4px;
  background: linear-gradient(
    to right,
    var(--bs-green)  0%,  var(--bs-green)  60%,
    var(--bs-orange) 60%, var(--bs-orange) 85%,
    var(--bs-gold)   85%, var(--bs-gold)   100%
  );
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
}


/* ============================================================
   3. HEADER / NAVIGATION
   ============================================================ */
header,
.header,
#header {
  background-color: var(--bs-white) !important;
  border-bottom: 1px solid var(--bs-offb) !important;
}

/* Navigation links */
header a,
.header a,
#header a,
nav a {
  font-family: 'Jost', sans-serif !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  letter-spacing: 0.2px;
  color: var(--bs-muted) !important;
  transition: color 0.2s ease;
}
header a:hover,
.header a:hover,
nav a:hover {
  color: var(--bs-green) !important;
}

/* Active nav state */
.activeCollection,
nav a.active {
  color: var(--bs-green) !important;
}


/* ============================================================
   4. SEARCH AREA
   ============================================================ */
#docsSearch {
  background-color: var(--bs-green) !important;
  border-bottom: none !important;
  padding-top: 60px !important;
  padding-bottom: 60px !important;
  position: relative;
}

/* Subtle gradient overlay for depth (like the hero section) */
#docsSearch::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(16,180,138,0.95), rgba(13,148,114,1));
  z-index: 0;
  pointer-events: none;
}

/* Search heading text */
#docsSearch h1 {
  font-family: 'Jost', sans-serif !important;
  font-weight: 800 !important;
  font-size: 28px !important;
  letter-spacing: -0.5px;
  color: rgba(255,255,255,0.95) !important;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

/* Search input field */
#searchBar .search-query {
  font-family: 'Jost', sans-serif !important;
  font-weight: 400;
  background: rgba(255,255,255,0.95) !important;
  border: 2px solid transparent !important;
  border-radius: 10px !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1) !important;
  color: var(--bs-text) !important;
  padding: 14px 18px !important;
  position: relative;
  z-index: 1;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
#searchBar .search-query:focus {
  border-color: rgba(255,255,255,0.5) !important;
  box-shadow: 0 4px 24px rgba(0,0,0,0.15) !important;
  outline: none;
}
#searchBar .search-query::placeholder {
  color: var(--bs-muted) !important;
  font-weight: 400;
}

/* Search button — white pill on green background */
#searchBar button {
  font-family: 'Jost', sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px;
  background: #fff !important;
  border: none !important;
  border-radius: 10px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
  color: var(--bs-green) !important;
  transition: opacity 0.2s ease, transform 0.15s ease;
  position: relative;
  z-index: 1;
}
#searchBar button:hover {
  background: #fff !important;
  color: var(--bs-green) !important;
  opacity: 0.9;
  transform: translateY(-1px);
}


/* ============================================================
   5. CONTENT AREA — CATEGORIES & COLLECTIONS
   ============================================================ */

/* Category cards */
.category-list .category {
  font-family: 'Jost', sans-serif !important;
  background-color: var(--bs-white) !important;
  border: 1px solid var(--bs-offb) !important;
  border-radius: 16px !important;
  border-left: 4px solid var(--bs-green) !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}
.category-list .category:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08) !important;
}

/* Category headings */
.category-list .category h2,
.category-list .category h3 {
  font-weight: 800 !important;
  color: var(--bs-muted) !important;
  letter-spacing: -0.5px;
}

/* Collection cards (most popular articles layout) */
.twoCol .collection,
.threeCol .collection {
  font-family: 'Jost', sans-serif !important;
  background: var(--bs-white) !important;
  border: 1px solid var(--bs-offb) !important;
  border-radius: 16px !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}
.twoCol .collection:hover,
.threeCol .collection:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08) !important;
}

/* Collection headers — mimic the colored accent bar from prog-cards */
.twoCol .collection h2,
.threeCol .collection h2 {
  font-weight: 800 !important;
  color: var(--bs-muted) !important;
}

/* Article list links (homepage popular articles, category lists) */
.articleList a,
.popular-articles a,
.article-list a {
  font-size: 17px !important;
  font-weight: 500 !important;
  line-height: 1.5;
}


/* ============================================================
   6. ARTICLE PAGES
   ============================================================ */

/* Article title */
.article h1,
.contentWrapper h1 {
  font-family: 'Jost', sans-serif !important;
  font-weight: 800 !important;
  font-size: 36px !important;
  color: var(--bs-muted) !important;
  letter-spacing: -1px;
  line-height: 1.1;
}

/* Article body */
.article,
.articleBody,
.contentWrapper {
  font-family: 'Jost', sans-serif !important;
  font-size: 16px;
  line-height: 1.65;
  color: var(--bs-text) !important;
}

/* Article sub-headings */
.articleBody h2 {
  font-weight: 700 !important;
  color: var(--bs-muted) !important;
  margin-top: 2em;
  padding-bottom: 0.3em;
  border-bottom: 2px solid var(--bs-offb);
}
.articleBody h3 {
  font-weight: 700 !important;
  color: var(--bs-green) !important;
}

/* In-article links */
.articleBody a {
  color: var(--bs-green) !important;
  text-decoration: underline;
  text-decoration-color: rgba(16,180,138,0.3);
  text-underline-offset: 2px;
  transition: text-decoration-color 0.2s ease;
}
.articleBody a:hover {
  text-decoration-color: var(--bs-green);
}

/* Inline code */
.articleBody code {
  background: var(--bs-off) !important;
  border: 1px solid var(--bs-offb);
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 0.9em;
}

/* Code blocks */
.articleBody pre {
  background: var(--bs-text) !important;
  border-radius: 12px !important;
  padding: 20px !important;
  border: none !important;
}


/* ============================================================
   7. SIDEBAR / TABLE OF CONTENTS
   ============================================================ */
.sidebar a,
.categoryNav a,
.articleNav a {
  font-family: 'Jost', sans-serif !important;
  font-weight: 500;
  font-size: 15px !important;
  color: var(--bs-muted) !important;
  transition: color 0.2s ease;
}
.sidebar a:hover,
.categoryNav a:hover,
.articleNav a:hover {
  color: var(--bs-green) !important;
}
.sidebar .active > a,
.categoryNav .active > a,
.articleNav .active > a {
  color: var(--bs-green) !important;
  font-weight: 700;
}

/* Sidebar section headings */
.sidebar h2,
.sidebar h3,
.categoryNav h2,
.categoryNav h3 {
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 3px !important;
  text-transform: uppercase !important;
  color: var(--bs-muted) !important;
}


/* ============================================================
   8. FOOTER
   ============================================================ */
footer,
#footer,
.footer {
  background-color: var(--bs-green) !important;
  font-family: 'Jost', sans-serif !important;
  padding: 28px 40px !important;
  font-size: 14px !important;
}
footer,
#footer,
.footer,
footer *,
#footer *,
.footer * {
  color: rgba(255,255,255,0.9) !important;
  font-size: 14px !important;
}
footer a,
#footer a,
.footer a {
  color: rgba(255,255,255,0.75) !important;
  font-weight: 600 !important;
  transition: color 0.2s ease;
}
footer a:hover,
#footer a:hover,
.footer a:hover {
  color: #fff !important;
}


/* ============================================================
   9. CONTACT / BEACON BUTTON (if using Beacon alongside Docs)
   ============================================================ */
.BeaconFabButtonFrame {
  /* Beacon inherits its own color settings,
     but if you want to force the green: */
}


/* ============================================================
   10. ARTICLE FOOTER — HIDE LAST UPDATED (optional)
   ============================================================ */
/* Uncomment below to hide the "Last updated" date on articles:
.articleFoot time.lu {
  display: none;
}
*/


/* ============================================================
   11. RESPONSIVE REFINEMENTS
   ============================================================ */
@media (max-width: 768px) {
  #docsSearch {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
  }
  #docsSearch h1 {
    font-size: 22px !important;
  }
  .article h1,
  .contentWrapper h1 {
    font-size: 28px !important;
  }
}


/* ============================================================
   12. SCROLL & SELECTION ACCENTS
   ============================================================ */
::selection {
  background: rgba(16,180,138,0.2);
  color: var(--bs-text);
}
::-moz-selection {
  background: rgba(16,180,138,0.2);
  color: var(--bs-text);
}

/* Smooth scrollbar accent (webkit browsers) */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bs-off);
}
::-webkit-scrollbar-thumb {
  background: var(--bs-offb);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--bs-muted);
}
