/*
Theme Name: Lumina
Theme URI: https://example.com/lumina
Author: Klaudek Studio
Author URI: https://example.com
Description: Premium, lekki motyw WordPress z rozbudowanym panelem Customizer. Wzorowany na Astra – szybki, elastyczny, przyjazny dla SEO.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lumina
Tags: custom-colors, custom-logo, custom-menu, featured-images, full-width-template, sticky-post, theme-options, two-columns, right-sidebar, left-sidebar, blog, portfolio, news
*/

/* =============================================
   CSS CUSTOM PROPERTIES (ustawiane dynamicznie)
   ============================================= */
:root {
  --lm-color-primary:      #2563EB;
  --lm-color-secondary:    #64748B;
  --lm-color-accent:       #F59E0B;
  --lm-color-text:         #1E293B;
  --lm-color-text-light:   #64748B;
  --lm-color-bg:           #FFFFFF;
  --lm-color-bg-alt:       #F8FAFC;
  --lm-color-border:       #E2E8F0;
  --lm-color-heading:      #0F172A;

  --lm-font-body:          'Inter', sans-serif;
  --lm-font-headings:      'Poppins', sans-serif;
  --lm-font-size-base:     16px;
  --lm-line-height:        1.7;

  --lm-container-width:    1200px;
  --lm-container-padding:  20px;

  --lm-header-height:      70px;
  --lm-header-bg:          #FFFFFF;
  --lm-header-text:        #1E293B;
  --lm-header-shadow:      0 1px 3px rgba(0,0,0,.08);

  --lm-nav-link-color:     #1E293B;
  --lm-nav-link-hover:     #2563EB;
  --lm-nav-dropdown-bg:    #FFFFFF;

  --lm-btn-bg:             #2563EB;
  --lm-btn-text:           #FFFFFF;
  --lm-btn-hover-bg:       #1D4ED8;
  --lm-btn-radius:         6px;
  --lm-btn-padding-v:      10px;
  --lm-btn-padding-h:      22px;
  --lm-btn-font-size:      15px;

  --lm-footer-bg:          #0F172A;
  --lm-footer-text:        #CBD5E1;
  --lm-footer-link:        #94A3B8;
  --lm-footer-link-hover:  #FFFFFF;
  --lm-footer-heading:     #FFFFFF;
  --lm-footer-border:      rgba(255,255,255,.08);

  --lm-sidebar-width:      300px;
  --lm-content-gap:        30px;
  --lm-card-radius:        10px;
  --lm-card-shadow:        0 2px 12px rgba(0,0,0,.06);
  --lm-transition:         .2s ease;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: var(--lm-font-size-base); scroll-behavior: smooth; }

body {
  font-family: var(--lm-font-body);
  font-size: 1rem;
  line-height: var(--lm-line-height);
  color: var(--lm-color-text);
  background-color: var(--lm-color-bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--lm-color-primary); text-decoration: none; transition: color var(--lm-transition); }
a:hover { color: var(--lm-btn-hover-bg); }
ul, ol { padding-left: 1.5rem; }

h1,h2,h3,h4,h5,h6 {
  font-family: var(--lm-font-headings);
  color: var(--lm-color-heading);
  line-height: 1.3;
  font-weight: 700;
  margin-bottom: .5em;
}
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.7rem); }
h4 { font-size: 1.2rem; }
h5 { font-size: 1rem; }

p { margin-bottom: 1rem; }

input, textarea, select, button {
  font-family: inherit;
  font-size: inherit;
}

/* =============================================
   LAYOUT
   ============================================= */
.lm-container {
  width: 100%;
  max-width: var(--lm-container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--lm-container-padding);
  padding-right: var(--lm-container-padding);
}

.lm-site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.lm-site-main { flex: 1; }

/* Content + Sidebar */
.lm-content-area {
  display: grid;
  gap: var(--lm-content-gap);
  padding: 50px 0;
}
.lm-content-area.has-sidebar-right  { grid-template-columns: 1fr var(--lm-sidebar-width); }
.lm-content-area.has-sidebar-left   { grid-template-columns: var(--lm-sidebar-width) 1fr; }
.lm-content-area.no-sidebar         { grid-template-columns: 1fr; }

