/*
Theme Name: World Cup Newsroom
Theme URI: https://example.com/world-cup-newsroom
Author: Codex
Author URI: https://example.com
Description: Portal informacyjny WordPress dla wiadomosci o FIFA World Cup 2026.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: world-cup-newsroom
*/

:root {
  --wcn-ink: #10151d;
  --wcn-muted: #5f6b7a;
  --wcn-line: #d8dee8;
  --wcn-paper: #ffffff;
  --wcn-page: #f4f6f9;
  --wcn-green: #0f6b4f;
  --wcn-red: #c4382b;
  --wcn-blue: #1d4f91;
  --wcn-gold: #d5a83f;
  --wcn-radius: 8px;
  --wcn-shadow: 0 16px 45px rgba(16, 21, 29, 0.12);
  --wcn-wrap: min(1180px, calc(100vw - 32px));
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--wcn-ink);
  background: var(--wcn-page);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.62;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--wcn-blue);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  color: #fff;
  background: #111820;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.admin-bar .site-header {
  top: 32px;
}

.site-header__inner {
  width: var(--wcn-wrap);
  min-height: 72px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
}

.site-branding {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.site-branding__mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, #ffffff 0 8%, transparent 9%),
    conic-gradient(from 25deg, var(--wcn-green), var(--wcn-gold), var(--wcn-red), var(--wcn-blue), var(--wcn-green));
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.8);
  flex: 0 0 auto;
}

.site-title {
  margin: 0;
  font-size: 1.06rem;
  line-height: 1;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.site-title a {
  color: #fff;
}

.site-description {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  line-height: 1.25;
}

.primary-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
}

.primary-navigation a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.88rem;
  font-weight: 650;
}

.primary-navigation a:hover,
.primary-navigation a:focus-visible,
.primary-navigation .current-menu-item > a {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.header-search {
  width: min(245px, 26vw);
}

.search-form {
  display: flex;
  align-items: center;
  gap: 0;
}

.search-form label {
  flex: 1;
}

.search-field {
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px 0 0 999px;
  padding: 0 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.search-field::placeholder {
  color: rgba(255, 255, 255, 0.58);
}

.search-submit {
  min-height: 40px;
  border: 0;
  border-radius: 0 999px 999px 0;
  padding: 0 14px;
  color: #121820;
  background: var(--wcn-gold);
  font-weight: 800;
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: min(680px, 68vh);
  color: #fff;
  background:
    linear-gradient(90deg, rgba(11, 17, 24, 0.94) 0%, rgba(11, 17, 24, 0.72) 46%, rgba(11, 17, 24, 0.28) 100%),
    url("assets/images/hero-stadium.png") center/cover no-repeat;
}

.hero__inner {
  width: var(--wcn-wrap);
  min-height: min(680px, 68vh);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 660px) minmax(220px, 1fr);
  gap: 40px;
  align-items: end;
  padding: 72px 0 54px;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: #121820;
  background: #fff;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--wcn-red);
}

.hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(2.45rem, 6vw, 5.8rem);
  line-height: 0.96;
  font-weight: 900;
  letter-spacing: 0;
}

.hero__summary {
  max-width: 610px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.08rem;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 0;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 0 12px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(0, 0, 0, 0.2);
  font-size: 0.82rem;
  font-weight: 700;
}

.hero__side {
  align-self: end;
  border-left: 4px solid var(--wcn-gold);
  padding: 18px 0 18px 22px;
}

.hero__side span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.hero__side h2 {
  margin: 7px 0 8px;
  color: #fff;
  font-size: clamp(1.1rem, 2.4vw, 1.55rem);
  line-height: 1.18;
}

.hero__side p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.94rem;
}

.ticker {
  color: #fff;
  background: #10151d;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ticker__inner {
  width: var(--wcn-wrap);
  min-height: 48px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  overflow: hidden;
}

.ticker__label {
  flex: 0 0 auto;
  color: #121820;
  background: var(--wcn-gold);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ticker__items {
  display: flex;
  gap: 18px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: thin;
}

.ticker__items a {
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
}

.site-main,
.content-area {
  width: var(--wcn-wrap);
  margin: 0 auto;
}

.news-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 34px;
  padding: 42px 0 58px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--wcn-line);
}

.section-heading h2,
.section-heading h1 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  line-height: 1.05;
}

.section-heading p {
  margin: 0;
  max-width: 520px;
  color: var(--wcn-muted);
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.post-card {
  min-width: 0;
  background: var(--wcn-paper);
  border: 1px solid var(--wcn-line);
  border-radius: var(--wcn-radius);
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(16, 21, 29, 0.06);
}

.post-card--wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(260px, 0.92fr) minmax(0, 1.08fr);
}

.post-card__media {
  position: relative;
  min-height: 210px;
  background: #dde5ee;
}

