/* ============================================================
   ClubDesk — Subpages CSS
   Sporty / Funkcje / Wyglad
============================================================ */

/* Page Hero (shared across subpages) */
.cd-page-hero {
  background: linear-gradient(135deg, var(--cd-charcoal) 0%, #1a1a2e 100%);
  padding: 100px 0 60px;
  text-align: center;
  color: #ffffff;
}
.cd-page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: var(--fw-bold); margin-bottom: 1rem; color: #ffffff; }
.cd-page-hero h1 span { color: var(--cd-red); }
.cd-page-hero p { font-size: 1.15rem; opacity: .82; max-width: 640px; margin: 0 auto 1.6rem; color: #ffffff; }
.cd-page-hero__badges { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-top: 1.2rem; }
.cd-page-hero__badges span {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 20px;
  padding: .25rem .75rem;
  font-size: .8rem;
  font-weight: var(--fw-semibold);
  letter-spacing: .03em;
  color: #ffffff;
}

/* =====================
   SPORT CARDS
===================== */
.cd-sport-card {
  background: var(--cd-white);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid #eaecef;
  transition: box-shadow var(--transition-normal), transform var(--transition-normal);
  display: flex;
  flex-direction: column;
  gap: .9rem;
}
.cd-sport-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.cd-sport-card--shootero { border-color: rgba(238,44,40,.25); }
.cd-sport-card__head { display: flex; align-items: center; gap: .85rem; }
.cd-sport-card__icon {
  width: 48px; height: 48px; flex-shrink: 0;
  background: var(--cd-red-light);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
}
.cd-sport-card__icon svg { width: 28px; height: 28px; }
.cd-sport-card__meta { display: flex; flex-direction: column; gap: .2rem; }
.cd-sport-card__meta h4 { font-size: 1.05rem; font-weight: var(--fw-bold); margin: 0; color: var(--cd-charcoal); }
.cd-sport-card__badges { display: flex; gap: .4rem; flex-wrap: wrap; }
.cd-sport-card__fed {
  font-size: .72rem; font-weight: var(--fw-semibold); letter-spacing: .04em;
  background: var(--cd-slate); border-radius: 20px; padding: .15rem .6rem;
  color: var(--cd-charcoal); border: 1px solid var(--cd-slate-dark);
}
.cd-sport-card ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: .45rem;
}
.cd-sport-card ul li {
  font-size: .875rem; color: #555;
  padding-left: 1.2rem; position: relative;
}
.cd-sport-card ul li::before {
  content: '';
  position: absolute; left: 0; top: .45em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cd-red);
}
.cd-sport-card__common {
  border-top: 1px solid var(--cd-slate-dark);
  padding-top: .75rem;
  font-size: .78rem;
  color: #888;
  font-style: italic;
}

/* Shootero badge */
.cd-shootero-badge {
  display: block;
  margin-top: auto;
  text-decoration: none;
  border-top: 1px solid rgba(238,44,40,.2);
  padding-top: .85rem;
  transition: opacity var(--transition-fast);
}
.cd-shootero-badge:hover { opacity: .8; }
.cd-shootero-badge__inner {
  display: flex;
  align-items: center;
  gap: .65rem;
  background: var(--cd-red-light);
  border: 1px solid rgba(238,44,40,.2);
  border-radius: var(--radius-md);
  padding: .65rem .9rem;
}
.cd-shootero-badge__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .05rem;
}
.cd-shootero-badge__label {
  font-size: .68rem;
  color: #888;
  font-weight: var(--fw-regular);
}
.cd-shootero-badge__name {
  font-size: .95rem;
  font-weight: var(--fw-bold);
  color: var(--cd-red);
  letter-spacing: .02em;
}
.cd-shootero-badge__arrow { flex-shrink: 0; }