/* Full-width page template */
.page-template-full-width .lm-content-area { padding: 0; }

/* =============================================
   HEADER
   ============================================= */
#lm-site-header {
  position: relative;
  z-index: 1000;
  background: var(--lm-header-bg);
  box-shadow: var(--lm-header-shadow);
  transition: background var(--lm-transition), box-shadow var(--lm-transition);
}

#lm-site-header.is-sticky {
  position: sticky;
  top: 0;
}

#lm-site-header.is-transparent {
  position: absolute;
  width: 100%;
  background: transparent;
  box-shadow: none;
}

#lm-site-header.is-transparent.scrolled {
  position: fixed;
  background: var(--lm-header-bg);
  box-shadow: var(--lm-header-shadow);
}

/* Header Layout 1 — logo left, nav right */
.lm-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--lm-header-height);
  gap: 24px;
}

/* Header Layout 2 — centered logo, nav below */
.lm-header-layout-2 .lm-header-inner { flex-direction: column; padding-top: 16px; }
.lm-header-layout-2 .lm-site-branding { text-align: center; }
.lm-header-layout-2 .lm-header-nav-wrap { width: 100%; }
.lm-header-layout-2 .lm-nav-primary { justify-content: center; }

/* Header Layout 3 — split: nav left, logo center, actions right */
.lm-header-layout-3 .lm-header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.lm-header-layout-3 .lm-site-branding { text-align: center; order: 2; }
.lm-header-layout-3 .lm-header-nav-wrap { order: 1; }
.lm-header-layout-3 .lm-header-actions { order: 3; justify-content: flex-end; }

/* Branding */
.lm-site-branding { flex-shrink: 0; }
.lm-site-branding a { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.lm-custom-logo { max-height: 50px; width: auto; }

.lm-site-title {
  font-family: var(--lm-font-headings);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--lm-header-text);
  margin: 0;
  line-height: 1;
}
.lm-site-title a { color: inherit; }
.lm-site-description {
  font-size: .75rem;
  color: var(--lm-color-text-light);
  margin: 0;
}

/* Header actions */
.lm-header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Search toggle */
.lm-search-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--lm-nav-link-color);
  padding: 6px;
  border-radius: 4px;
  transition: color var(--lm-transition);
  display: flex;
  align-items: center;
}
.lm-search-toggle:hover { color: var(--lm-color-primary); }
.lm-search-toggle svg { width: 18px; height: 18px; }

.lm-search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15,23,42,.85);
  align-items: center;
  justify-content: center;
}
.lm-search-overlay.is-active { display: flex; }
.lm-search-overlay form {
  width: 90%;
  max-width: 600px;
  position: relative;
}
.lm-search-overlay input[type="search"] {
  width: 100%;
  padding: 18px 60px 18px 24px;
  font-size: 1.2rem;
  border: none;
  border-radius: 50px;
  outline: none;
}
.lm-search-overlay button[type="submit"] {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--lm-color-primary);
}
.lm-search-close {
  position: absolute;
  top: 20px;
  right: 20px;
  color: #fff;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
}

/* =============================================
   NAVIGATION
   ============================================= */
.lm-nav-primary {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 4px;
}

.lm-nav-primary > li { position: relative; }

.lm-nav-primary > li > a {
  display: block;
  padding: 10px 14px;
  color: var(--lm-nav-link-color);
  font-weight: 500;
  font-size: .925rem;
  border-radius: 6px;
  transition: color var(--lm-transition), background var(--lm-transition);
  white-space: nowrap;
}
.lm-nav-primary > li > a:hover,
.lm-nav-primary > li.current-menu-item > a,
.lm-nav-primary > li.current-menu-ancestor > a {
  color: var(--lm-nav-link-hover);
  background: rgba(37,99,235,.06);
}

