/* ============================================================
   Arsenal FC — wspólne style dla wszystkich podstron
   Kolory klubu: czerwony #EF0107, biały, granatowy #023474
   ============================================================ */

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
  line-height: 1.6;
  color: #222;
  background: #f5f5f5;
}

/* ===== NAGŁÓWEK DUŻY (strona główna) ===== */
header.hero {
  background: linear-gradient(135deg, #EF0107 0%, #c90106 100%);
  color: white;
  padding: 60px 20px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
header.hero::before {
  content: "";
  position: absolute;
  top: -50%; left: -50%; right: -50%; bottom: -50%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
}
header.hero .logo {
  display: block;
  margin: 0 auto 20px;
  height: 150px;
  width: auto;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.35));
  position: relative;
  z-index: 1;
}
header.hero h1 {
  font-size: 42px;
  margin-bottom: 10px;
  letter-spacing: 1px;
  position: relative;
  z-index: 1;
}
header.hero .motto {
  font-style: italic;
  font-size: 18px;
  opacity: 0.95;
  position: relative;
  z-index: 1;
}
header.hero .badge-champion {
  display: inline-block;
  background: #DB9821;
  color: white;
  padding: 8px 20px;
  border-radius: 30px;
  font-weight: bold;
  margin-top: 18px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
  position: relative;
  z-index: 1;
}

/* ===== NAGŁÓWEK KOMPAKTOWY (podstrony) ===== */
header.compact {
  background: linear-gradient(135deg, #EF0107 0%, #c90106 100%);
  color: white;
  padding: 20px;
  text-align: center;
}
header.compact .logo-small {
  display: inline-block;
  height: 48px;
  width: auto;
  vertical-align: middle;
  margin-right: 12px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}
header.compact h1 {
  display: inline-block;
  vertical-align: middle;
  font-size: 26px;
  margin: 0;
}

/* ===== MENU NAWIGACYJNE ===== */
nav {
  background: #023474;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: 0 auto;
}
nav a {
  color: white;
  text-decoration: none;
  padding: 16px 22px;
  display: block;
  font-weight: 500;
  transition: background 0.2s;
}
nav a:hover {
  background: #EF0107;
}
nav a.active {
  background: #EF0107;
  border-bottom: 3px solid #DB9821;
}

/* ===== GŁÓWNA TREŚĆ ===== */
main {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}

section {
  background: white;
  margin-bottom: 30px;
  padding: 35px 40px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  border-left: 6px solid #EF0107;
}

section h2 {
  color: #EF0107;
  font-size: 28px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f0f0f0;
}

section h3 {
  color: #023474;
  font-size: 20px;
  margin: 24px 0 12px;
}

section p {
  margin-bottom: 12px;
  text-align: justify;
}

/* ===== OBRAZKI ===== */
figure {
  margin: 20px 0;
  text-align: center;
}
figure img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
figcaption {
  font-size: 13px;
  color: #777;
  margin-top: 8px;
  font-style: italic;
}
.img-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 20px 0;
}
.img-row figure { margin: 0; }

/* ===== INFO BOX (kluczowe fakty) ===== */
.fact-box {
  background: #fef5f5;
  border-left: 4px solid #EF0107;
  padding: 16px 20px;
  margin: 20px 0;
  border-radius: 4px;
}
.fact-box strong { color: #EF0107; }
.fact-box.gold {
  background: #fff8e1;
  border-left-color: #DB9821;
}
.fact-box.gold strong { color: #b87d12; }

/* ===== TABELE TROFEÓW ===== */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}
table th, table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #eee;
}
table th {
  background: #023474;
  color: white;
  font-weight: 600;
}
table tr:nth-child(even) { background: #fafafa; }
table tr:hover { background: #fef5f5; }
table td.count {
  font-weight: bold;
  color: #EF0107;
  font-size: 18px;
}

/* ===== LISTA PIŁKARZY ===== */
.players {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 20px;
}
.player {
  background: linear-gradient(135deg, #fafafa 0%, #fff 100%);
  padding: 0;
  border-radius: 6px;
  border: 1px solid #eee;
  transition: transform 0.15s, box-shadow 0.15s;
  overflow: hidden;
}
.player:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(239,1,7,0.15);
}
.player img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}
.player .body { padding: 14px 16px; }
.player .name {
  font-weight: bold;
  color: #EF0107;
  font-size: 17px;
  margin-bottom: 4px;
}
.player .position {
  color: #666;
  font-size: 14px;
  margin-bottom: 8px;
}
.player .info {
  font-size: 13px;
  color: #333;
}

/* ===== CIEKAWOSTKI ===== */
ul.fun-facts {
  list-style: none;
  padding-left: 0;
}
ul.fun-facts li {
  padding: 10px 0 10px 32px;
  position: relative;
  border-bottom: 1px dashed #eee;
}
ul.fun-facts li::before {
  content: "⚽";
  position: absolute;
  left: 0;
  top: 10px;
}
ul.fun-facts li:last-child { border-bottom: none; }

/* ===== KARTY NA STRONIE GŁÓWNEJ ===== */
.intro {
  text-align: center;
  margin-bottom: 30px;
  padding: 0 20px;
}
.intro p {
  font-size: 17px;
  color: #444;
  max-width: 700px;
  margin: 0 auto;
}
.link-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin: 40px 0;
}
.link-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 3px 12px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.link-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(239,1,7,0.2);
}
.link-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.link-card .card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.link-card h3 {
  color: #EF0107;
  margin: 0 0 8px;
  font-size: 22px;
}
.link-card p {
  color: #666;
  margin: 0;
  font-size: 14px;
  flex: 1;
}
.link-card .arrow {
  color: #023474;
  font-weight: bold;
  margin-top: 12px;
  font-size: 14px;
}

/* ===== PASEK SUKCESU NA GŁÓWNEJ ===== */
.recent-success {
  background: linear-gradient(135deg, #DB9821 0%, #b87d12 100%);
  color: white;
  padding: 30px 40px;
  border-radius: 10px;
  margin: 30px 0;
  text-align: center;
  box-shadow: 0 4px 15px rgba(219,152,33,0.3);
}
.recent-success h2 {
  margin: 0 0 8px;
  border: none;
  padding: 0;
  color: white;
  font-size: 26px;
}
.recent-success p {
  margin: 0;
  font-size: 16px;
  opacity: 0.95;
}

/* ===== STOPKA ===== */
footer {
  background: #023474;
  color: white;
  text-align: center;
  padding: 30px 20px;
  margin-top: 40px;
}
footer p { margin: 6px 0; }
footer .small {
  font-size: 13px;
  opacity: 0.8;
}
footer .attributions {
  max-width: 800px;
  margin: 18px auto 0;
  font-size: 11px;
  opacity: 0.7;
  text-align: left;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.15);
}
footer .attributions a { color: #ffc4c6; text-decoration: none; }
footer .attributions a:hover { text-decoration: underline; }

/* ===== TELEFONY ===== */
@media (max-width: 600px) {
  header.hero h1 { font-size: 32px; }
  header.hero .logo { width: 100px; height: 100px; font-size: 36px; }
  header.compact h1 { font-size: 20px; }
  section { padding: 25px 22px; }
  section h2 { font-size: 24px; }
  nav a { padding: 12px 14px; font-size: 14px; }
  .img-row { grid-template-columns: 1fr; }
  .link-cards { grid-template-columns: 1fr; }
}