/* =====================
   FEATURE CARDS (Funkcje page)
===================== */
.cd-feature-card {
  background: var(--cd-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid #eaecef;
  transition: box-shadow var(--transition-normal);
}
.cd-feature-card:hover { box-shadow: var(--shadow-md); }
.cd-feature-card__head { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; }
.cd-feature-card__icon {
  width: 52px; height: 52px; flex-shrink: 0;
  background: var(--cd-red-light);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
}
.cd-feature-card__icon svg { width: 28px; height: 28px; }
.cd-feature-card__title h3 { font-size: 1.1rem; font-weight: var(--fw-bold); margin: 0 0 .3rem; color: var(--cd-charcoal); }
.cd-feature-card__title p { font-size: .9rem; color: #666; margin: 0; line-height: 1.5; }
.cd-feature-card ul {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: .4rem .75rem;
}
.cd-feature-card ul li {
  font-size: .835rem; color: #555;
  padding-left: 1.1rem; position: relative;
}
.cd-feature-card ul li::before {
  content: '✓';
  position: absolute; left: 0;
  color: var(--cd-red); font-weight: var(--fw-bold); font-size: .75rem;
}
@media (max-width: 500px) {
  .cd-feature-card ul { grid-template-columns: 1fr; }
}

/* Platform architecture blocks */
.cd-arch-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.25rem; }
.cd-arch-item {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--cd-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid #eaecef;
}
.cd-arch-item svg { width: 36px; height: 36px; margin-bottom: .75rem; }
.cd-arch-item h4 { font-size: .95rem; font-weight: var(--fw-bold); margin-bottom: .4rem; color: var(--cd-charcoal); }
.cd-arch-item p { font-size: .82rem; color: #666; margin: 0; line-height: 1.45; }
@media (max-width: 767px) { .cd-arch-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .cd-arch-grid { grid-template-columns: 1fr; } }

/* =====================
   SCREEN MOCKUPS (Wyglad page)
===================== */
.cd-screens-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; }
@media (max-width: 1023px) { .cd-screens-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .cd-screens-grid { grid-template-columns: 1fr; } }

.cd-screen {
  display: flex; flex-direction: column; gap: 1rem;
}
.cd-screen__desc h4 { font-size: 1rem; font-weight: var(--fw-bold); margin-bottom: .35rem; color: var(--cd-charcoal); }
.cd-screen__desc p { font-size: .85rem; color: #666; line-height: 1.55; margin: 0; }

/* Browser chrome wrapper */
.cd-browser {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,.15);
  border: 1px solid #dde0e5;
  background: #f8f9fa;
}
.cd-browser__bar {
  display: flex; align-items: center; gap: .5rem;
  padding: .55rem .9rem;
  background: #e8eaed;
  border-bottom: 1px solid #d0d3d8;
}
.cd-browser__dots { display: flex; gap: 5px; }
.cd-browser__dots span { width: 10px; height: 10px; border-radius: 50%; display: block; }
.cd-browser__dots span:nth-child(1) { background: #ff5f57; }
.cd-browser__dots span:nth-child(2) { background: #febc2e; }
.cd-browser__dots span:nth-child(3) { background: #28c840; }
.cd-browser__url {
  flex: 1; background: var(--cd-white);
  border-radius: 4px; padding: .2rem .7rem;
  font-size: .72rem; color: #666; font-family: monospace;
  border: 1px solid #ccc;
}
.cd-browser__body {
  background: var(--cd-white);
  min-height: 260px;
  overflow: hidden;
  position: relative;
}

/* App shell inside browser */
.cd-app { display: flex; height: 260px; font-size: .72rem; }
.cd-app__sidebar {
  width: 54px; background: var(--cd-charcoal);
  display: flex; flex-direction: column; align-items: center;
  padding: .75rem 0; gap: .6rem; flex-shrink: 0;
}
.cd-app__sidebar-item {
  width: 32px; height: 32px;
  border-radius: 6px;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
}
.cd-app__sidebar-item--active { background: var(--cd-red); }
.cd-app__sidebar-item svg { width: 16px; height: 16px; stroke: rgba(255,255,255,.75); }
.cd-app__sidebar-item--active svg { stroke: white; }
.cd-app__main {
  flex: 1; overflow: hidden;
  display: flex; flex-direction: column;
  background: #f7f8fa;
}
.cd-app__topbar {
  background: var(--cd-white); border-bottom: 1px solid #eaecef;
  padding: .5rem .85rem;
  display: flex; align-items: center; justify-content: space-between;
}
.cd-app__topbar-title { font-weight: 700; font-size: .78rem; color: var(--cd-charcoal); }
.cd-app__topbar-badge {
  background: var(--cd-red); color: white;
  border-radius: 4px; padding: .1rem .45rem;
  font-size: .65rem; font-weight: 700;
}
.cd-app__content { flex: 1; padding: .65rem .85rem; overflow: hidden; }

/* Mockup UI micro-components */
.cd-mu-row { display: flex; align-items: center; gap: .5rem; }
.cd-mu-stat {
  background: var(--cd-white); border-radius: 6px;
  padding: .5rem .6rem; border: 1px solid #eaecef;
  flex: 1;
}
.cd-mu-stat__val { font-size: 1.1rem; font-weight: 700; color: var(--cd-charcoal); }
.cd-mu-stat__val--red { color: var(--cd-red); }
.cd-mu-stat__lbl { font-size: .6rem; color: #999; }
.cd-mu-table { width: 100%; border-collapse: collapse; margin-top: .4rem; }
.cd-mu-table th { font-size: .6rem; color: #999; text-transform: uppercase; padding: .25rem .3rem; border-bottom: 1px solid #eaecef; text-align: left; }
.cd-mu-table td { font-size: .65rem; color: #555; padding: .3rem .3rem; border-bottom: 1px solid #f3f4f5; }
.cd-mu-badge {
  display: inline-block; border-radius: 20px; padding: .1rem .45rem;
  font-size: .6rem; font-weight: 600;
}
.cd-mu-badge--green { background: #e6f9f0; color: #1a8a4a; }
.cd-mu-badge--yellow { background: #fff8e1; color: #b07800; }
.cd-mu-badge--red { background: #fde8ec; color: #c0392b; }
.cd-mu-badge--blue { background: #e8f0fe; color: #1a56db; }
.cd-mu-card {
  background: var(--cd-white); border-radius: 6px;
  padding: .55rem .65rem; border: 1px solid #eaecef;
  margin-bottom: .4rem;
}
.cd-mu-card__title { font-weight: 700; font-size: .7rem; color: var(--cd-charcoal); margin-bottom: .2rem; }
.cd-mu-card__sub { font-size: .62rem; color: #999; }
.cd-mu-bar { height: 6px; border-radius: 3px; background: #eaecef; margin-top: .3rem; overflow: hidden; }
.cd-mu-bar__fill { height: 100%; background: var(--cd-red); border-radius: 3px; }
.cd-mu-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--cd-red), #ff8a80);
  display: flex; align-items: center; justify-content: center;
  font-size: .6rem; font-weight: 700; color: white; flex-shrink: 0;
}
.cd-mu-qr {
  width: 52px; height: 52px; background: var(--cd-charcoal);
  border-radius: 4px; padding: 4px;
  display: grid; grid-template-columns: repeat(7,1fr); gap: 1px;
}
.cd-mu-qr span { background: white; border-radius: 1px; }
.cd-mu-qr span.b { background: var(--cd-charcoal); }
.cd-mu-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; }
.cd-mu-grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .35rem; }
.cd-mu-photo {
  border-radius: 4px; background: linear-gradient(135deg,#e8eaed,#d0d3d8);
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
}
.cd-mu-photo svg { width: 14px; height: 14px; stroke: #aaa; }
.cd-mu-timeline { display: flex; flex-direction: column; gap: .35rem; }
.cd-mu-tl-item { display: flex; gap: .5rem; align-items: flex-start; }
.cd-mu-tl-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cd-red); flex-shrink: 0; margin-top: .2rem; }
.cd-mu-tl-text { font-size: .62rem; color: #555; line-height: 1.4; }
.cd-mu-cal {
  display: grid; grid-template-columns: repeat(7,1fr); gap: 2px; margin-top: .3rem;
}
.cd-mu-cal span {
  text-align: center; font-size: .58rem; padding: .15rem 0;
  border-radius: 3px; color: #666;
}
.cd-mu-cal span.hd { color: #999; font-weight: 600; }
.cd-mu-cal span.ev { background: var(--cd-red-light); color: var(--cd-red); font-weight: 700; }
.cd-mu-cal span.today { background: var(--cd-red); color: white; font-weight: 700; }

/* Mobile mockup (for portal zawodnika) */
.cd-mobile {
  width: 140px; margin: 0 auto;
  border-radius: 22px;
  border: 3px solid var(--cd-charcoal);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  background: #f7f8fa;
}
.cd-mobile__notch {
  background: var(--cd-charcoal);
  height: 16px; display: flex;
  align-items: center; justify-content: center;
}
.cd-mobile__notch span { width: 36px; height: 5px; background: #333; border-radius: 3px; }
.cd-mobile__body { padding: .5rem .5rem; min-height: 240px; }
.cd-mobile__card {
  background: var(--cd-charcoal);
  border-radius: 8px;
  padding: .6rem .65rem;
  color: white;
  margin-bottom: .4rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.cd-mobile__card-info { flex: 1; }
.cd-mobile__card-name { font-size: .65rem; font-weight: 700; }
.cd-mobile__card-sub { font-size: .55rem; opacity: .7; }

/* CTA band */
.cd-cta-band {
  background: var(--cd-red);
  padding: 56px 0;
  text-align: center;
  color: white;
}
.cd-cta-band h2 { font-size: clamp(1.4rem,3vw,2rem); font-weight: var(--fw-bold); margin-bottom: .75rem; color: white; }
.cd-cta-band p { opacity: .88; margin-bottom: 1.5rem; font-size: 1.05rem; color: white; }
.cd-cta-band .cd-btn--white { background: white; color: var(--cd-red); }
.cd-cta-band .cd-btn--white:hover { background: #f5f5f5; }
