/* Anthony Maalouly — Player Page Styles */

/* ── THEME VARIABLES ── */
:root {
  --bg-primary:    #0a0f14;
  --bg-secondary:  #0d1a24;
  --bg-footer:     #060c10;
  --accent:        #00c864;
  --accent-bright: #00ff8a;
  --text-primary:  #ffffff;
  --text-muted:    rgba(255, 255, 255, 0.55);
  --text-faint:    rgba(255, 255, 255, 0.35);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-green:  rgba(0, 200, 100, 0.2);
  --glow-green:    rgba(0, 200, 100, 0.06);
}

/* ── BASE RESET ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

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

/* ── SHARED: SECTION LABEL ── */
.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-green);
}

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100svh;
  background: linear-gradient(135deg, var(--bg-primary) 0%, #0f1f2e 60%, #0d2135 100%);
  display: flex;
  align-items: stretch;
  overflow: hidden;
  border-bottom: 1px solid var(--border-green);
}

.hero__glow {
  position: absolute;
  top: 50%;
  left: 55%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--glow-green) 0%, transparent 70%);
  pointer-events: none;
}

.hero__number {
  position: absolute;
  bottom: -10px;
  left: 24px;
  font-size: clamp(100px, 22vw, 200px);
  font-weight: 900;
  color: rgba(0, 200, 100, 0.04);
  line-height: 1;
  pointer-events: none;
  letter-spacing: -6px;
  z-index: 0;
}

.hero__left {
  width: 52%;
  min-width: 320px;
  padding: clamp(40px, 6vw, 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.hero__right {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 62%;
  overflow: hidden;
  pointer-events: none;
}

.hero__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0.88;
  filter: contrast(1.05) brightness(0.9);
}

.hero__photo-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    var(--bg-primary) 0%,
    var(--bg-primary) 15%,
    rgba(10, 15, 20, 0.75) 45%,
    transparent 100%
  );
}

.hero__academy {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.hero__academy-line {
  display: block;
  width: 32px;
  height: 2px;
  background: var(--accent);
  flex-shrink: 0;
}

.hero__academy-text {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
}

.hero__name {
  font-size: clamp(42px, 7vw, 72px);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.92;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.hero__name span {
  color: var(--accent);
}

.hero__positions {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.pos-tag {
  border: 1px solid rgba(0, 200, 100, 0.45);
  color: var(--accent);
  padding: 6px 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 2px;
}

.hero__tagline {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 1px;
  font-style: italic;
}

/* ── ABOUT ── */
.about {
  position: relative;
  background: var(--bg-secondary);
  padding: clamp(40px, 6vw, 72px) clamp(24px, 6vw, 80px);
  display: flex;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
}

.about__jersey {
  flex: 0 0 auto;
  font-size: clamp(60px, 10vw, 96px);
  font-weight: 900;
  color: rgba(0, 200, 100, 0.1);
  line-height: 1;
  border: 2px solid rgba(0, 200, 100, 0.12);
  border-radius: 8px;
  padding: 10px 18px;
  letter-spacing: -2px;
}

.about__content {
  flex: 1;
  min-width: 0;
}

.about__bio {
  font-size: clamp(15px, 1.8vw, 19px);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 300;
  margin-bottom: 24px;
}

.about__bio strong {
  color: var(--text-primary);
  font-weight: 600;
}

.about__meta {
  display: flex;
  gap: clamp(16px, 3vw, 32px);
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.meta-item__val {
  font-size: clamp(18px, 2.5vw, 22px);
  font-weight: 700;
  color: var(--text-primary);
}

.meta-item__lbl {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ── ATTRIBUTES ── */
.attributes {
  position: relative;
  background: var(--bg-primary);
  padding: clamp(40px, 6vw, 72px) clamp(24px, 6vw, 80px);
  border-bottom: 1px solid var(--border-subtle);
}

.attr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px clamp(24px, 5vw, 56px);
}

.attr-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.attr-row__labels {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.attr-row__name {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.attr-row__val {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
}

.attr-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 2px;
  overflow: hidden;
}

.attr-bar__fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-bright));
  border-radius: 2px;
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.attr-bar__fill.is-animated {
  width: var(--target-width);
}

/* ── GALLERY ── */
.gallery {
  position: relative;
  background: var(--bg-secondary);
  padding: clamp(40px, 6vw, 72px) clamp(24px, 6vw, 80px);
  border-bottom: 1px solid var(--border-subtle);
}

.gallery__grid {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  grid-template-rows: 300px 300px;
  gap: 8px;
}

.gallery__item {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  background: #1a2a3a;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  opacity: 0.82;
  transition: opacity 0.3s ease, transform 0.4s ease;
}

/* action kicking shot — show full body + ball */
.gallery__item--tall img {
  object-position: center 40%;
}

/* running shot — keep player upper body in frame */
.gallery__item:nth-child(2) img {
  object-position: center 30%;
}

/* team photo — faces in frame */
.gallery__item:nth-child(3) img {
  object-position: center 35%;
}

.gallery__item:hover img {
  opacity: 1;
  transform: scale(1.03);
}

.gallery__item--tall {
  grid-row: span 2;
}

.gallery__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 14px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65), transparent);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

/* ── FOOTER / CONTACT ── */
.footer {
  position: relative;
  background: var(--bg-footer);
  padding: clamp(40px, 6vw, 64px) clamp(24px, 6vw, 80px);
  text-align: center;
  overflow: hidden;
}

.footer__top-line {
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.footer__ghost-name {
  font-size: clamp(28px, 6vw, 56px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 6px;
  color: rgba(255, 255, 255, 0.04);
  margin-bottom: 28px;
  pointer-events: none;
}

.footer__links {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.footer__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: 0.5px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer__link:hover {
  color: var(--text-primary);
  border-color: rgba(0, 200, 100, 0.35);
}

.footer__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--accent);
}

.footer__icon svg {
  width: 16px;
  height: 16px;
}

.footer__copy {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.18);
}

/* ── RESPONSIVE ── */
@media (max-width: 680px) {

  /* Hero: photo fades to a subtle background on mobile */
  .hero__left {
    width: 100%;
    min-width: unset;
    padding: 48px 24px 32px;
    z-index: 2;
  }

  .hero__right {
    width: 100%;
    opacity: 0.2;
  }

  .hero__photo-fade {
    background: linear-gradient(
      to bottom,
      transparent 0%,
      var(--bg-primary) 80%
    );
  }

  .hero__number {
    font-size: 38vw;
  }

  /* About: stack vertically, hide jersey display */
  .about {
    flex-direction: column;
    align-items: flex-start;
  }

  .about__jersey {
    display: none;
  }

  /* Attributes: single column */
  .attr-grid {
    grid-template-columns: 1fr;
  }

  /* Gallery: single column */
  .gallery__grid {
    grid-template-columns: 1fr;
    grid-template-rows: 300px 240px 240px;
  }

  .gallery__item--tall {
    grid-row: span 1;
  }

  /* Footer links: wrap tightly */
  .footer__links {
    flex-direction: column;
    align-items: center;
  }
}