/* Dropdown */
.lm-nav-primary .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  background: var(--lm-nav-dropdown-bg);
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
  padding: 8px;
  list-style: none;
  margin: 0;
  z-index: 999;
  border-top: 3px solid var(--lm-color-primary);
}
.lm-nav-primary li:hover > .sub-menu { display: block; }
.lm-nav-primary .sub-menu a {
  display: block;
  padding: 9px 14px;
  color: var(--lm-nav-link-color);
  font-size: .9rem;
  border-radius: 6px;
  transition: color var(--lm-transition), background var(--lm-transition);
}
.lm-nav-primary .sub-menu a:hover { color: var(--lm-color-primary); background: var(--lm-color-bg-alt); }

/* Hamburger */
.lm-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--lm-nav-link-color);
  flex-direction: column;
  gap: 5px;
}
.lm-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--lm-transition), opacity var(--lm-transition);
}
.lm-menu-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.lm-menu-toggle.is-active span:nth-child(2) { opacity: 0; }
.lm-menu-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================
   HERO / PAGE BANNER
   ============================================= */
.lm-page-hero {
  background: var(--lm-color-bg-alt);
  padding: 50px 0 40px;
  text-align: center;
  border-bottom: 1px solid var(--lm-color-border);
}
.lm-page-hero h1 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: .5rem; }
.lm-breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: .85rem;
  color: var(--lm-color-text-light);
  flex-wrap: wrap;
}
.lm-breadcrumb a { color: var(--lm-color-primary); }
.lm-breadcrumb .sep { color: var(--lm-color-border); }

/* Front page hero */
.lm-hero-section {
  position: relative;
  background: linear-gradient(135deg, var(--lm-color-primary) 0%, #1e40af 100%);
  color: #fff;
  padding: 100px 0;
  overflow: hidden;
}
.lm-hero-section .lm-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.lm-hero-section .lm-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,.55);
  z-index: 1;
}
.lm-hero-section .lm-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.lm-hero-section h1 { color: #fff; margin-bottom: 1rem; }
.lm-hero-section .lm-hero-lead { font-size: 1.15rem; opacity: .9; margin-bottom: 2rem; }
.lm-hero-section .lm-hero-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* =============================================
   BUTTONS
   ============================================= */
.lm-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--lm-btn-bg);
  color: var(--lm-btn-text);
  border: 2px solid var(--lm-btn-bg);
  border-radius: var(--lm-btn-radius);
  padding: var(--lm-btn-padding-v) var(--lm-btn-padding-h);
  font-size: var(--lm-btn-font-size);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--lm-transition), color var(--lm-transition), border-color var(--lm-transition);
  text-decoration: none;
}
.lm-btn:hover { background: var(--lm-btn-hover-bg); border-color: var(--lm-btn-hover-bg); color: var(--lm-btn-text); }
.lm-btn-outline {
  background: transparent;
  color: var(--lm-btn-bg);
}
.lm-btn-outline:hover { background: var(--lm-btn-bg); color: var(--lm-btn-text); }
.lm-btn-white { background: #fff; color: var(--lm-color-primary); border-color: #fff; }
.lm-btn-white:hover { background: var(--lm-color-bg-alt); color: var(--lm-color-primary); border-color: #fff; }

/* =============================================
   CARDS / BLOG GRID
   ============================================= */
.lm-posts-grid {
  display: grid;
  gap: 28px;
}
.lm-posts-grid.cols-1 { grid-template-columns: 1fr; }
.lm-posts-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.lm-posts-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.lm-posts-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

/* List layout */
.lm-posts-list .lm-card { display: grid; grid-template-columns: 280px 1fr; }
.lm-posts-list .lm-card-thumb { aspect-ratio: 4/3; }

.lm-card {
  background: var(--lm-color-bg);
  border-radius: var(--lm-card-radius);
  box-shadow: var(--lm-card-shadow);
  overflow: hidden;
  transition: transform var(--lm-transition), box-shadow var(--lm-transition);
  border: 1px solid var(--lm-color-border);
}
.lm-card:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0,0,0,.1); }

.lm-card-thumb {
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--lm-color-bg-alt);
}
.lm-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.lm-card:hover .lm-card-thumb img { transform: scale(1.04); }

.lm-card-body { padding: 22px; }

