/* =========================================================
   Lake20 — page-specific styles.
   Nav, CTA, footer, group-box, site-intro-actions: css/site.css
   This file: hero, lake grid, Elements cards, filter, social links.
   ========================================================= */

/* Summits-box-title colour on this page */
.summits-box-title { color: var(--site-gold); }

/* ---------------------------
   Page colour tokens
   --------------------------- */
:root {
  --l20-bg:      #030812;
  --l20-bg-2:    #050b16;
  --l20-card:    rgba(10, 20, 38, 0.72);
  --l20-border:  rgba(255, 255, 255, 0.10);
  --l20-muted:   rgba(255, 255, 255, 0.68);
  --l20-muted-2: rgba(255, 255, 255, 0.50);
  --l20-radius:  20px;
  --l20-green:   rgba(70, 211, 106, 0.95);
}

/* ---------------------------
   Page background
   --------------------------- */
body {
  background:
    radial-gradient(1200px 700px at 20% -10%, rgba(60, 140, 255, 0.18), transparent 60%),
    radial-gradient(900px 500px at 85% 5%,   rgba(201, 167, 78, 0.14),  transparent 55%),
    linear-gradient(180deg, var(--l20-bg) 0%, var(--l20-bg-2) 100%);
  color: rgba(255, 255, 255, 0.92);
}

/* ---------------------------
   Hero
   --------------------------- */
.l20-hero {
  position: relative;
  height: clamp(480px, 72vh, 720px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: clamp(80px, 10vh, 140px);
  overflow: hidden;
  background: url("../assets/hero.jpg") center / cover no-repeat;
  background-color: #071226;
}

.l20-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 620px at 50% 22%, rgba(0,0,0,0.06), rgba(0,0,0,0.44) 65%, rgba(0,0,0,0.72) 100%);
}

.l20-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(3,8,18,0.00)  0%,
    rgba(3,8,18,0.10) 32%,
    rgba(3,8,18,0.55) 56%,
    rgba(3,8,18,0.90) 78%,
    rgba(3,8,18,0.96) 100%
  );
}

.l20-hero__inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
}

.l20-hero__title {
  margin: 0 0 16px;
  font-size: clamp(48px, 6vw, 88px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: #fff;
}

.l20-hero__lead {
  margin: 0 auto 8px;
  max-width: 640px;
  font-size: clamp(15px, 1.8vw, 19px);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 400;
}

.l20-hero__kicker {
  margin: 0 auto 28px;
  max-width: 640px;
  font-size: clamp(14px, 1.5vw, 17px);
  font-weight: 650;
  letter-spacing: 0.01em;
  color: var(--site-gold, #c8a45b);
}

/* ---------------------------
   Main page shell — overlap hero
   --------------------------- */
.site-page {
  position: relative;
  z-index: 2;
  margin-top: -72px;
  padding-bottom: 80px;
}

/* ---------------------------
   Section headings
   --------------------------- */
.l20-section-title {
  margin: 0 0 6px;
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.l20-section-lead {
  margin: 0 0 20px;
  color: var(--l20-muted-2);
  font-size: 0.875rem;
}

.l20-meta {
  margin: 0;
  color: var(--l20-muted-2);
  font-size: 0.8125rem;
}

/* ---------------------------
   Elements: Plan / Ride / Recover
   --------------------------- */
.l20-os-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.l20-card {
  border-radius: var(--l20-radius);
  background: linear-gradient(180deg, rgba(10,20,38,0.76) 0%, rgba(6,12,24,0.82) 100%);
  border: 1px solid var(--l20-border);
  padding: 18px 20px 16px;
  overflow: hidden;
}

.l20-card__title {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--site-gold, #c8a45b);
}

.l20-card ul {
  margin: 0;
  padding-left: 16px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.8125rem;
  line-height: 1.55;
}

.l20-card li { margin: 6px 0; }
.l20-card li::marker { color: rgba(201, 167, 78, 0.95); }

/* ---------------------------
   Lakes: filter
   --------------------------- */
.lakes-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin: 10px 0 16px;
}

.segmented {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.seg-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
}

.seg-btn:hover { color: rgba(255, 255, 255, 0.92); }

.seg-btn.is-active {
  background: rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.92);
}

/* ---------------------------
   Lakes: grid + cards
   --------------------------- */
.lake-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.lake-card {
  position: relative;
  border-radius: var(--l20-radius);
  background: #060c18;
  /* No border — overflow:hidden clips image at inner border edge
     creating a gap. Instead we use inset box-shadow which renders
     inside the clipping context, flush against the image. */
  border: none;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.10);
  transition: transform .20s ease;
}

