/* ============================================================
   SportsClub CMS — modules.css
   Bazowe style wszystkich modułów piłkarskich
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

/* Container */
.sc-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Section titles */
.sc-section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 2rem;
  letter-spacing: -.02em;
}

/* Empty state */
.sc-empty {
  text-align: center;
  color: #888;
  padding: 2rem 0;
}

/* ── BUTTONS ── */
.sc-btn {
  display: inline-block;
  padding: .75rem 2rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  transition: opacity .2s, transform .1s;
  cursor: pointer;
}
.sc-btn:hover { opacity: .88; transform: translateY(-1px); }
.sc-btn-primary { background: var(--c1, #003399); color: #fff; }
.sc-btn-outline  { border: 2px solid rgba(255,255,255,.7); color: #fff; }
.sc-btn-outline:hover { background: rgba(255,255,255,.1); }
.sc-btn-cta { background: #fff; color: var(--cta-color, #003399); font-size: 1rem; }
.sc-btn-outline-light { border: 2px solid rgba(255,255,255,.6); color: #fff; }

/* ── HERO ── */
.sc-hero {
  position: relative;
  min-height: 90vh;
  display: flex; align-items: center; justify-content: center;
  background: #0a0f23;
  background-image: var(--hero-bg);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.sc-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(0,0,0,.7) 30%, rgba(0,30,100,.5));
}
.sc-hero-inner {
  position: relative; z-index: 2;
  text-align: center;
  padding: 3rem 1.5rem;
}
.sc-hero-crest {
  height: 110px; width: auto;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,.5));
}
.sc-hero-title {
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1;
  margin-bottom: .6rem;
}
.sc-hero-sub {
  font-size: clamp(1rem, 2vw, 1.4rem);
  color: rgba(255,255,255,.75);
  margin-bottom: 2.5rem;
  font-weight: 300;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.sc-hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── RESULT ── */
.sc-result-section { padding: 4rem 0; background: #f7f8fa; }
.sc-result-card {
  max-width: 640px; margin: 0 auto;
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
  text-align: center;
}
.sc-result-meta { font-size: .8rem; color: #888; margin-bottom: 1rem; display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.sc-result-scoreline {
  display: flex; align-items: center; justify-content: center; gap: 1.5rem;
  margin: 1rem 0;
}
.sc-result-team { font-weight: 700; font-size: 1.1rem; flex: 1; text-align: center; }
.sc-result-score { font-size: 3rem; font-weight: 900; letter-spacing: .05em; color: #111; }
.sc-result-badge { display: inline-block; margin-top: 1rem; padding: .4rem 1.2rem; border-radius: 20px; font-weight: 700; font-size: .85rem; }
.sc-badge-win  { background: #dcfce7; color: #16a34a; }
.sc-badge-loss { background: #fee2e2; color: #dc2626; }
.sc-badge-draw { background: #f1f5f9; color: #64748b; }
.sc-result-win  .sc-result-score { color: #16a34a; }
.sc-result-loss .sc-result-score { color: #dc2626; }

/* ── NEXT MATCH ── */
.sc-next-section { padding: 4rem 0; background: #0a0f23; color: #fff; }
.sc-next-section .sc-section-title { color: #fff; }
.sc-next-card {
  max-width: 700px; margin: 0 auto;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px; padding: 2rem;
  background: rgba(255,255,255,.04);
}
.sc-next-meta { display: flex; justify-content: space-between; font-size: .8rem; color: rgba(255,255,255,.55); margin-bottom: 1.5rem; }
.sc-next-teams { display: flex; align-items: center; gap: 2rem; justify-content: center; margin-bottom: 2rem; }
.sc-next-team  { font-size: 1.3rem; font-weight: 800; flex: 1; text-align: center; }
.sc-next-vs    { font-size: 1.1rem; font-weight: 300; color: rgba(255,255,255,.4); flex-shrink: 0; }
.sc-next-details { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; }
.sc-next-detail { font-size: .9rem; color: rgba(255,255,255,.7); }

/* ── COUNTDOWN ── */
.sc-countdown-section { padding: 4rem 0; background: #111827; color: #fff; }
.sc-countdown-section .sc-section-title { color: #fff; }
.sc-countdown-match { text-align: center; color: rgba(255,255,255,.5); margin-bottom: 2rem; font-size: .9rem; }
.sc-countdown { display: flex; justify-content: center; align-items: center; gap: .5rem; flex-wrap: wrap; }
.sc-countdown-item { text-align: center; min-width: 90px; }
.sc-cd-val { display: block; font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.sc-cd-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.4); }
.sc-countdown-sep { font-size: 3rem; font-weight: 900; color: rgba(255,255,255,.2); padding-bottom: 1rem; }

/* ── LEAGUE TABLE ── */
.sc-table-section { padding: 4rem 0; }
.sc-table-comp { text-align: center; color: #888; margin-bottom: 1.5rem; font-size: .9rem; }
.sc-table-wrap { overflow-x: auto; }
.sc-league-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.sc-league-table th { padding: .6rem 1rem; text-align: center; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #999; border-bottom: 2px solid #eee; }
.sc-league-table td { padding: .65rem 1rem; text-align: center; border-bottom: 1px solid #f3f4f6; }
.sc-col-team { text-align: left !important; }
.sc-pos { font-weight: 700; color: #888; }
.sc-pts strong { font-size: 1.05rem; }
.sc-our-club { background: #eff6ff; }
.sc-our-club td { font-weight: 600; }
.sc-our-club .sc-pts strong { color: #1d4ed8; }

/* ── FIXTURES / RESULTS ── */
.sc-fixtures-section, .sc-results-section { padding: 4rem 0; background: #f9fafb; }
.sc-match-list { display: flex; flex-direction: column; gap: .75rem; max-width: 780px; margin: 0 auto; }
.sc-match-row {
  display: flex; align-items: center; gap: 1rem;
  background: #fff; border-radius: 10px;
  padding: 1rem 1.2rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.sc-match-date-col { display: flex; flex-direction: column; align-items: center; min-width: 52px; }
.sc-match-day  { font-weight: 700; font-size: .9rem; }
.sc-match-time { font-size: .75rem; color: #888; }
.sc-match-info { flex: 1; }
.sc-match-teams { font-weight: 600; font-size: .95rem; }
.sc-vs, .sc-score { color: #666; margin: 0 .4rem; }
.sc-score { font-weight: 800; color: #111; }
.sc-match-meta { font-size: .75rem; color: #999; margin-top: .2rem; }
.sc-match-type { font-size: .75rem; font-weight: 700; padding: .3rem .7rem; border-radius: 12px; }
.sc-home { background: #dcfce7; color: #15803d; }
.sc-away { background: #fef3c7; color: #92400e; }
.sc-badge { display: inline-block; width: 22px; height: 22px; line-height: 22px; text-align: center; border-radius: 50%; font-size: .7rem; font-weight: 800; margin-top: .25rem; }

/* ── SQUAD ── */
.sc-squad-section { padding: 4rem 0; }
.sc-squad-pos-title { font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: #888; margin: 2rem 0 1rem; }
.sc-squad-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1.25rem; }
.sc-player-card {
  background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.07);
  transition: transform .2s, box-shadow .2s;
}
.sc-player-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,.1); }
.sc-player-photo { width: 100%; aspect-ratio: 1; object-fit: cover; }
.sc-player-photo-placeholder {
  width: 100%; aspect-ratio: 1;
  background: linear-gradient(135deg, #1d4ed8, #3b82f6);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; font-weight: 900; color: rgba(255,255,255,.5);
}
.sc-player-info { padding: 1rem; }
.sc-player-number { font-size: .75rem; color: #999; margin-bottom: .2rem; }
.sc-player-name { font-size: .95rem; font-weight: 600; line-height: 1.3; }
.sc-player-pos { font-size: .75rem; color: #64748b; margin: .3rem 0; }
.sc-player-stats { font-size: .75rem; color: #888; display: flex; gap: .5rem; }

/* ── STAFF ── */
.sc-staff-section { padding: 4rem 0; background: #f9fafb; }
.sc-staff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.5rem; }
.sc-staff-card { background: #fff; border-radius: 12px; padding: 1.5rem; text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.sc-staff-photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin-bottom: 1rem; }
.sc-staff-photo-placeholder { font-size: 3rem; margin-bottom: 1rem; }
.sc-staff-name { font-weight: 700; font-size: 1rem; }
.sc-staff-role { font-size: .8rem; color: #64748b; margin: .3rem 0; font-weight: 600; }
.sc-staff-bio { font-size: .8rem; color: #888; margin-top: .5rem; }

/* ── NEWS ── */
.sc-news-section { padding: 4rem 0; }
.sc-news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.sc-news-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,.07); transition: transform .2s; }
.sc-news-card:hover { transform: translateY(-3px); }
.sc-news-img { aspect-ratio: 16/9; overflow: hidden; }
.sc-news-img img { width: 100%; height: 100%; object-fit: cover; }
.sc-news-body { padding: 1.25rem; }
.sc-news-date { font-size: .75rem; color: #999; margin-bottom: .4rem; }
.sc-news-title { font-size: 1rem; font-weight: 700; line-height: 1.4; margin-bottom: .5rem; }
.sc-news-excerpt { font-size: .85rem; color: #666; line-height: 1.6; }

/* ── GALLERY ── */
.sc-gallery-section { padding: 4rem 0; background: #0a0f23; }
.sc-gallery-section .sc-section-title { color: #fff; }
.sc-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .5rem; }
.sc-gallery-item { aspect-ratio: 16/10; overflow: hidden; border-radius: 6px; background: #1a1a2e; }
.sc-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.sc-gallery-item:hover img { transform: scale(1.05); }

/* ── SPONSORS ── */
.sc-sponsors-section { padding: 4rem 0; background: #f7f8fa; }
.sc-sponsors-tier-title { text-align: center; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: #bbb; margin: 2rem 0 1rem; }
.sc-sponsors-row { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 2rem; margin-bottom: 1.5rem; }
.sc-sponsor-item { display: flex; align-items: center; justify-content: center; }
.sc-sponsor-logo { max-height: 60px; max-width: 180px; width: auto; filter: grayscale(1); opacity: .7; transition: all .2s; }
.sc-sponsor-logo:hover { filter: grayscale(0); opacity: 1; }
.sc-sponsors-main .sc-sponsor-logo { max-height: 90px; max-width: 260px; }
.sc-sponsor-name { font-weight: 700; font-size: 1rem; color: #555; }

/* ── ABOUT ── */
.sc-about-section { padding: 4rem 0; }
.sc-about-inner { display: grid; grid-template-columns: 1fr 2fr; gap: 3rem; align-items: center; }
.sc-about-img img { width: 100%; border-radius: 12px; }
.sc-about-facts { list-style: none; padding: 0; margin-top: 1.5rem; display: flex; flex-direction: column; gap: .5rem; font-size: .95rem; }
.sc-about-facts li { padding: .4rem 0; border-bottom: 1px solid #f0f0f0; }

/* ── CTA ── */
.sc-cta-section {
  padding: 5rem 2rem;
  background: var(--cta-color, #003399);
  color: #fff; text-align: center;
}
.sc-cta-title { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 900; margin-bottom: 1rem; }
.sc-cta-sub { font-size: 1.1rem; opacity: .8; margin-bottom: 2.5rem; }
.sc-cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── SOCIAL ── */
.sc-social-section { padding: 3rem 0; background: #f9fafb; }
.sc-social-links { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.sc-social-link {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .6rem 1.4rem; border-radius: 8px; font-weight: 700; font-size: .9rem;
  color: #fff; text-decoration: none; transition: opacity .2s;
}
.sc-social-link:hover { opacity: .85; }
.sc-social-facebook  { background: #1877f2; }
.sc-social-instagram { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.sc-social-youtube   { background: #ff0000; }
.sc-social-tiktok    { background: #010101; }
.sc-social-x         { background: #111; }

/* ── CONTACT ── */
.sc-contact-section { padding: 4rem 0; }
.sc-contact-grid { max-width: 600px; margin: 0 auto; }
.sc-contact-info { font-size: 1rem; line-height: 2; }
.sc-contact-info a { color: inherit; }

/* ── FOOTER ── */
.sc-footer {
  padding: 2rem;
  background: #0a0f23;
  color: rgba(255,255,255,.5);
  font-size: .85rem;
}
.sc-footer-inner { display: flex; align-items: center; gap: 1.2rem; justify-content: center; }
.sc-footer-crest { height: 36px; width: auto; opacity: .6; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .sc-about-inner { grid-template-columns: 1fr; }
  .sc-about-img { order: -1; }
  .sc-next-teams { flex-direction: column; gap: .5rem; }
  .sc-result-scoreline { flex-direction: column; gap: .5rem; }
}
@media (max-width: 480px) {
  .sc-hero-title { font-size: 2.5rem; }
  .sc-countdown-item { min-width: 70px; }
}