.lm-card-category {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--lm-color-primary);
  background: rgba(37,99,235,.08);
  border-radius: 4px;
  padding: 3px 9px;
  margin-bottom: 10px;
}
.lm-card-title {
  font-size: 1.05rem;
  margin-bottom: 10px;
  line-height: 1.4;
}
.lm-card-title a { color: var(--lm-color-heading); }
.lm-card-title a:hover { color: var(--lm-color-primary); }
.lm-card-excerpt { font-size: .9rem; color: var(--lm-color-text-light); margin-bottom: 14px; }

.lm-card-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: .8rem;
  color: var(--lm-color-text-light);
  flex-wrap: wrap;
}
.lm-card-meta a { color: inherit; }
.lm-card-meta a:hover { color: var(--lm-color-primary); }
.lm-card-meta .sep { opacity: .4; }

.lm-card-read-more { margin-top: 16px; }

/* =============================================
   SINGLE POST
   ============================================= */
.lm-single-header { margin-bottom: 32px; }
.lm-single-header .lm-card-meta { margin-bottom: 12px; }
.lm-entry-title { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: .5rem; }
.lm-featured-image {
  border-radius: var(--lm-card-radius);
  overflow: hidden;
  margin-bottom: 36px;
}
.lm-featured-image img { width: 100%; }

.lm-entry-content {
  font-size: 1.0625rem;
  line-height: 1.8;
}
.lm-entry-content h2,
.lm-entry-content h3,
.lm-entry-content h4 { margin-top: 2rem; margin-bottom: .75rem; }
.lm-entry-content p { margin-bottom: 1.25rem; }
.lm-entry-content ul,
.lm-entry-content ol { margin-bottom: 1.25rem; }
.lm-entry-content li { margin-bottom: .4rem; }
.lm-entry-content blockquote {
  border-left: 4px solid var(--lm-color-primary);
  margin: 2rem 0;
  padding: 1rem 1.5rem;
  background: var(--lm-color-bg-alt);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--lm-color-text);
}
.lm-entry-content code {
  background: var(--lm-color-bg-alt);
  border: 1px solid var(--lm-color-border);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: .88em;
  font-family: 'Courier New', monospace;
}
.lm-entry-content pre {
  background: #1e293b;
  color: #e2e8f0;
  border-radius: 8px;
  padding: 1.5rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}
.lm-entry-content pre code { background: none; border: none; color: inherit; padding: 0; }

/* Post tags */
.lm-entry-tags { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.lm-entry-tags a {
  background: var(--lm-color-bg-alt);
  border: 1px solid var(--lm-color-border);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: .82rem;
  color: var(--lm-color-text-light);
  transition: all var(--lm-transition);
}
.lm-entry-tags a:hover { background: var(--lm-color-primary); color: #fff; border-color: var(--lm-color-primary); }

/* Author box */
.lm-author-box {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--lm-color-bg-alt);
  border: 1px solid var(--lm-color-border);
  border-radius: var(--lm-card-radius);
  padding: 28px;
  margin-top: 40px;
}
.lm-author-avatar img { border-radius: 50%; width: 80px; height: 80px; flex-shrink: 0; }
.lm-author-info h4 { margin-bottom: 6px; }
.lm-author-bio { font-size: .9rem; color: var(--lm-color-text-light); margin-bottom: 0; }

/* Related posts */
.lm-related-posts { margin-top: 50px; }
.lm-related-posts h3 { margin-bottom: 24px; font-size: 1.3rem; }
.lm-related-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }

/* =============================================
   SIDEBAR
   ============================================= */
.lm-sidebar .widget {
  background: var(--lm-color-bg);
  border: 1px solid var(--lm-color-border);
  border-radius: var(--lm-card-radius);
  padding: 24px;
  margin-bottom: 24px;
}
.lm-sidebar .widget-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--lm-color-heading);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--lm-color-primary);
}
.lm-sidebar ul { list-style: none; padding: 0; margin: 0; }
.lm-sidebar ul li {
  padding: 7px 0;
  border-bottom: 1px solid var(--lm-color-border);
  font-size: .9rem;
}
.lm-sidebar ul li:last-child { border-bottom: none; }
.lm-sidebar ul li a { color: var(--lm-color-text); }
.lm-sidebar ul li a:hover { color: var(--lm-color-primary); }

