/*
Theme Name:   Fagron Run
Theme URI:    https://fagronrun.com
Author:       Fagron
Description:  Jasny motyw pod aplikację Fagron Run. Białe tło, akcent #e43733.
Version:      2.0.0
Requires at least: 6.0
Requires PHP: 8.1
License:      GNU General Public License v2 or later
Text Domain:  fagron-run
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@500;700&display=swap');

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ── Baza ── */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: #1a1a1a;
  background: #f4f4f6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ── Layout ── */
#page { display: flex; flex-direction: column; min-height: 100vh; }
#content { flex: 1; }
#primary { width: 100%; }
main#main { width: 100%; padding: 0; background: transparent; }

/* Usuń domyślne style WP */
article.page, article.post {
  background: transparent; border: none;
  box-shadow: none; padding: 0; margin: 0;
}
.entry-header { display: none; }
.entry-content {
  padding: 0; background: transparent;
  max-width: 100%; color: #1a1a1a;
}
.wp-block-group, .wp-block-column, .wp-block-columns {
  background: transparent;
}

/* ── Header ── */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  position: sticky; top: 0; z-index: 1000;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; max-width: 1200px; margin: 0 auto; height: 56px;
}
.site-branding { display: flex; align-items: center; gap: 10px; }

.fr-header-logo {
  width: 34px; height: 34px;
  background: #e43733;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.fr-header-logo-icon {
  font-size: 1rem; font-weight: 900; color: #fff;
  font-family: 'Inter', sans-serif;
}
.site-title { font-size: .95rem; font-weight: 800; letter-spacing: -.02em; margin: 0; line-height: 1; }
.site-title a { color: #1a1a1a; text-decoration: none; }
.site-title a span { color: #e43733; }
.site-description { font-size: .65rem; color: #888; margin-top: 2px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }

.main-navigation ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.main-navigation ul li a {
  display: block; padding: 7px 14px;
  color: #555; text-decoration: none;
  font-size: .82rem; font-weight: 600;
  border-radius: 8px; transition: all .15s;
}
.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item > a {
  color: #e43733; background: #fbeaea;
}

/* ── Footer ── */
.site-footer {
  background: #fff; border-top: 1px solid #e8e8e8;
  padding: 20px 24px; text-align: center;
  font-size: .75rem; color: #999;
}
.site-footer a { color: #888; text-decoration: none; }

/* ── Typografia ── */
h1,h2,h3,h4,h5,h6 { color: #0f0f0f; font-weight: 700; line-height: 1.25; }
p { color: #444; margin: 0 0 1rem; }
a { color: #e43733; text-decoration: none; }
a:hover { color: #c02e2b; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #f0f0f0; }
::-webkit-scrollbar-thumb { background: #ddd; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: #e43733; }

/* ── Focus ── */
:focus-visible { outline: 2px solid #e43733; outline-offset: 2px; border-radius: 4px; }

/* ── Admin bar ── */
#wpadminbar { background: #1a1a1a !important; }
