/* ==========================================================================
   Kobiecie pogaduszki na kawie
   Retro forum theme (XMB-style) — silver background, red title bars,
   bordered panels, classic small Verdana typography.
   Hand-written to match the legacy forum look; targets the existing markup
   (HTML is not modified).
   ========================================================================== */

/* ----- Theme variables ---------------------------------------------------- */
:root {
  --bg-page: #b9b9b9;          /* silver page background           */
  --bg-panel: #ededed;         /* light panel body                 */
  --bg-panel-alt: #e3e3e3;     /* alternate row                    */
  --bg-row: #f6f6f6;           /* lightest row                     */
  --red: #d11f27;              /* title-bar red                    */
  --red-dark: #a3141a;         /* title-bar shadow / border        */
  --red-darker: #7d0e13;
  --border: #808080;           /* panel border                     */
  --border-soft: #c9c9c9;      /* inner cell border                */
  --text: #1d1d1d;
  --link: #9c1419;             /* deep-red links to match theme    */
  --link-hover: #d11f27;
  --gap: 6px;                  /* gap between stacked panels        */
  --pad: 12px;                 /* horizontal panel padding          */
}

/* ----- Base --------------------------------------------------------------- */
* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0 auto;
  max-width: 1200px;
  padding: 14px 10px 24px;
  background: var(--bg-page);
  color: var(--text);
  font-family: Verdana, Geneva, Tahoma, Arial, sans-serif;
  font-size: 12px;
  line-height: 1.55;
}

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; }

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

p { margin: 0 0 10px; }

ul, ol { margin: 0 0 12px; padding-left: 22px; }
li { margin: 2px 0; }

em { font-style: italic; }

/* Generic shared "title bar" look reused across the theme */
.is-bar,
main > section > h2,
main > main > section > h2,
main > main > h1,
.about-header h1,
.about-section h2,
.contact-header h1,
.contact-form-section h2,
.contact-info-box h2,
.contact-map-section h2,
.contact-widget h2,
.blog-header h1,
.blog-post h2,
.blog-header h2,
.policy-content > h1,
.policy-section h2,
.recent-posts-slider h2,
.popular-posts h2,
.comments-section h2,
.social-share h3,
.author-bio h3,
.author-hero h1,
.author-topics h2,
.author-featured h2,
.author-approach h2,
.author-currently h2,
.sidebar-widget h2,
.sidebar-widget h3,
.sidebar-section h3 {
  background: linear-gradient(180deg, #e22a30 0%, var(--red) 45%, var(--red-dark) 100%);
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: .2px;
  margin: 0 calc(var(--pad) * -1) var(--pad);
  padding: 5px var(--pad);
  border-bottom: 1px solid var(--red-darker);
  text-shadow: 0 1px 0 rgba(0,0,0,.25);
}

/* ==========================================================================
   Header + navigation
   ========================================================================== */
header {
  background: linear-gradient(180deg, #d7d7d7, #c4c4c4);
  border: 1px solid var(--border);
  border-bottom-color: #555;
  margin-bottom: var(--gap);
}

.header-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #111;
}
.logo img { width: 34px; height: 34px; }

.site-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: bold;
  color: #111;
}

.search-box {
  margin-left: auto;
  display: flex;
  align-items: stretch;
}
.search-box input[type="search"] {
  border: 1px solid #7d7d7d;
  border-right: 0;
  padding: 3px 6px;
  font: 12px Verdana, Arial, sans-serif;
  background: #fff;
  min-width: 150px;
}
.search-box button {
  border: 1px solid var(--red-dark);
  background: linear-gradient(180deg, #e22a30, var(--red));
  color: #fff;
  padding: 0 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
}
.search-box button:hover { background: var(--red-dark); }

/* Red navigation bar spanning the full width under the title row */
.main-nav {
  flex-basis: 100%;
  order: 9;
  background: linear-gradient(180deg, #e22a30, var(--red), var(--red-dark));
  margin: 6px -10px -8px;
  border-top: 1px solid var(--red-darker);
}
.main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}
.main-nav li { margin: 0; }
.main-nav a {
  display: block;
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  padding: 6px 14px;
  border-right: 1px solid rgba(255,255,255,.18);
}
.main-nav a:hover,
.main-nav a.active {
  background: rgba(0,0,0,.22);
  text-decoration: none;
}

/* Hamburger toggle — hidden on wide screens */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 4px;
}
.mobile-menu-toggle span {
  width: 24px; height: 3px; background: #333; display: block;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero-section {
  position: relative;
  border: 1px solid var(--border);
  margin-bottom: var(--gap);
  overflow: hidden;
  background: #000;
}
.hero-image {
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
}
/* Solid red title bar + dark subtitle strip across the bottom of the image —
   stays readable over any photo (a translucent scrim washed out on bright shots) */
