/* ============================================================
   Demon Seed Skateboards - Rider Profile Pages v1.0.7
   Shared by all individual rider pages (page-rich-payne.php, etc.)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=PT+Serif:wght@400;600&family=Montserrat:wght@400;500;600;700&display=swap');

/* ===== BODY / WRAPPER RESETS ===== */
body.page-template-page-rich-payne,
body.page-template-page-rich-payne .site,
body.page-template-page-rich-payne .site-content,
body.page-template-page-rich-payne #content,
body.page-template-page-rich-payne .content-area,
body.page-template-page-rich-payne .site-main,
body.page-template-page-aj-nelson,
body.page-template-page-aj-nelson .site,
body.page-template-page-aj-nelson .site-content,
body.page-template-page-aj-nelson #content,
body.page-template-page-aj-nelson .content-area,
body.page-template-page-aj-nelson .site-main,
body.page-template-page-cadell-williams,
body.page-template-page-cadell-williams .site,
body.page-template-page-cadell-williams .site-content,
body.page-template-page-cadell-williams #content,
body.page-template-page-cadell-williams .content-area,
body.page-template-page-cadell-williams .site-main,
body.page-template-page-ashton-dohany,
body.page-template-page-ashton-dohany .site,
body.page-template-page-ashton-dohany .site-content,
body.page-template-page-ashton-dohany #content,
body.page-template-page-ashton-dohany .content-area,
body.page-template-page-ashton-dohany .site-main,
body.page-template-page-christian-frazier,
body.page-template-page-christian-frazier .site,
body.page-template-page-christian-frazier .site-content,
body.page-template-page-christian-frazier #content,
body.page-template-page-christian-frazier .content-area,
body.page-template-page-christian-frazier .site-main {
  background: #ffffff !important;
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
}

body.page-template-page-rich-payne .entry-content,
body.page-template-page-aj-nelson .entry-content,
body.page-template-page-ashton-dohany .entry-content,
body.page-template-page-cadell-williams .entry-content,
body.page-template-page-christian-frazier .entry-content {
  background: #ffffff !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Hide Storefront's grey page-header title block */
body.page-template-page-rich-payne .page-header,
body.page-template-page-rich-payne .entry-header,
body.page-template-page-rich-payne header.entry-header,
body.page-template-page-rich-payne .storefront-page-header,
body.page-template-page-aj-nelson .page-header,
body.page-template-page-aj-nelson .entry-header,
body.page-template-page-aj-nelson header.entry-header,
body.page-template-page-aj-nelson .storefront-page-header,
body.page-template-page-cadell-williams .page-header,
body.page-template-page-cadell-williams .entry-header,
body.page-template-page-cadell-williams header.entry-header,
body.page-template-page-cadell-williams .storefront-page-header,
body.page-template-page-ashton-dohany .page-header,
body.page-template-page-ashton-dohany .entry-header,
body.page-template-page-ashton-dohany header.entry-header,
body.page-template-page-ashton-dohany .storefront-page-header,
body.page-template-page-christian-frazier .page-header,
body.page-template-page-christian-frazier .entry-header,
body.page-template-page-christian-frazier header.entry-header,
body.page-template-page-christian-frazier .storefront-page-header {
  display: none !important;
}

/* ===== PAGE WRAPPER ===== */
.ds-rider-page {
  width: 100%;
  background: #ffffff;
}

/* ===== HERO SECTION ===== */
.ds-rider-hero {
  position: relative;
  min-height: 410px;
  width: 100%;
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
}


/* mobile hero: hidden on desktop/tablet */
.ds-rider-hero--mobile { display: none; }

/* ===== MAIN CONTENT ===== */
.ds-rider-content {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0;
  background: #ffffff;
  padding: 5% 0;
}

/* ===== LEFT COLUMN ===== */
.ds-rider-left {
  width: 50%;
  flex-shrink: 0;
  flex-grow: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0 5%;
}

/* ===== NAME / ABOUT HEADING ===== */
.ds-rider-name-heading {
  font-family: "PT Serif", serif;
  font-size: 3.1vw;
  font-weight: 600;
  color: #2B323D;
  text-transform: capitalize;
  line-height: 1.1em;
  letter-spacing: -0.28px;
  margin: 0;
}

/* "About" shown on desktop, hidden on mobile */
.ds-rider-about-heading { display: block; }
/* Rider name shown on mobile, hidden on desktop */
.ds-rider-name-mobile   { display: none; }

/* ===== DETAILS (age, hometown, sponsors) ===== */
.ds-rider-details {
  font-family: "Montserrat", sans-serif;
  font-size: 24px;
  font-weight: 500;
  color: #2B323D;
  line-height: 1.3em;
  letter-spacing: -0.13px;
  margin: 0;
}

/* ===== BIO TEXT ===== */
.ds-rider-bio-text {
  font-family: "Montserrat", sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: #2B323D;
  line-height: 1.5em;
  letter-spacing: 1px;
  margin: 0;
}

.ds-rider-bio-text p { margin: 0 0 1em; }
.ds-rider-bio-text p:last-child { margin-bottom: 0; }

/* ===== SOCIAL ICONS ===== */
.ds-rider-socials {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 29px;
  padding: 8px 0;
}

.ds-rider-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #009477;
  color: #ffffff;
  text-decoration: none;
  transition: background 0.2s ease;
}

