﻿

/* Atletas archive + single */
/* Split from main.css */
/* Athletes archive */
.athletes-archive {
  padding-bottom: var(--bb-space-6);
}

.athletes-archive__content {
  padding-top: var(--bb-space-3);
}


/* Athlete card */
.athlete-card {
  height: 100%;
}

.athlete-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--bb-glass-border);
  border-radius: var(--bb-radius-md);
  background: var(--bb-color-surface-1);
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.athlete-card__link:hover {
  border-color: rgba(245, 245, 245, 0.16);
  transform: translateY(-2px);
}

.athlete-card__media {
  aspect-ratio: 4 / 5;
  background: var(--bb-color-surface-2);
  overflow: hidden;
}

.athlete-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.athlete-card__placeholder,
.athlete-hero__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 100%;
  background:
    linear-gradient(145deg, rgba(191, 26, 36, 0.2), rgba(17, 17, 17, 0.95)),
    var(--bb-color-surface-2);
  color: var(--bb-color-text-primary);
  font-family: var(--bb-font-heading);
  font-size: 3rem;
  font-weight: 700;
  text-transform: uppercase;
}

.athlete-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--bb-space-1);
  padding: var(--bb-space-3);
  flex: 1;
}

.athlete-card__title {
  font-size: 1.125rem;
  margin: 0;
}

.athlete-card__meta,
.athlete-hero__meta {
  margin: 0;
  color: var(--bb-color-text-secondary);
  font-size: 0.9375rem;
}

.athlete-card__tags,
.athlete-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.athlete-card__tag,
.athlete-hero__tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: var(--bb-radius-pill);
  background: rgba(245, 245, 245, 0.06);
  color: var(--bb-color-text-primary);
  font-family: var(--bb-font-heading);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.athlete-card__excerpt {
  margin: var(--bb-space-1) 0 0;
  color: var(--bb-color-text-secondary);
  font-size: 0.9375rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/* Athlete single */
.athlete-single {
  padding-bottom: var(--bb-space-6);
}

.athlete-hero {
  padding: var(--bb-space-5) 0;
  border-bottom: 1px solid var(--bb-glass-border);
}

.athlete-hero__grid {
  display: grid;
  gap: var(--bb-space-4);
  align-items: center;
}

.athlete-hero__media {
  aspect-ratio: 4 / 5;
  max-width: 420px;
  border-radius: var(--bb-radius-lg);
  overflow: hidden;
  border: 1px solid var(--bb-glass-border);
  background: var(--bb-color-surface-2);
}

.athlete-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.athlete-hero__eyebrow {
  margin: 0 0 var(--bb-space-eyebrow-title);
  font-family: var(--bb-font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bb-color-action);
}

.athlete-hero__title {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: var(--bb-space-2);
}

.athlete-hero__quote {
  margin: var(--bb-space-3) 0 0;
  padding-left: var(--bb-space-2);
  border-left: 3px solid var(--bb-color-action);
}

.athlete-hero__quote p {
  margin: 0;
  color: var(--bb-color-text-primary);
  font-size: 1.0625rem;
  font-style: italic;
}

.athlete-hero__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--bb-space-3) var(--bb-space-4);
  margin: var(--bb-space-4) 0 0;
  padding: 0;
}

.athlete-hero__stat {
  margin: 0;
}

.athlete-hero__stat-label {
  margin: 0 0 var(--bb-space-1);
  color: var(--bb-color-text-secondary);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.athlete-hero__stat-value {
  margin: 0;
  color: var(--bb-color-text-primary);
  font-size: 1rem;
  font-weight: 600;
}

.athlete-single__bio {
  padding: var(--bb-space-5) 0;
}

.athlete-single__bio-inner {
  max-width: 720px;
  color: var(--bb-color-text-secondary);
}

.athlete-single__bio-inner > :last-child {
  margin-bottom: 0;
}

.athlete-logros,
.athlete-gallery,
.athlete-social,
.athlete-video {
  padding: var(--bb-space-5) 0;
  border-top: 1px solid var(--bb-glass-border);
}

.athlete-logros__title,
.athlete-gallery__title,
.athlete-social__title,
.athlete-video__title {
  font-size: 1.25rem;
  margin-bottom: var(--bb-space-3);
}

.athlete-logros__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--bb-space-2);
}

.athlete-logros__item {
  padding: var(--bb-space-3);
  border: 1px solid var(--bb-glass-border);
  border-radius: var(--bb-radius-sm);
  background: var(--bb-color-surface-1);
}

.athlete-logros__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--bb-space-2);
}

.athlete-logros__item-title {
  font-size: 1rem;
  margin: 0;
  text-transform: none;
}

.athlete-logros__year {
  flex-shrink: 0;
  color: var(--bb-color-action);
  font-family: var(--bb-font-heading);
  font-size: 0.875rem;
  font-weight: 700;
}

.athlete-logros__description {
  margin-top: var(--bb-space-1);
  color: var(--bb-color-text-secondary);
  font-size: 0.9375rem;
}

.athlete-logros__description p:last-child {
  margin-bottom: 0;
}

.athlete-gallery__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--bb-space-2);
}

.athlete-gallery__item {
  border-radius: var(--bb-radius-sm);
  overflow: hidden;
  border: 1px solid var(--bb-glass-border);
}

.athlete-gallery__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1;
}