.post-card--wide .post-card__media {
  min-height: 310px;
}

.post-card__media img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.post-card__media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 52%;
  background: linear-gradient(0deg, rgba(16, 21, 29, 0.44), transparent);
  pointer-events: none;
}

.post-card__body {
  padding: 20px;
}

.post-card__kicker,
.entry-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--wcn-red);
  font-size: 0.75rem;
  font-weight: 850;
  text-transform: uppercase;
}

.post-card__title {
  margin: 0;
  font-size: clamp(1.12rem, 2.2vw, 1.58rem);
  line-height: 1.15;
}

.post-card--wide .post-card__title {
  font-size: clamp(1.45rem, 3.3vw, 2.35rem);
}

.post-card__excerpt {
  margin: 12px 0 0;
  color: var(--wcn-muted);
  font-size: 0.96rem;
}

.post-card__footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
  color: var(--wcn-muted);
  font-size: 0.82rem;
}

.read-more {
  color: var(--wcn-blue);
  font-weight: 800;
}

.sidebar {
  display: grid;
  gap: 18px;
  align-content: start;
}

.widget,
.sidebar .wp-block-group,
.sidebar section {
  background: var(--wcn-paper);
  border: 1px solid var(--wcn-line);
  border-radius: var(--wcn-radius);
  padding: 18px;
}

.widget h2,
.widget-title,
.sidebar h2,
.sidebar h3 {
  margin: 0 0 12px;
  font-size: 1rem;
  line-height: 1.2;
  text-transform: uppercase;
}

.widget ul,
.sidebar ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.widget li,
.sidebar li {
  padding: 10px 0;
  border-top: 1px solid var(--wcn-line);
}

.widget li:first-child,
.sidebar li:first-child {
  border-top: 0;
  padding-top: 0;
}

.tag-cloud-link,
.taxonomy-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin: 0 6px 8px 0;
  border: 1px solid var(--wcn-line);
  border-radius: 999px;
  padding: 0 10px;
  color: var(--wcn-muted);
  background: #fff;
  font-size: 0.78rem !important;
  font-weight: 750;
}

.entry-shell {
  width: min(870px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 48px 0 64px;
}

.entry-header {
  margin-bottom: 28px;
}

.entry-title {
  margin: 0;
  font-size: clamp(2.05rem, 6vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

.entry-meta {
  margin-top: 16px;
  color: var(--wcn-muted);
  font-size: 0.94rem;
}

.entry-featured {
  margin: 28px 0 32px;
  border-radius: var(--wcn-radius);
  overflow: hidden;
  box-shadow: var(--wcn-shadow);
}

.entry-content {
  color: #202a35;
  font-size: 1.08rem;
}

.entry-content h2,
.entry-content h3 {
  margin: 34px 0 12px;
  line-height: 1.16;
}

.entry-content p,
.entry-content ul,
.entry-content ol {
  margin: 0 0 18px;
}

.entry-content a {
  color: var(--wcn-blue);
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.source-box {
  margin-top: 34px;
  border: 1px solid var(--wcn-line);
  border-radius: var(--wcn-radius);
  padding: 20px;
  background: #fff;
}

.source-box h2 {
  margin: 0 0 12px;
  font-size: 1.1rem;
}

.source-box ol {
  margin: 0;
  padding-left: 22px;
}

.source-box li {
  margin-bottom: 10px;
}

.page-header {
  width: var(--wcn-wrap);
  margin: 0 auto;
  padding: 42px 0 0;
}

.pagination,
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 34px 0 0;
}

.page-numbers,
.nav-links a,
.nav-links span {
  min-width: 38px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--wcn-line);
  border-radius: 999px;
  padding: 0 12px;
  background: #fff;
  color: var(--wcn-ink);
  font-weight: 800;
}

.page-numbers.current {
  color: #fff;
  background: var(--wcn-blue);
  border-color: var(--wcn-blue);
}

.site-footer {
  color: rgba(255, 255, 255, 0.74);
  background: #10151d;
  padding: 32px 0;
}

.site-footer__inner {
  width: var(--wcn-wrap);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.site-footer strong {
  color: #fff;
}

@media (max-width: 920px) {
  .site-header__inner {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px 0;
  }

  .primary-navigation ul {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
  }

  .header-search {
    width: 100%;
  }

  .hero__inner,
  .news-layout,
  .post-card--wide {
    grid-template-columns: 1fr;
  }

  .hero,
  .hero__inner {
    min-height: 0;
  }

  .hero__inner {
    padding: 52px 0 44px;
  }

  .hero__side {
    border-left: 0;
    border-top: 4px solid var(--wcn-gold);
    padding: 18px 0 0;
  }

  .post-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .admin-bar .site-header {
    top: 0;
  }

  .ticker__inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 0;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .post-card__body {
    padding: 16px;
  }
}