.ds-rider-social-link:hover { background: #007860; }

.ds-rider-social-link svg {
  width: 18px;
  height: 18px;
  fill: #ffffff;
}

/* ===== BRAND LOGOS GRID ===== */
.ds-rider-brands {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.ds-rider-brand-link {
  display: block;
  text-decoration: none;
}

.ds-rider-brand-link img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

/* ===== ACTION PHOTO (desktop only by default) ===== */
.ds-rider-action-photo {
  width: 100%;
}

.ds-rider-action-photo img {
  width: 100%;
  height: auto;
  border-radius: 15px;
  display: block;
}

/* Second action photo — always visible (not hidden on mobile) */
.ds-rider-action-photo--always {
  display: block !important;
}

/* ===== CAROUSEL SECTION (70% width) ===== */
.ds-rider-carousel-section {
  width: 70%;
  margin: 0 auto;
}

/* ===== CAROUSEL HEADING ===== */
.ds-rider-carousel-label {
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #2B323D;
  text-align: center;
  margin: 0;
}

/* ===== BOARD MODEL CAROUSEL ===== */
.ds-rider-carousel-wrap {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.ds-rider-carousel-track {
  display: flex;
  transition: transform 0.5s ease;
  will-change: transform;
}

.ds-rider-carousel-slide {
  flex: 0 0 100%;
  min-width: 0;
}

.ds-rider-carousel-slide img {
  width: 100%;
  height: auto;
  border-radius: 5px;
  display: block;
  object-fit: cover;
}

.ds-rider-carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 148, 119, 0.85);
  color: #ffffff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.ds-rider-carousel-nav:hover { background: rgba(0, 120, 96, 0.95); }
.ds-rider-carousel-nav.prev  { left: 8px; }
.ds-rider-carousel-nav.next  { right: 8px; }

.ds-rider-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.ds-rider-carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #999999;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease;
}
.ds-rider-carousel-dot.active { background: #009477; }

/* ===== OUT NOW / PRODUCT LABEL ===== */
.ds-rider-product-label {
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #2B323D;
  text-align: center;
  margin: 0;
}

/* ===== PRODUCT CARD ===== */
.ds-rider-product {
  background: #ffffff;
  border-radius: 15px;
  text-align: center;
  margin-top: -46px;
  padding-bottom: 25px;
  overflow: hidden;
}

.ds-rider-product a.ds-rider-product-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.ds-rider-product-img {
  width: 100%;
  height: auto;
  border-radius: 5px 5px 0 0;
  display: block;
}

.ds-rider-product-title {
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #2B323D;
  margin: 12px 0 4px;
  padding: 0 12px;
}

.ds-rider-product-price {
  font-family: "Montserrat", sans-serif;
  font-size: 15px;
  color: #2B323D;
  display: block;
  margin-bottom: 12px;
}

.ds-rider-add-to-cart {
  display: inline-block;
  background: #009477;
  color: #ffffff;
  border: none;
  border-radius: 5px;
  padding: 8px 20px;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease;
  margin-top: 4px;
}
.ds-rider-add-to-cart:hover { background: #007860; color: #ffffff; text-decoration: none; }

/* ===== RIGHT COLUMN ===== */
.ds-rider-right {
  width: 50%;
  flex-shrink: 0;
  flex-grow: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 5%;
}

.ds-rider-right-photo {
  padding: 5px;
}

.ds-rider-right-photo img {
  width: 100%;
  height: auto;
  border-radius: 15px;
  display: block;
}

/* ===== RESPONSIVE: TABLET ===== */
@media (max-width: 1024px) {
  .ds-rider-left  { width: 65%; gap: 30px; }
  .ds-rider-right { width: 35%; }

  .ds-rider-name-heading { font-size: 40px; letter-spacing: 0; }
  .ds-rider-bio-text     { font-size: 16px; }
}

/* ===== RESPONSIVE: MOBILE ===== */
@media (max-width: 767px) {
  .ds-rider-hero--desktop { display: none; }
  .ds-rider-hero--mobile  { display: block; }

  .ds-rider-about-heading { display: none; }
  .ds-rider-name-mobile   { display: block; }

  .ds-rider-content {
    flex-direction: column;
    padding: 15% 5%;
  }

  .ds-rider-left  {
    width: 100%;
    padding: 0;
    gap: 30px;
  }

  .ds-rider-right {
    width: 100%;
    margin-top: 10%;
    margin-bottom: 0;
    min-height: 50vh;
  }

  .ds-rider-action-photo { display: none; }

  .ds-rider-name-heading { font-size: 32px; }
  .ds-rider-details      { font-size: 22px; }
  .ds-rider-bio-text     { font-size: 16px; }

  .ds-rider-brands {
    grid-template-columns: repeat(1, 1fr);
  }

  .ds-rider-product {
    margin-top: -50px;
  }
}