/* =============================================
   PAGINATION
   ============================================= */
.lm-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 50px;
  flex-wrap: wrap;
}
.lm-pagination .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--lm-color-bg);
  border: 1px solid var(--lm-color-border);
  color: var(--lm-color-text);
  font-size: .9rem;
  font-weight: 500;
  transition: all var(--lm-transition);
}
.lm-pagination .page-numbers:hover { background: var(--lm-color-primary); color: #fff; border-color: var(--lm-color-primary); }
.lm-pagination .page-numbers.current { background: var(--lm-color-primary); color: #fff; border-color: var(--lm-color-primary); }
.lm-pagination .prev, .lm-pagination .next { width: auto; padding: 0 16px; }

/* =============================================
   FOOTER
   ============================================= */
#lm-site-footer {
  background: var(--lm-footer-bg);
  color: var(--lm-footer-text);
}

.lm-footer-widgets {
  padding: 60px 0 40px;
  border-bottom: 1px solid var(--lm-footer-border);
}
.lm-footer-widgets-grid {
  display: grid;
  gap: 40px;
}
.lm-footer-widgets-grid.cols-1 { grid-template-columns: 1fr; }
.lm-footer-widgets-grid.cols-2 { grid-template-columns: repeat(2,1fr); }
.lm-footer-widgets-grid.cols-3 { grid-template-columns: repeat(3,1fr); }
.lm-footer-widgets-grid.cols-4 { grid-template-columns: repeat(4,1fr); }

.lm-footer-widgets .widget-title {
  font-family: var(--lm-font-headings);
  font-size: 1rem;
  font-weight: 700;
  color: var(--lm-footer-heading);
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.lm-footer-widgets ul { list-style: none; padding: 0; margin: 0; }
.lm-footer-widgets ul li { margin-bottom: 9px; }
.lm-footer-widgets ul li a { color: var(--lm-footer-link); font-size: .9rem; }
.lm-footer-widgets ul li a:hover { color: var(--lm-footer-link-hover); }
.lm-footer-widgets p { color: var(--lm-footer-text); font-size: .9rem; }
.lm-footer-widgets a { color: var(--lm-footer-link); }
.lm-footer-widgets a:hover { color: var(--lm-footer-link-hover); }

.lm-footer-bottom {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.lm-footer-bottom p { margin: 0; font-size: .85rem; color: var(--lm-footer-text); }
.lm-footer-bottom a { color: var(--lm-footer-link); }

.lm-footer-bottom-nav {
  display: flex;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.lm-footer-bottom-nav a { font-size: .85rem; color: var(--lm-footer-link); }
.lm-footer-bottom-nav a:hover { color: var(--lm-footer-link-hover); }

/* =============================================
   FORMS
   ============================================= */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="tel"],
input[type="password"],
textarea,
select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--lm-color-border);
  border-radius: 6px;
  background: var(--lm-color-bg);
  color: var(--lm-color-text);
  font-size: .95rem;
  transition: border-color var(--lm-transition), box-shadow var(--lm-transition);
  outline: none;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--lm-color-primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

/* =============================================
   COMMENTS
   ============================================= */
.lm-comments-area { margin-top: 50px; }
.lm-comments-area h2 { font-size: 1.3rem; margin-bottom: 28px; }
.comment-list { list-style: none; padding: 0; margin: 0; }
.comment {
  padding: 20px 0;
  border-bottom: 1px solid var(--lm-color-border);
}
.comment-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.comment-meta img { border-radius: 50%; }
.comment-author .fn { font-weight: 600; color: var(--lm-color-heading); }
.comment-metadata { font-size: .82rem; color: var(--lm-color-text-light); }
.reply a { font-size: .82rem; color: var(--lm-color-primary); font-weight: 500; }
.children { padding-left: 40px; list-style: none; }
.comment-respond { margin-top: 40px; }
.comment-respond h3 { font-size: 1.2rem; margin-bottom: 24px; }
.comment-form p { margin-bottom: 16px; }
.comment-form label { display: block; font-size: .9rem; font-weight: 500; margin-bottom: 5px; }
.comment-form input[type="submit"] { width: auto; }

/* =============================================
   ALERTS & NOTICES
   ============================================= */
.lm-notice {
  padding: 14px 18px;
  border-radius: 8px;
  border-left: 4px solid;
  margin-bottom: 20px;
  font-size: .95rem;
}
.lm-notice-info    { background: #eff6ff; border-color: #3b82f6; color: #1e40af; }
.lm-notice-success { background: #f0fdf4; border-color: #22c55e; color: #15803d; }
.lm-notice-warning { background: #fffbeb; border-color: #f59e0b; color: #92400e; }
.lm-notice-error   { background: #fef2f2; border-color: #ef4444; color: #991b1b; }

/* =============================================
   UTILITY
   ============================================= */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.alignleft  { float: left; margin-right: 1.5rem; margin-bottom: 1rem; }
.alignright { float: right; margin-left: 1.5rem; margin-bottom: 1rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; margin-bottom: 1rem; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .8rem; color: var(--lm-color-text-light); text-align: center; margin-top: 6px; }

/* Skeleton loader */
.lm-skeleton {
  background: linear-gradient(90deg, var(--lm-color-bg-alt) 25%, var(--lm-color-border) 50%, var(--lm-color-bg-alt) 75%);
  background-size: 200% 100%;
  animation: lm-skeleton 1.4s infinite;
  border-radius: 4px;
}
@keyframes lm-skeleton { to { background-position: -200% 0; } }

/* Scroll to top */
#lm-scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: var(--lm-color-primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(37,99,235,.35);
  transition: opacity var(--lm-transition), transform var(--lm-transition);
  z-index: 500;
}
#lm-scroll-top.visible { display: flex; }
#lm-scroll-top:hover { transform: translateY(-2px); }
#lm-scroll-top svg { width: 18px; height: 18px; }

/* =============================================
   FEATURED BLOCK
   ============================================= */
.lm-featured-block { padding: 40px 0; }

.lm-featured-inner {
  height: 440px;
  display: grid;
  grid-template-columns: 3fr 2fr;
  border-radius: var(--lm-card-radius);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,.1);
}

/* Lewy — duży artykuł */
.lm-featured-main {
  position: relative;
  background: #1e293b center/cover no-repeat;
  overflow: hidden;
}
.lm-featured-main::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5,15,30,.92) 0%, rgba(5,15,30,.4) 55%, transparent 100%);
  transition: opacity .3s;
}
.lm-featured-main:hover::after { opacity: .85; }
.lm-featured-main-link {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px 28px 26px;
  text-decoration: none;
}
.lm-featured-cat {
  display: inline-block;
  background: var(--lm-color-primary);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  border-radius: 4px;
  padding: 3px 10px;
  margin-bottom: 10px;
  align-self: flex-start;
}
.lm-featured-main-title {
  color: #fff;
  font-size: clamp(1.05rem, 1.8vw, 1.45rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
}
.lm-featured-main-excerpt {
  color: rgba(255,255,255,.78);
  font-size: .875rem;
  line-height: 1.6;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.lm-featured-main-meta {
  font-size: .76rem;
  color: rgba(255,255,255,.55);
  display: flex;
  gap: 8px;
}
.lm-feat-sep { opacity: .4; }

/* Prawy — 3 małe artykuły */
.lm-featured-side {
  display: flex;
  flex-direction: column;
  background: var(--lm-color-bg);
  border-left: 1px solid var(--lm-color-border);
}
.lm-featured-side-item {
  flex: 1;
  display: flex;
  border-bottom: 1px solid var(--lm-color-border);
  overflow: hidden;
  text-decoration: none;
  transition: background var(--lm-transition);
}
.lm-featured-side-item:last-child { border-bottom: none; }
.lm-featured-side-item:hover { background: var(--lm-color-bg-alt); }
.lm-featured-side-thumb {
  width: 110px;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--lm-color-bg-alt);
}
.lm-featured-side-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s;
}
.lm-featured-side-item:hover .lm-featured-side-thumb img { transform: scale(1.07); }
.lm-featured-no-thumb { width:100%; height:100%; background: linear-gradient(135deg,var(--lm-color-bg-alt),var(--lm-color-border)); }
.lm-featured-side-body {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  flex: 1;
  min-width: 0;
}
.lm-featured-side-cat {
  font-size: .67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--lm-color-primary);
}
.lm-featured-side-title {
  font-size: .88rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--lm-color-heading);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  transition: color var(--lm-transition);
}
.lm-featured-side-item:hover .lm-featured-side-title { color: var(--lm-color-primary); }
.lm-featured-side-meta { font-size: .73rem; color: var(--lm-color-text-light); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .lm-posts-grid.cols-4 { grid-template-columns: repeat(2,1fr); }
  .lm-related-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 768px) {
  .lm-content-area.has-sidebar-right,
  .lm-content-area.has-sidebar-left {
    grid-template-columns: 1fr;
  }
  .lm-sidebar-left { order: 2; }
}

