/* Swimmer home content layered on the shared SwimTayka portal shell. */

.swimmers-home-page {
  --navy: #172033;
  --blue-2: #1d78dd;
  --pale-blue: #eef6ff;
  --green: #16a34a;
  --border: var(--line);
  --white: #ffffff;
  --radius-lg: 18px;
  --radius-md: 18px;
}

.swimmers-home-page a { color: inherit; text-decoration: none; }
.swimmers-home-page svg { width: 1.25rem; height: 1.25rem; }
.swimmers-home-page .nav-item { color: #22304a; }
.swimmers-home-page .nav-item:hover,
.swimmers-home-page .nav-item.active { color: var(--blue-strong); }
.swimmers-home-page .profile-menu a {
  padding: 11px 12px;
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
}
.swimmers-home-page .profile-menu a:hover { background: #f5f7fb; }

.swimmers-home-content { max-width: 1500px; }
.welcome-copy { margin-bottom: 26px; }
.welcome-copy h1 { margin: 0; font-size: clamp(28px, 3vw, 38px); color: var(--text); }
.welcome-copy p { margin: 10px 0 0; color: var(--muted); }

/* Hero */

.hero {
  height: 530px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #143961;
  box-shadow: var(--shadow);
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 21, 41, .76) 0%, rgba(3, 21, 41, .47) 30%, rgba(3, 21, 41, .07) 62%, rgba(3, 21, 41, .02) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, .05), rgba(0, 0, 0, .12));
}

.hero-content {
  position: absolute;
  left: 32px;
  top: 50%;
  width: min(360px, 72%);
  transform: translateY(-50%);
  color: white;
}

.hero-content h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .3);
}

.hero-accent {
  width: 58px;
  height: 4px;
  margin: 28px 0 24px;
  border-radius: 999px;
  background: #1994f4;
}

.hero-content p {
  max-width: 325px;
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 500;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .35);
}

/* Status cards */

.status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.status-card {
  min-height: 286px;
  padding: 20px 20px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
  display: flex;
  flex-direction: column;
  box-shadow: 0 6px 22px rgba(45, 82, 125, .04);
}

.status-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #eaf4ff;
  color: var(--blue);
  margin-bottom: 16px;
}

.status-card h3,
.status-heading-row {
  margin: 0;
  font-size: 18px;
  color: var(--navy);
  font-weight: 700;
}

.status-heading-row {
  margin: -48px 0 24px 62px;
  font-size: 14px;
}

.status-card p {
  margin: 9px 0 0;
  color: #14203a;
  font-size: 13px;
  line-height: 1.45;
}

.status-card .muted {
  color: var(--muted);
  margin-top: 10px;
}

.small-highlight {
  display: block;
  margin-top: 4px;
  color: var(--blue);
  font-size: 13px;
}

.status-card a {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
}

.status-card a svg {
  width: 18px;
}

.metric {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-top: 4px;
  color: var(--navy);
}

.metric strong {
  font-size: 42px;
  line-height: 1;
  letter-spacing: -0.05em;
}

.metric span {
  font-size: 13px;
}

.metric.weather strong {
  color: #0f5ac0;
  font-size: 40px;
}

.metric.live strong {
  color: var(--green);
  font-size: 40px;
  letter-spacing: -0.04em;
}

.place {
  margin-top: 2px !important;
  color: #3d5d86 !important;
}

/* News and events */

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 18px;
}

.panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
  padding: 24px;
  box-shadow: 0 6px 22px rgba(45, 82, 125, .04);
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.panel-heading h2 {
  margin: 0;
  color: var(--navy);
  font-size: 20px;
}

.panel-heading a {
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
}

.news-list,
.event-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.news-item {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  align-items: start;
}

.news-thumb {
  height: 112px;
  border-radius: 8px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 65% 30%, rgba(255,255,255,.7), transparent 30%),
    linear-gradient(160deg, #8ca6bd 0%, #c9d8e6 45%, #4a769a 100%);
}

.news-thumb.monochrome {
  filter: grayscale(1);
}

.news-thumb.ocean {
  background:
    linear-gradient(160deg, #9bd5f3 0%, #5d9fc9 45%, #1f5b82 100%);
}

.thumb-wave {
  color: rgba(255, 255, 255, .85);
}

.thumb-wave svg {
  width: 54px;
  height: 54px;
}

.news-item h3,
.event-item h3 {
  margin: 0;
  color: var(--navy);
  font-size: 14px;
  line-height: 1.45;
}

.news-item p {
  margin: 7px 0;
  color: #475e84;
  font-size: 12px;
  line-height: 1.5;
}

.news-item time {
  color: #395d95;
  font-size: 11px;
}

.event-item {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 15px;
  align-items: start;
}

.event-icon {
  width: 54px;
  height: 54px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: #eaf4ff;
  color: var(--blue);
}

.event-icon svg {
  width: 24px;
  height: 24px;
}

.event-item p {
  margin: 5px 0 3px;
  color: #36567e;
  font-size: 12px;
}

.event-item p span {
  margin: 0 4px;
}

.event-note {
  color: #49658c;
  font-size: 12px;
  line-height: 1.45;
}

/* Quote */

.mission-quote {
  min-height: 140px;
  margin-top: 18px;
  padding: 25px 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: linear-gradient(110deg, #f3f9ff, #ffffff 45%, #eef6ff);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
}

.mission-quote blockquote {
  margin: 0;
  color: var(--navy);
  font-size: 22px;
  line-height: 1.35;
  font-weight: 600;
}

.mission-quote cite {
  display: block;
  margin-top: 10px;
  color: #49658c;
  font-size: 12px;
  font-style: normal;
}

.quote-mark {
  color: #82b9f5;
  font-size: 48px;
  font-weight: 800;
  line-height: .6;
}

/* Responsive */

@media (max-width: 1050px) {
  .status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    height: 460px;
  }
}

@media (max-width: 860px) {
  .swimmers-home-content {
    padding-inline: 18px;
  }

  .hero {
    height: 430px;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .swimmers-home-content {
    padding-inline: 12px;
  }

  .topbar {
    gap: 8px;
  }

  .welcome-copy h1 {
    font-size: 26px;
  }

  .welcome-copy p {
    font-size: 11px;
  }

  .icon-button {
    display: none;
  }

  .hero {
    height: 420px;
    border-radius: 16px;
  }

  .hero img {
    object-position: 47% center;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(2, 19, 38, .82), rgba(2, 19, 38, .38) 62%, rgba(2, 19, 38, .1)),
      linear-gradient(180deg, rgba(0, 0, 0, .02), rgba(0, 0, 0, .14));
  }

  .hero-content {
    left: 22px;
    top: auto;
    bottom: 34px;
    width: calc(100% - 44px);
    transform: none;
  }

  .hero-content h2 {
    font-size: 36px;
  }

  .hero-content p {
    font-size: 14px;
  }

  .status-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .status-card {
    min-height: 230px;
  }

  .panel {
    padding: 18px;
  }

  .news-item {
    grid-template-columns: 110px 1fr;
    gap: 13px;
  }

  .news-thumb {
    height: 95px;
  }

  .mission-quote {
    padding: 24px 18px;
    gap: 8px;
  }

  .mission-quote blockquote {
    font-size: 18px;
  }

  .quote-mark {
    font-size: 34px;
  }
}
