/*
Theme Name: Polish Champs
Theme URI: https://polishchamps.com/
Author: Fundacja Polish Champs
Description: Motyw odtwarzający dotychczasową stronę Fundacji Polish Champs. Po włączeniu sam tworzy wszystkie podstrony, menu i ustawia stronę główną.
Version: 1.15.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: polishchamps
*/

/* Główne style strony są w css/main.css. Tutaj tylko dodatki dla WordPressa. */

/* Pasek administratora nie zasłania menu */
.admin-bar .fixed-top { top: 32px; }
@media (max-width: 782px) { .admin-bar .fixed-top { top: 46px; } }

/* Zwykłe strony dodane w WordPressie (np. zapisy) */
.pc-generic-hero {
  background-size: cover;
  background-position: center;
}
.pc-entry { font-size: 1.7rem; line-height: 1.7; padding-top: 4rem; padding-bottom: 6rem; }
/* :where() = niski priorytet, żeby nie nadpisywać wtyczek (np. zapisów) */
.pc-entry :where(p, li) { font-size: 1.7rem; }
.pc-entry :where(h2) { font-size: 2.8rem; margin-top: 3rem; margin-bottom: 1.5rem; font-weight: 700; }
.pc-entry :where(h3) { font-size: 2.2rem; margin-top: 3rem; margin-bottom: 1.5rem; font-weight: 700; }
.pc-entry > :where(h2, h3):first-child { margin-top: 0; }
.pc-entry :where(label) { font-weight: 700; display: block; margin-bottom: .4rem; }
.pc-entry :where(img) { max-width: 100%; height: auto; }
.pc-entry :where(a) { color: #D72323; }
.pc-entry :where(input[type=text], input[type=email], input[type=tel], input[type=number], input[type=date], input[type=url], select, textarea) {
  display: block; width: 100%; max-width: 640px; padding: 1rem 1.2rem; border: 1px solid #bbb; border-radius: 4px; font-size: 1.6rem; font-weight: 400; margin-top: .5rem;
}
.pc-entry :where(input[type=submit], button[type=submit], .wp-block-button__link) {
  background: #D72323; color: #fff; border: 0; border-radius: 4px; padding: 1.2rem 3rem; font-size: 1.6rem; font-weight: 700; cursor: pointer;
}
.pc-entry :where(input[type=submit], button[type=submit]):hover { filter: brightness(.9); }

/* Menu górne: 7 pozycji w jednej linii – rozmiar i odstępy skalują się z szerokością ekranu */
@media (min-width: 992px) {
  .navbar .navbar-nav { gap: clamp(0.6rem, 1.5vw, 3.6rem); align-items: center; margin-right: clamp(1rem, 2vw, 3rem); }
  .navbar .navbar-nav .nav-link {
    white-space: nowrap;
    margin-left: 0 !important;
    margin-right: 0 !important;
    font-size: clamp(1.35rem, 1.1vw, 2.2rem);
  }
  .navbar .navbar-nav .nav-link--primary { padding-left: clamp(1.2rem, 1.6vw, 3rem) !important; padding-right: clamp(1.2rem, 1.6vw, 3rem) !important; }
  .navbar-brand { margin-left: clamp(1rem, 2vw, 3rem) !important; margin-right: 1.5rem; }
}
@media (min-width: 1200px) and (max-width: 1599px) {
  .nav__logo { height: 60px; }
}

/* Tabele w treści zwykłych stron (np. harmonogram Mistrzostw) */
.pc-entry .wp-block-table { margin: 0 0 2rem; overflow-x: auto; }
.pc-entry .wp-block-table table { width: 100%; border-collapse: collapse; font-size: 1.6rem; }
.pc-entry .wp-block-table th { background: #174050; color: #fff; text-align: left; padding: 1rem 1.2rem; border: 0; }
.pc-entry .wp-block-table td { padding: 1rem 1.2rem; border: 0; border-bottom: 1px solid #e1e6e8; vertical-align: top; }
.pc-entry .wp-block-table tbody tr:nth-child(even) { background: #f7f9fa; }
.pc-entry .wp-block-table td:first-child { white-space: nowrap; font-weight: 700; }
.pc-entry .wp-block-table thead th:first-child { white-space: nowrap; }
.pc-entry :where(ul, ol) { padding-left: 2.4rem; margin-bottom: 2rem; }
.pc-entry :where(li) { margin-bottom: .6rem; }

/* Patronat, sponsor i partnerzy (strona Mistrzostw, na dole) */
.pc-sponsors { display: grid; grid-template-columns: auto auto 1fr; gap: 3rem 5rem; align-items: start; border-top: 3px solid #174050; padding: 3.2rem 0 1rem; margin: 4rem 0 0; background: #fff; }
.pc-sponsors__label { font-size: 1.4rem !important; line-height: 1.5 !important; min-height: 3em; text-transform: uppercase; letter-spacing: .08em; color: #5b6a70; font-weight: 700; margin: 0 0 1.6rem !important; }
.pc-sponsors__logos { display: flex; flex-wrap: wrap; align-items: center; gap: 2.4rem 4rem; min-height: 16rem; }
.pc-sponsors__logos img { height: 10rem; width: auto; max-width: 100%; object-fit: contain; }
.pc-sponsors__group--patron .pc-sponsors__logos img { height: 16rem; }
.pc-sponsors__group--sponsor .pc-sponsors__logos img { height: 8rem; }
.pc-sponsors__logos img[alt="Białystok"], .pc-sponsors__logos img[alt="Podlaskie"] { height: 9rem; }
.pc-sponsors__logos img[alt^="UCI"] { height: 6rem; }
@media (max-width: 991px) {
  /* Na telefonie: grupy jedna pod drugą, każde logo w osobnej linii */
  .pc-sponsors { grid-template-columns: 1fr; gap: 3.2rem; text-align: center; }
  .pc-sponsors__label { min-height: 0; }
  .pc-sponsors__logos { flex-direction: column; justify-content: center; gap: 3.2rem; min-height: 0; }
  .pc-sponsors__logos img { height: 15rem; max-width: 80%; }
  .pc-sponsors__group--patron .pc-sponsors__logos img { height: 24rem; }
  .pc-sponsors__group--sponsor .pc-sponsors__logos img { height: auto; width: 26rem; }
  .pc-sponsors__logos img[alt="Białystok"], .pc-sponsors__logos img[alt="Podlaskie"] { height: auto; width: 28rem; }
  .pc-sponsors__logos img[alt^="UCI"] { height: auto; width: 26rem; }
}

/* Nagłówek zwykłych stron (np. Mistrzostwa): na telefonie mniejszy tytuł, większe zdjęcie */
@media (max-width: 991px) {
  .pc-hero { height: auto; }
  .pc-hero .pc-hero__title { padding-top: 11rem; padding-bottom: 2.4rem; }
  .pc-hero .subprojects-hero__title { margin: 0; }
  .pc-hero .pc-generic-hero { height: 62vw; min-height: 22rem; }
}
@media (min-width: 992px) {
  .pc-hero .pc-hero__title { padding-top: 8rem; }
}

/* Nagłówek z filmem (pionowy YouTube Shorts) zamiast zdjęcia */
.pc-hero__media { background: #0e313f; display: flex; align-items: center; justify-content: center; padding: 2rem 1.6rem; }
.pc-hero__video { aspect-ratio: 9 / 16; height: 100%; max-width: 100%; background: #000; border-radius: 8px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.pc-hero__video iframe { display: block; width: 100%; height: 100%; border: 0; }
@media (min-width: 992px) {
  .pc-hero--video { height: 78vh; min-height: 58rem; }
  .pc-hero--video .pc-hero__media { height: 100%; padding-top: 11rem; }
}
@media (max-width: 991px) {
  .pc-hero--video .pc-hero__media { padding: 2.4rem 1.6rem 3.2rem; }
  .pc-hero--video .pc-hero__video { height: auto; width: min(82vw, 42rem); }
}

/* Film (YouTube Shorts) w treści strony */
.pc-short { width: min(100%, 34rem); aspect-ratio: 9 / 16; margin: 2.4rem auto 3.2rem; background: #000; border-radius: 8px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.pc-short iframe { display: block; width: 100%; height: 100%; border: 0; }
@media (max-width: 991px) { .pc-short { width: min(100%, 42rem); } }

/* Opis + film w jednym rzędzie (komputer); na telefonie jedno pod drugim */
.pc-intro { gap: 4rem; margin-bottom: 1.6rem; }
.pc-intro .pc-short { margin: 0 auto; width: min(100%, 32rem); }
.pc-entry .pc-intro :where(h2) { margin-top: 0; }
@media (max-width: 781px) { .pc-intro .pc-short { margin: 1.6rem auto 2.4rem; width: min(100%, 42rem); } }

/* Opis obok filmu: wyjustowany, od góry */
.pc-intro p { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.pc-intro > .wp-block-column:first-child > :first-child { margin-top: 0; }
