/*
Theme Name: Retro Community bbPress
Theme URI: https://example.com/
Author: OpenAI
Author URI: https://openai.com/
Description: Klasyczny, niebieski motyw społecznościowy inspirowany portalami i forami MTA/FiveM z lat 2014–2016. Zawiera pełną zgodność wizualną z bbPress, stronę główną z komunikatem, listą zmian i indeksem forów.
Version: 1.3.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: retro-community
Tags: blog, community, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, wide-blocks
*/

:root {
  --retro-blue-950: #061f3f;
  --retro-blue-900: #082b55;
  --retro-blue-800: #0b3f78;
  --retro-blue-700: #0d559a;
  --retro-blue-600: #1878be;
  --retro-blue-100: #e9f2fb;
  --retro-ink: #10263a;
  --retro-muted: #6d7b89;
  --retro-line: #ccd6e2;
  --retro-page: #dce4ef;
  --retro-panel: #ffffff;
  --retro-success-bg: #efffdf;
  --retro-success-line: #a5d67c;
  --retro-radius: 6px;
  --retro-shadow: 0 1px 2px rgba(0, 26, 58, .08);
  --retro-container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--retro-ink);
  background: linear-gradient(90deg, #d2dce9 0, #e8edf4 12%, #e8edf4 88%, #d2dce9 100%);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.55;
}
a { color: #0b5597; text-decoration: none; }
a:hover, a:focus { color: #073865; text-decoration: underline; }
img { max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
.screen-reader-text:focus {
  clip: auto !important;
  width: auto; height: auto;
  padding: .75rem 1rem;
  top: .5rem; left: .5rem;
  z-index: 100000;
  color: #fff; background: #000;
}

.retro-container {
  width: min(calc(100% - 28px), var(--retro-container));
  margin-inline: auto;
}

.site-topbar {
  color: #b8c6d6;
  background: linear-gradient(#2d3136, #161a1f);
  border-bottom: 1px solid rgba(255,255,255,.06);
  font-size: .73rem;
}
.site-topbar__inner {
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.site-topbar__left,
.top-navigation ul,
.topbar-account {
  display: flex;
  align-items: center;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-topbar__left { min-width: 0; }
.online-players { color: #d9e4ef; white-space: nowrap; }
.online-players strong { color: #28d86f; font-weight: 800; }
.top-navigation li { margin: 0; }
.site-topbar a {
  color: #c9d4df;
  text-decoration: none;
}
.site-topbar a:hover,
.site-topbar a:focus {
  color: #fff;
  text-decoration: underline;
}
.topbar-account__user {
  color: #fff;
  font-weight: 700;
}


.site-header {
  position: relative;
  color: #fff;
  background:
    radial-gradient(circle at 18% 15%, rgba(67, 165, 239, .28), transparent 24%),
    linear-gradient(120deg, #0d4f97, #06366b 55%, #0b5192);
  border-bottom: 3px solid #082d55;
  box-shadow: 0 2px 0 rgba(255, 255, 255, .15) inset;
}
.site-header::before {
  content: "";
  position: absolute; inset: 0;
  opacity: .18;
  pointer-events: none;
  background-image:
    linear-gradient(135deg, transparent 25%, rgba(255,255,255,.22) 25%, rgba(255,255,255,.22) 26%, transparent 26%),
    linear-gradient(45deg, transparent 74%, rgba(255,255,255,.12) 74%, rgba(255,255,255,.12) 75%, transparent 75%);
  background-size: 80px 80px;
}
.site-topbar .retro-container,
.site-header .retro-container {
  width: min(calc(100% - 28px), 1500px);
}
.site-header__inner {
  min-height: 50px;
  padding-block: 3px;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(150px, 190px) minmax(120px, 155px) minmax(0, 1fr);
  grid-template-areas: "branding meter navigation";
  align-items: center;
  column-gap: 10px;
}
.site-branding {
  grid-area: branding;
  min-width: 0;
  position: relative;
  z-index: 3;
  overflow: hidden;
}
.custom-logo-link {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
}
.custom-logo {
  display: block;
  max-width: 100%;
  max-height: 34px;
  width: auto;
  object-fit: contain;
  object-position: left center;
}
.site-title {
  margin: 0;
  font-weight: 800;
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  line-height: 1;
  letter-spacing: -.025em;
  text-shadow: 0 2px 0 rgba(0,0,0,.22);
}
.site-title a { color: #fff; text-decoration: none; }
.site-description { display: none; }

.server-meter {
  grid-area: meter;
  width: 100%;
  min-width: 0;
  justify-self: stretch;
}
.server-meter__labels { display: none; }
.server-meter__track {
  height: 18px;
  padding: 2px;
  background: rgba(0, 22, 48, .7);
  border: 1px solid rgba(0,0,0,.55);
  border-radius: 4px;
  box-shadow: inset 0 1px 3px rgba(0,0,0,.35);
}
.server-meter__fill {
  min-width: 42px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(#2e6fae, #1b4f86);
  border-radius: 2px;
  font-size: .58rem;
  line-height: 1;
  font-weight: 700;
  white-space: nowrap;
  text-shadow: 0 1px 1px #000;
  transition: width .3s ease;
}

.primary-navigation {
  grid-area: navigation;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  justify-self: stretch;
}
.menu-toggle {
  display: none;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 4px;
  padding: .45rem .65rem;
  color: #fff;
  background: #061f3f;
  cursor: pointer;
}
.primary-navigation ul {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.28) transparent;
  list-style: none;
  margin: 0;
  padding: 1px 0 3px;
}
.primary-navigation ul::-webkit-scrollbar { height: 4px; }
.primary-navigation ul::-webkit-scrollbar-thumb { background: rgba(255,255,255,.28); border-radius: 4px; }
.primary-navigation li {
  flex: 0 0 auto;
  min-width: 0;
  margin: 0;
}
.primary-navigation a {
  display: flex;
  align-items: center;
  min-height: 27px;
  padding: .28rem .48rem;
  border: 1px solid rgba(0, 18, 40, .38);
  border-radius: 4px;
  color: #b8d4ee;
  background: rgba(2, 30, 61, .78);
  font-weight: 800;
  font-size: .64rem;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.primary-navigation .current-menu-item > a,
.primary-navigation .current_page_item > a,
.primary-navigation a:hover,
.primary-navigation a:focus { color: #fff; background: #041b37; }

.site-main { padding: 20px 0 46px; min-height: 65vh; }
.retro-notice {
  margin-bottom: 8px;
  padding: 14px 16px;
  color: #173d0d;
  background: var(--retro-success-bg);
  border: 1px solid var(--retro-success-line);
  box-shadow: var(--retro-shadow);
}
.retro-panel {
  margin: 0 0 18px;
  background: var(--retro-panel);
  border: 1px solid var(--retro-line);
  border-radius: var(--retro-radius) var(--retro-radius) 0 0;
  overflow: hidden;
  box-shadow: var(--retro-shadow);
}
.retro-panel__header {
  display: flex; align-items: center; gap: 8px;
  min-height: 48px;
  padding: 10px 14px;
  color: #fff;
  background: linear-gradient(#24588a, #0c2e52);
  border-bottom: 1px solid #071b31;
}
.retro-panel__header::before {
  content: "i";
  flex: 0 0 20px;
  width: 20px; height: 20px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(#55b7e8, #1370aa);
  font-size: .8rem; font-weight: 800;
  box-shadow: 0 0 0 1px rgba(255,255,255,.28) inset;
}
.retro-panel--forum .retro-panel__header::before,
.retro-panel--content .retro-panel__header::before { display: none; }
.retro-panel__title { margin: 0; font-size: 1.05rem; line-height: 1.25; color: inherit; }
.retro-panel__body { padding: 22px 28px; }
.retro-panel__body > :first-child { margin-top: 0; }
.retro-panel__body > :last-child { margin-bottom: 0; }
.retro-updates { margin: 0; padding-left: 1.45rem; }
.retro-updates li { padding: .15rem 0; }
.retro-updates__meta { display: inline; color: var(--retro-muted); font-size: .85rem; }
.retro-empty { color: var(--retro-muted); }

.entry-header { margin-bottom: 1rem; }
.entry-title { margin: 0; color: #12375b; font-size: clamp(1.5rem, 3vw, 2.25rem); line-height: 1.18; }
.entry-meta { margin-top: .4rem; color: var(--retro-muted); font-size: .88rem; }
.entry-content::after { content: ""; display: table; clear: both; }
.entry-content pre, .entry-content code { max-width: 100%; overflow: auto; }
.entry-content blockquote { margin-left: 0; padding: .75rem 1rem; border-left: 4px solid var(--retro-blue-600); background: #f4f8fc; }
.wp-block-button__link, .retro-button,
input[type="submit"], button[type="submit"] {
  display: inline-block;
  border: 1px solid #082c52;
  border-radius: 4px;
  padding: .62rem .9rem;
  color: #fff;
  background: linear-gradient(#2c6ca8, #164b80);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.wp-block-button__link:hover, .retro-button:hover,
input[type="submit"]:hover, button[type="submit"]:hover { color: #fff; background: #0a3560; text-decoration: none; }

.post-navigation, .posts-navigation { margin-top: 18px; }
.nav-links { display: flex; justify-content: space-between; gap: 16px; }

.comments-area { margin-top: 20px; }
.comment-list { list-style: none; padding: 0; }
.comment-body { margin-bottom: 12px; padding: 14px; border: 1px solid var(--retro-line); background: #f8fafc; }
.comment-meta { font-size: .86rem; }
textarea, input[type="text"], input[type="email"], input[type="url"], input[type="search"], input[type="password"], select {
  max-width: 100%;
  border: 1px solid #aebdcb;
  border-radius: 3px;
  padding: .6rem .65rem;
  background: #fff;
}
textarea { width: 100%; }

.site-footer {
  color: #b8d2eb;
  background: #061f3f;
  border-top: 4px solid #0f4a82;
}
.site-footer__inner {
  min-height: 82px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding-block: 18px;
}
.site-footer a { color: #fff; }
.footer-navigation ul { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; margin: 0; padding: 0; }

@media (max-width: 980px) {
  .site-topbar__inner { flex-direction: column; align-items: flex-start; padding: 6px 0; }
  .site-topbar__left, .top-navigation ul, .topbar-account { flex-wrap: wrap; gap: 10px; }
  .site-header__inner {
    min-height: 48px;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "branding navigation";
    gap: 8px 12px;
  }
  .custom-logo { max-height: 32px; }
  .server-meter { display: none; }
  .primary-navigation {
    width: auto;
    justify-self: end;
  }
  .menu-toggle { display: inline-flex; }
  .primary-navigation ul {
    display: none;
    position: absolute;
    top: calc(100% + 1px); right: 14px; left: 14px;
    z-index: 50;
    padding: 10px;
    background: #061f3f;
    border: 1px solid #173f69;
    box-shadow: 0 10px 30px rgba(0,0,0,.25);
  }
  .primary-navigation.is-open ul { display: grid; }
  .primary-navigation.is-open a {
    width: 100%;
    min-height: 38px;
    white-space: normal;
  }
}
@media (max-width: 640px) {
  body { font-size: 14px; }
  .retro-container { width: min(calc(100% - 16px), var(--retro-container)); }
  .site-header__inner { gap: 7px 9px; }
  .custom-logo { max-height: 30px; }
  .site-description { display: none; }
  .site-topbar__left, .top-navigation ul, .topbar-account { gap: 8px; }
  .retro-panel__body { padding: 17px 14px; }
  .site-footer__inner, .nav-links { flex-direction: column; align-items: flex-start; }
}