.athlete-video__embed {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--bb-radius-md);
  overflow: hidden;
  background: var(--bb-color-surface-2);
}

.athlete-video__embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.athlete-social__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--bb-space-2);
  list-style: none;
  margin: 0;
  padding: 0;
}

.athlete-social__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--bb-space-3);
  border: 1px solid var(--bb-glass-border);
  border-radius: var(--bb-radius-pill);
  font-family: var(--bb-font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.athlete-social__link:hover {
  border-color: rgba(245, 245, 245, 0.2);
  background: rgba(245, 245, 245, 0.04);
}

.athlete-single__cta {
  padding: var(--bb-space-5) 0;
  border-top: 1px solid var(--bb-glass-border);
  background: var(--bb-color-surface-1);
}

.athlete-single__cta-inner {
  display: flex;
  justify-content: center;
}

.athlete-single__back {
  padding: var(--bb-space-4) 0 var(--bb-space-2);
}

/* Atletas archive hero */
/* Atletas archive hero — full-bleed photo */
.hero--atletas {
  --atletas-hero-content-offset: 0;
  --atletas-hero-block-padding: var(--bb-space-4);
  position: relative;
  isolation: isolate;
  min-height: auto;
  padding: 0;
  background: var(--bb-color-bg);
  overflow: visible;
}

@media (min-width: 768px) {
  .hero--atletas {
    --atletas-hero-photo-height: clamp(520px, 82vh, 920px);
    --atletas-hero-content-lift: 0.16;
  }
}

@media (max-width: 767px) {
  .hero--atletas {
    --atletas-hero-photo-height: var(--bb-editorial-hero-photo-height, clamp(300px, 46svh, 400px));
    --atletas-hero-content-lift: var(--bb-editorial-hero-content-lift, 0.115);
    --atletas-hero-content-offset: var(--bb-editorial-hero-content-offset, clamp(0.75rem, 2vh, 1.25rem));
  }

  .hero--atletas .atletas-hero__image {
    object-position: var(--bb-editorial-hero-image-position, center 42%);
  }
}

.hero--atletas .atletas-hero__photo {
  width: 100vw;
  max-width: 100vw;
  height: var(--atletas-hero-photo-height);
  margin-inline: calc(50% - 50vw);
  overflow: hidden;
  position: relative;
  isolation: isolate;
}

.hero--atletas .atletas-hero__image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}

.hero--atletas .atletas-hero__content-wrap {
  position: relative;
  z-index: 1;
  margin-top: calc(var(--atletas-hero-photo-height) * var(--atletas-hero-content-lift) * -1 + var(--atletas-hero-content-offset));
}

.hero--atletas .atletas-hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: var(--atletas-hero-block-padding);
}

.atletas-hero__breadcrumbs {
  margin: 0 0 var(--bb-space-2);
}

.atletas-hero__breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--bb-font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.atletas-hero__breadcrumb-list li {
  display: inline-flex;
  align-items: center;
}

.atletas-hero__breadcrumb-list li:not(:last-child)::after {
  content: '/';
  margin: 0 0.5em;
  color: var(--bb-color-text-secondary);
  font-weight: 400;
  opacity: 0.65;
}

.atletas-hero__breadcrumb-list li:not(:last-child) a {
  color: var(--bb-color-text-secondary);
}

.atletas-hero__breadcrumb-list li:last-child span {
  color: var(--bb-color-text-primary);
}

.atletas-hero__breadcrumb-list a {
  transition: color 0.2s ease;
}

.atletas-hero__breadcrumb-list li:not(:last-child) a:hover,
.atletas-hero__breadcrumb-list li:not(:last-child) a:focus-visible {
  color: var(--bb-color-action);
}

.atletas-hero__title {
  margin: 0 0 var(--bb-space-2);
  font-family: var(--bb-font-quantify);
  font-size: clamp(2.75rem, 8vw, 5.5rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bb-color-text-primary);
}

.atletas-hero__intro {
  width: 100%;
  max-width: none;
  margin: 0;
  color: var(--bb-color-text-secondary);
  font-size: 1.0625rem;
  line-height: 1.6;
}


.hero--atletas {
  --bb-hero-editorial-mask-bottom-image: linear-gradient(
    to top,
    transparent 0%,
    rgb(0 0 0 / 12%) 16%,
    rgb(0 0 0 / 55%) 36%,
    #000 54%,
    #000 100%
  );
  --bb-hero-editorial-mask-image:
    linear-gradient(
      to bottom,
      transparent 0%,
      rgb(0 0 0 / 12%) 16%,
      rgb(0 0 0 / 55%) 36%,
      #000 54%,
      #000 100%
    ),
    linear-gradient(
      to top,
      transparent 0%,
      rgb(0 0 0 / 12%) 16%,
      rgb(0 0 0 / 55%) 36%,
      #000 54%,
      #000 100%
    );
}
.hero--atletas .atletas-hero__image {
  -webkit-mask-image: var(--bb-hero-editorial-mask-image);
  mask-image: var(--bb-hero-editorial-mask-image);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
.hero--atletas .atletas-hero__content { padding-bottom: var(--bb-space-7); }

@media (min-width: 768px) {
  .has-atletas-hero .hero--atletas .atletas-hero__title,
  .has-atletas-hero .hero--atletas .atletas-hero__intro { max-width: none; }
}