@media (max-width: 768px) {
  .lm-menu-toggle { display: flex; }
  .lm-header-nav-wrap {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--lm-header-bg);
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
    padding: 12px 0;
    z-index: 999;
  }
  .lm-header-nav-wrap.is-open { display: block; }
  .lm-nav-primary { flex-direction: column; align-items: stretch; gap: 2px; padding: 0 16px; }
  .lm-nav-primary > li > a { border-radius: 6px; }
  .lm-nav-primary .sub-menu {
    position: static;
    box-shadow: none;
    border: none;
    border-top: none;
    padding-left: 12px;
    border-radius: 0;
    background: var(--lm-color-bg-alt);
    margin: 4px 0;
    border-radius: 6px;
  }
  .lm-nav-primary li:hover > .sub-menu { display: none; }
  .lm-nav-primary li.is-open > .sub-menu { display: block; }

  .lm-header-layout-2 .lm-header-inner,
  .lm-header-layout-3 .lm-header-inner { flex-direction: row; flex-wrap: wrap; }
  .lm-header-layout-3 .lm-header-inner { display: flex; }
  .lm-header-layout-3 .lm-site-branding { order: 0; flex: 1; }
  .lm-header-layout-3 .lm-header-nav-wrap { display: none; order: 4; width: 100%; }
  .lm-header-layout-3 .lm-header-nav-wrap.is-open { display: block; }

  .lm-posts-grid.cols-2,
  .lm-posts-grid.cols-3,
  .lm-posts-grid.cols-4 { grid-template-columns: 1fr; }
  .lm-related-grid { grid-template-columns: 1fr; }
  .lm-posts-list .lm-card { grid-template-columns: 1fr; }
  .lm-author-box { flex-direction: column; }
  .lm-footer-widgets-grid.cols-2,
  .lm-footer-widgets-grid.cols-3,
  .lm-footer-widgets-grid.cols-4 { grid-template-columns: 1fr; }
  .lm-footer-bottom { flex-direction: column; text-align: center; }
  .lm-hero-section { padding: 70px 0; }
}

@media (max-width: 480px) {
  :root { --lm-container-padding: 16px; }
  .lm-btn { font-size: .9rem; padding: 9px 18px; }
}

/* Featured block — tablet */
@media (max-width: 900px) {
  .lm-featured-inner {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .lm-featured-main { min-height: 300px; }
  .lm-featured-side { flex-direction: row; flex-wrap: wrap; }
  .lm-featured-side-item { flex: 1 1 calc(33.333%); min-width: 180px; border-bottom: none; border-right: 1px solid var(--lm-color-border); }
  .lm-featured-side-item:last-child { border-right: none; }
  .lm-featured-side-thumb { width: 90px; }
}

/* Featured block — mobile */
@media (max-width: 580px) {
  .lm-featured-side { flex-direction: column; }
  .lm-featured-side-item { flex: 1 1 100%; border-right: none; border-bottom: 1px solid var(--lm-color-border); }
  .lm-featured-side-item:last-child { border-bottom: none; }
}