.hero-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
}
.hero-overlay h1 {
  margin: 0;
  padding: 7px var(--pad);
  font-size: 19px;
  font-weight: bold;
  color: #fff;
  background: linear-gradient(180deg, #e22a30, var(--red) 60%, var(--red-dark));
  border-top: 1px solid var(--red-darker);
  border-bottom: 0;
  text-shadow: 0 1px 1px rgba(0,0,0,.4);
}
.hero-subtitle {
  margin: 0;
  padding: 6px var(--pad);
  background: rgba(0,0,0,.72);
  color: #fff;
  font-size: 12px;
}

/* ==========================================================================
   Main content panels
   ========================================================================== */
main {
  display: block;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  padding: 0 var(--pad) var(--pad);
  margin-bottom: var(--gap);
}
/* the markup nests a second <main>; flatten it */
main main {
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
}

main h1 {
  font-size: 15px;
}
main > main > h1,
main > h1 {
  margin: 0 calc(var(--pad) * -1) var(--pad);
}

main section {
  background: #f4f4f4;
  border: 1px solid #b9b9b9;
  padding: 0 var(--pad) var(--pad);
  margin: 0 0 var(--gap);
}

main h2 { font-size: 13px; margin-top: 0; }

/* Sub-headings inside content — lighter inset bar */
main h3,
.team-member-role,
.policy-section h3 {
  font-size: 12px;
  font-weight: bold;
  color: var(--red-darker);
  background: #dcdcdc;
  border-left: 4px solid var(--red);
  margin: 12px calc(var(--pad) * -1) 10px;
  padding: 4px 10px;
}

main img {
  border: 1px solid #999;
  background: #fff;
  padding: 3px;
  display: block;
  margin: 4px 0 12px;
}

/* Article-page title bar (scoped to single-<main> article pages so the
   nested-<main> homepage is left unchanged) */
body > main > h1 {
  background: linear-gradient(180deg, #e22a30 0%, var(--red) 45%, var(--red-dark) 100%);
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  margin: 0 calc(var(--pad) * -1) var(--pad);
  padding: 7px var(--pad);
  border-bottom: 1px solid var(--red-darker);
  text-shadow: 0 1px 0 rgba(0,0,0,.25);
}

/* Pull-quotes inside articles */
main blockquote {
  margin: 4px 0 12px;
  padding: 8px 12px;
  background: #dcdcdc;
  border-left: 4px solid var(--red);
  font-style: italic;
  color: #333;
}

/* ==========================================================================
   Tables — classic red header, zebra rows
   ========================================================================== */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 4px 0 14px;
  background: #fff;
  border: 1px solid var(--border);
  font-size: 12px;
}
thead th {
  background: linear-gradient(180deg, #e22a30, var(--red), var(--red-dark));
  color: #fff;
  text-align: left;
  padding: 6px 8px;
  border: 1px solid var(--red-dark);
  text-shadow: 0 1px 0 rgba(0,0,0,.25);
}
td {
  padding: 5px 8px;
  border: 1px solid var(--border-soft);
  vertical-align: top;
}
tbody tr:nth-child(odd) td { background: var(--bg-row); }
tbody tr:nth-child(even) td { background: var(--bg-panel-alt); }

/* ==========================================================================
   Asides (homepage) — share / slider / popular / comments / author
   ========================================================================== */
.social-share,
.recent-posts-slider,
.popular-posts,
.comments-section,
.author-bio {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  padding: 0 var(--pad) var(--pad);
  margin-bottom: var(--gap);
}
.social-share-aside,
.recent-posts-aside,
.popular-posts-aside,
.comments-aside,
.author-aside { display: block; }

/* Share buttons */
.share-buttons { display: flex; flex-wrap: wrap; gap: 6px; }
.share-btn {
  display: inline-block;
  padding: 5px 12px;
  color: #fff;
  font-weight: bold;
  border: 1px solid rgba(0,0,0,.3);
}
.share-btn:hover { text-decoration: none; filter: brightness(1.08); }
.share-btn.twitter { background: #1d1d1d; }
.share-btn.facebook { background: #1877f2; }
.share-btn.reddit { background: #ff4500; }
.share-btn.linkedin { background: #0a66c2; }

/* Recent posts slider */
.slider-container { overflow: hidden; border: 1px solid var(--border-soft); background: #fff; }
.slider-track { display: flex; transition: transform .3s ease; }
.slider-slide { flex: 0 0 100%; min-width: 100%; padding: 10px; }
.slider-slide img { width: 100%; height: 200px; object-fit: cover; border: 1px solid #999; }
.slider-slide h3 { all: unset; display: block; font-weight: bold; font-size: 13px; color: var(--red-darker); margin: 8px 0 0; }
.slider-dots { display: flex; gap: 6px; justify-content: center; padding: 8px 0 2px; }
.dot {
  width: 12px; height: 12px; border-radius: 50%;
  border: 1px solid var(--red-dark); background: #fff; cursor: pointer; padding: 0;
}
.dot.active { background: var(--red); }

/* Popular posts list */
.popular-post-item {
  display: flex;
  gap: 10px;
  border: 1px solid var(--border-soft);
  background: #fff;
  padding: 8px;
  margin-bottom: 6px;
}
.popular-post-item img { width: 120px; height: 80px; object-fit: cover; border: 1px solid #999; flex: 0 0 auto; }
.popular-post-content h3 { all: unset; display: block; font-weight: bold; font-size: 13px; color: var(--red-darker); }
.read-more { color: var(--link); font-weight: bold; }

/* Comments */
.comments-toggle { display: flex; align-items: center; justify-content: space-between; }
.comments-toggle h2 { flex: 1; }
.toggle-btn { background: none; border: 0; cursor: pointer; color: #fff; padding: 2px 6px; }
.comment-form-container { padding-top: 6px; }

/* ==========================================================================
   Forms — contact / comment / newsletter
   ========================================================================== */
.contact-form,
.comment-form,
.newsletter-form { display: block; }

.form-row { display: flex; gap: 12px; flex-wrap: wrap; }
.form-group { margin-bottom: 10px; flex: 1 1 220px; }
label { display: block; font-weight: bold; margin-bottom: 3px; }

input, textarea, select {
  font: 12px Verdana, Arial, sans-serif;
  border: 1px solid #7d7d7d;
  background: #fff;
  padding: 5px 6px;
  width: 100%;
  max-width: 100%;
}
textarea { min-height: 120px; resize: vertical; }

button,
.submit-btn,
.pagination-btn,
.pagination-number,
.contact-button,
.newsletter-form button {
  font: bold 12px Verdana, Arial, sans-serif;
  color: #fff;
  background: linear-gradient(180deg, #e22a30, var(--red));
  border: 1px solid var(--red-dark);
  padding: 6px 14px;
  cursor: pointer;
}
button:hover,
.submit-btn:hover,
.contact-button:hover,
.pagination-number:hover { background: var(--red-dark); color: #fff; text-decoration: none; }

.contact-button { display: inline-block; }
.newsletter-form { display: flex; gap: 0; }
.newsletter-form input { border-right: 0; }

/* ==========================================================================
   Page layouts — stack everything single-column (forum style)
   ========================================================================== */
.about-page-main,
.about-content-wrapper,
.contact-page-main,
.contact-content-wrapper,
.blog-page-wrapper,
.policy-page-main { display: block; }

.about-sidebar,
.blog-sidebar,
.contact-sidebar,
.author-sidebar { display: block; margin-top: var(--gap); }

/* About */
.about-header,
.about-section,
.contact-header,
.contact-form-section,
.contact-info-box,
.contact-map-section,
.contact-widget,
.blog-header,
.blog-post,
.sidebar-widget,
.author-hero,
.author-topics,
.author-featured,
.author-approach,
.author-currently,
.sidebar-section,
.policy-content {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  padding: 0 var(--pad) var(--pad);
  margin-bottom: var(--gap);
}

/* Author bio block (shared on about/home) */
.author-bio,
.about-author-section .author-bio {
  display: block;
}
.author-photo,
.author-hero-photo {
  border: 1px solid #999;
  background: #fff;
  padding: 3px;
  float: left;
  width: 140px;
  margin: 0 12px 8px 0;
}
.author-details, .author-hero-content { overflow: hidden; }
.author-links, .author-social-links { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.social-link {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 10px; background: linear-gradient(180deg, #e22a30, var(--red));
  color: #fff; font-weight: bold; border: 1px solid var(--red-dark);
}
.social-link:hover { background: var(--red-dark); text-decoration: none; }
.author-tagline { font-weight: bold; color: var(--red-darker); }
.author-approach-quote {
  margin: 0 0 10px; padding: 8px 12px; background: #dcdcdc;
  border-left: 4px solid var(--red); font-style: italic;
}
.author-facts dt { font-weight: bold; color: var(--red-darker); margin-top: 8px; }
.author-facts dd { margin: 0 0 6px; }
.topic-tags, .featured-articles-grid { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.topic-tag {
  background: #fff; border: 1px solid var(--red-dark); color: var(--red-darker);
  padding: 4px 10px; font-weight: bold;
}
.featured-article-card {
  flex: 1 1 240px; background: #fff; border: 1px solid var(--border-soft); padding: 8px;
}
.featured-article-card img { width: 100%; height: 150px; object-fit: cover; border: 1px solid #999; }
.featured-article-card h3 { all: unset; display: block; font-weight: bold; color: var(--red-darker); margin: 6px 0; font-size: 13px; }
.article-category, .article-meta { font-size: 11px; color: #555; }

/* Team members */
.team-members { display: block; }
.team-member {
  border: 1px solid var(--border-soft); background: #fff; padding: 8px; margin-bottom: 6px;
}
.team-member-role { margin: 0 -8px 6px; }
.team-member-bio { margin: 0; }

/* Contact details */
.contact-details, .contact-detail-item, .contact-item { margin-bottom: 8px; }
.map-container iframe, .map-container { width: 100%; border: 1px solid #999; }

/* ==========================================================================
   Blog list
   ========================================================================== */
.blog-post.featured { border-color: var(--red-dark); border-width: 2px; }
.featured-badge {
  display: inline-block; background: var(--red); color: #fff; font-weight: bold;
  padding: 2px 8px; font-size: 11px; margin-bottom: 6px;
}
.post-image, .post-image-wrapper img { width: 100%; height: 220px; object-fit: cover; border: 1px solid #999; }
.post-meta, .post-details { font-size: 11px; color: #555; margin: 6px 0; }
.post-author, .post-date, .post-read-time { margin-right: 12px; }
.read-more, .post-link { font-weight: bold; }
.sidebar-list, .sidebar-updates { list-style: none; padding: 0; }
.sidebar-list li, .sidebar-updates li {
  border-bottom: 1px dotted #aaa; padding: 5px 0;
}
.update-date { font-weight: bold; color: var(--red-darker); display: block; font-size: 11px; }

/* Pagination */
.pagination-container, .pagination-numbers { display: flex; gap: 4px; align-items: center; justify-content: center; flex-wrap: wrap; }
.pagination-number.active { background: var(--red-dark); cursor: default; }
.pagination-btn:disabled { opacity: .5; cursor: default; }

/* ==========================================================================
   Policy pages
   ========================================================================== */
.policy-meta { font-size: 11px; color: #555; margin-bottom: 10px; }
.policy-section { margin-bottom: 4px; }

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
  background: linear-gradient(180deg, #d7d7d7, #c4c4c4);
  border: 1px solid var(--border);
  border-top-color: #fff;
  margin-top: var(--gap);
}
.footer-container { padding: 12px; }
.footer-content { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.footer-logo { display: flex; align-items: center; gap: 8px; font-weight: bold; }
.footer-logo img { width: 30px; height: 30px; }
.footer-info { flex: 1 1 320px; font-size: 11px; color: #333; }
.footer-datetime { color: #555; }
.footer-nav ul { list-style: none; display: flex; gap: 14px; margin: 0; padding: 0; flex-wrap: wrap; }
.footer-nav a { color: var(--link); font-weight: bold; }

/* ==========================================================================
   Search / newsletter modal (created by inline JS)
   ========================================================================== */
.search-modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.55);
  display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 16px;
}
.search-modal {
  background: var(--bg-panel); border: 2px solid var(--red-dark); max-width: 460px; width: 100%;
}
.search-modal h3 {
  background: linear-gradient(180deg, #e22a30, var(--red), var(--red-dark));
  color: #fff; margin: 0; padding: 8px 12px;
}
.search-modal-icon { text-align: center; font-size: 32px; padding-top: 12px; }
.search-modal p { padding: 0 12px; }
.search-modal-links { display: flex; flex-direction: column; gap: 6px; padding: 0 12px 10px; }
.modal-link {
  display: block; padding: 7px 10px; background: #fff; border: 1px solid var(--border-soft);
  font-weight: bold; color: var(--link);
}
.modal-link:hover { background: #f0f0f0; text-decoration: none; }
.modal-close-btn { margin: 0 12px 14px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 760px) {
  .mobile-menu-toggle { display: flex; margin-left: auto; order: 2; }
  .search-box { order: 3; flex-basis: 100%; margin-left: 0; }
  .search-box input[type="search"] { flex: 1; min-width: 0; }
  .main-nav { display: none; }
  .main-nav.active { display: block; }
  .main-nav ul { flex-direction: column; }
  .main-nav a { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.18); }
  .popular-post-item { flex-direction: column; }
  .popular-post-item img { width: 100%; height: 160px; }
  .author-photo, .author-hero-photo { float: none; width: 140px; margin: 0 0 10px; }
}