.lake-card[data-status="completed"] {
  box-shadow: none;
}

/* Ring drawn OVER the image via ::after — always fully visible */
.lake-card[data-status="completed"]::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--l20-radius);
  border: 3px solid rgba(70, 211, 106, 0.95);
  pointer-events: none;
  z-index: 3;
}

.lake-card:hover { transform: translateY(-2px); }
.lake-card.is-missing img { display: none; }

/* Remove ::before — no longer needed */
.lake-card::before { display: none; }

.lake-card__media {
  aspect-ratio: 1 / 1;
  background: #060c18;
}

.lake-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 50%;
}

/* Focal-point overrides */
.lake-card__media img.lake-photo--garda  { object-position: center 24%; }
.lake-card__media img.lake-photo--lugano { object-position: center 0%;  }
.lake-card__media img.lake-photo--zuger  { object-position: center 38%; }

.lake-card__body {
  padding: 14px 16px 16px;
}

.lake-id {
  color: rgba(255, 255, 255, 0.50);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lake-id--gold {
  color: var(--site-gold);
  font-weight: 700;
}

.lake-title {
  /* size/weight from peak-card__title in site.css (1.375rem, 700) */
  margin: 6px 0 2px;
}

.lake-sub {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.8125rem;
}

.lake-stats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.75rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ---------------------------
   Social links
   --------------------------- */
.lake-social {
  margin-top: 10px;
  display: flex;
  gap: 8px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  font-size: 0; /* hide raw emoji */
  text-decoration: none;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.20);
  transform: translateY(-1px);
}

/* Render SVG icons via pseudo-elements */
.social-link::before {
  content: "";
  width: 16px;
  height: 16px;
  display: block;
  background: center / contain no-repeat;
  opacity: 0.88;
}
.social-link:hover::before { opacity: 1; }

.social-link[href*="komoot.com"]::before {
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCI+PGNpcmNsZSBjeD0iMTIiIGN5PSIxMiIgcj0iMTAiIGZpbGw9Im5vbmUiIHN0cm9rZT0id2hpdGUiIHN0cm9rZS13aWR0aD0iMiIvPjxwYXRoIGQ9Ik05IDd2MTBNOSAxMmw3LTVNOSAxMmw3IDUiIGZpbGw9Im5vbmUiIHN0cm9rZT0id2hpdGUiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+PC9zdmc+");
}
.social-link[href*="instagram.com"]::before {
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHJlY3QgeD0iNSIgeT0iNSIgd2lkdGg9IjE0IiBoZWlnaHQ9IjE0IiByeD0iNCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSJ3aGl0ZSIgc3Ryb2tlLXdpZHRoPSIyIi8+PGNpcmNsZSBjeD0iMTIiIGN5PSIxMiIgcj0iMyIgZmlsbD0ibm9uZSIgc3Ryb2tlPSJ3aGl0ZSIgc3Ryb2tlLXdpZHRoPSIyIi8+PGNpcmNsZSBjeD0iMTciIGN5PSI3IiByPSIxIiBmaWxsPSJ3aGl0ZSIvPjwvc3ZnPg==");
}
.social-link[href*="tiktok.com"]::before {
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZmlsbD0id2hpdGUiIGQ9Ik0xNCAzdjEwLjJhNC44IDQuOCAwIDEgMS0yLjItNFY3LjJoLTIuNFY1SDE0Yy40IDMgMi43IDQuNyA2IDQuOXYyLjJjLTIuMi0uMS00LjEtLjgtNi0yLjNWM3oiLz48L3N2Zz4=");
}

/* ---------------------------
   Responsive
   --------------------------- */
@media (max-width: 980px) {
  .l20-os-grid  { grid-template-columns: 1fr; }
  .lake-grid    { grid-template-columns: repeat(2, 1fr); }
  .site-page    { margin-top: -54px; }
}

@media (max-width: 640px) {
  .l20-hero { padding-bottom: 72px; }
  .lake-grid { grid-template-columns: 1fr; }
  .lakes-head { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
