/*
Theme Name: TechWebsite Theme
Theme URI: https://techwebsite.pl
Description: Nowoczesny motyw WordPress dla techwebsite.pl
Version: 2.2.4
Author: Michał
Text Domain: techwebsite-theme
Requires at least: 6.0
Requires PHP: 8.0
License: GPL-2.0-or-later
*/

/* ═══════════════════════════════════════
   CSS VARIABLES
   ═══════════════════════════════════════ */
:root {
	--tw-primary: #0066cc;
	--tw-primary-hover: #0052a3;
	--tw-primary-light: rgba(0,102,204,.08);
	--tw-accent: #10b981;
	--tw-text: #1a1a2e;
	--tw-text-muted: #64748b;
	--tw-text-light: #94a3b8;
	--tw-bg: #f8fafc;
	--tw-bg-muted: #f1f5f9;
	--tw-card-bg: #ffffff;
	--tw-border: #e2e8f0;
	--tw-border-hover: #cbd5e1;
	--tw-font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	--tw-mono: 'JetBrains Mono', ui-monospace, monospace;
	--tw-radius: 8px;
	--tw-radius-sm: 6px;
	--tw-radius-lg: 12px;
	--tw-shadow-sm: 0 1px 2px rgba(0,0,0,.05);
	--tw-shadow-md: 0 4px 12px rgba(0,0,0,.08);
	--tw-shadow-lg: 0 8px 24px rgba(0,0,0,.12);
	--tw-header-h: 60px;
	--tw-sidebar-w: 300px;
	--tw-container-max: 1200px;
}

[data-theme="dark"] {
	--tw-primary: #3388dd;
	--tw-primary-hover: #5599ee;
	--tw-primary-light: rgba(51,136,221,.1);
	--tw-accent: #34d399;
	--tw-text: #e2e8f0;
	--tw-text-muted: #94a3b8;
	--tw-text-light: #64748b;
	--tw-bg: #0a0f1a;
	--tw-bg-muted: #111827;
	--tw-card-bg: #1e293b;
	--tw-border: #1e293b;
	--tw-border-hover: #334155;
	--tw-shadow-sm: 0 1px 2px rgba(0,0,0,.2);
	--tw-shadow-md: 0 4px 12px rgba(0,0,0,.3);
	--tw-shadow-lg: 0 8px 24px rgba(0,0,0,.4);
}

/* ═══════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--tw-header-h) + 24px); -webkit-text-size-adjust: 100%; }
body { font-family: var(--tw-font); font-size: 15px; line-height: 1.7; color: var(--tw-text); background: var(--tw-bg); -webkit-font-smoothing: antialiased; }
a { color: var(--tw-primary); text-decoration: none; transition: color .15s; }
a:hover { color: var(--tw-primary-hover); }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; font-family: inherit; }
ul, ol { list-style: none; padding: 0; margin: 0; }

/* ═══════════════════════════════════════
   UTILITIES
   ═══════════════════════════════════════ */
.tw-container { max-width: var(--tw-container-max); margin: 0 auto; padding: 0 20px; }
.tw-section { padding: 40px 0; }
.tw-card { background: var(--tw-card-bg); border: 1px solid var(--tw-border); border-radius: var(--tw-radius-lg); overflow: hidden; transition: box-shadow .2s, border-color .2s; }
.tw-card:hover { box-shadow: var(--tw-shadow-md); border-color: var(--tw-border-hover); }
.tw-badge { display: inline-block; padding: 3px 10px; font-size: .7rem; font-weight: 600; border-radius: 20px; background: var(--tw-primary-light); color: var(--tw-primary); text-decoration: none; letter-spacing: .02em; text-transform: uppercase; }
.tw-badge:hover { background: var(--tw-primary); color: #fff; }

/* Buttons */
.tw-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 20px; font-size: .8125rem; font-weight: 600; font-family: var(--tw-font); border-radius: var(--tw-radius-sm); border: none; cursor: pointer; text-decoration: none; transition: all .15s; line-height: 1.4; }
.tw-btn--primary { background: var(--tw-primary); color: #fff !important; }
.tw-btn--primary:hover { background: var(--tw-primary-hover); color: #fff !important; }
.tw-btn--secondary { background: var(--tw-bg-muted); color: var(--tw-text); border: 1px solid var(--tw-border); }
.tw-btn--secondary:hover { background: var(--tw-border); }
.tw-btn--sm { padding: 7px 14px; font-size: .75rem; }
.tw-btn--ghost { background: transparent; color: var(--tw-primary); padding: 6px 0; font-weight: 600; font-size: .8125rem; }
.tw-btn--ghost:hover { color: var(--tw-primary-hover); }
.tw-btn--ghost svg { transition: transform .15s; }
.tw-btn--ghost:hover svg { transform: translateX(3px); }

/* Grid */
.tw-grid { display: grid; gap: 24px; }
.tw-grid-2 { grid-template-columns: repeat(2, 1fr); }
.tw-grid-3 { grid-template-columns: repeat(3, 1fr); }
.tw-grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ═══════════════════════════════════════
   HEADER & NAVIGATION
   ═══════════════════════════════════════ */
.site-header { 
    position: sticky; 
    top: 0; 
    z-index: 9999; 
    background: var(--tw-card-bg); 
    border-bottom: 1px solid var(--tw-border); 
    transition: background .3s, box-shadow .3s;
    overflow: visible !important;
}

.site-header.scrolled { 
    box-shadow: var(--tw-shadow-md); 
    backdrop-filter: blur(12px); 
    background: rgba(255,255,255,.92); 
}
[data-theme="dark"] .site-header.scrolled { background: rgba(10,15,26,.92); }

.site-header__inner { 
    display: flex; 
    align-items: center; 
    min-height: var(--tw-header-h); 
    gap: 8px; 
    padding: 6px 0; 
    position: relative;
    flex-direction: row;
}

.reading-progress { position: fixed; top: 0; left: 0; height: 3px; background: var(--tw-primary); z-index: 10002; width: 0; transition: none; }

/* ─── Site Logo ─── */
.site-logo {
	display: flex !important;
	flex-direction: row !important;
	align-items: center !important;
	flex-shrink: 0; 
	position: relative; 
	z-index: 10001;
	gap: 12px;
}

.site-logo.site-logo--logo_and_title {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 12px;
}

.site-logo__image {
	flex-shrink: 0;
}

.site-logo__image img,
.site-logo__image-only img {
	max-height: 60px;
	width: auto;
	display: block;
}

.site-logo__text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.site-logo .site-title {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 800;
	line-height: 1.2;
}

.site-logo .site-title a {
	color: var(--tw-text);
	text-decoration: none;
	transition: color .15s;
}

.site-logo .site-title a:hover {
	color: var(--tw-primary);
}

.site-logo .site-description {
	margin: 0;
	font-size: 0.75rem;
	color: var(--tw-text-muted);
	line-height: 1.3;
	font-weight: 400;
}

.site-logo--logo_only {
	justify-content: flex-start;
}

.site-logo--logo_only .site-logo__image-only {
	flex-shrink: 0;
}

.site-logo--logo_only .site-logo__image-only img {
	max-height: 48px;
}

.site-logo--logo_only .site-logo__text-only {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.site-logo--title_only {
	flex-direction: column;
	align-items: flex-start;
}

.site-logo--title_only .site-logo__text-only {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.site-logo--title_only .site-title {
	font-size: 1.375rem;
}

/* ─── Navigation ─── */
.main-navigation { flex: 1; min-width: 0; }
.main-navigation .primary-menu { display: flex; gap: 2px; align-items: center; flex-wrap: wrap; }
.main-navigation .primary-menu > li { position: relative; }

.main-navigation .primary-menu a { 
    display: flex; 
    align-items: center; 
    gap: 4px; 
    padding: 8px 12px; 
    font-size: .8125rem; 
    font-weight: 500; 
    color: var(--tw-text-muted); 
    border-radius: var(--tw-radius-sm); 
    transition: all .15s; 
    white-space: nowrap; 
}

.main-navigation .primary-menu a:hover,
.main-navigation .primary-menu .current-menu-item > a { 
    color: var(--tw-primary); 
    background: var(--tw-primary-light); 
}

.main-navigation .sub-menu { 
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--tw-card-bg);
    border: 1px solid var(--tw-border);
    border-radius: var(--tw-radius);
    box-shadow: var(--tw-shadow-lg);
    padding: 6px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-navigation .primary-menu > li:hover > .sub-menu,
.menu-item-has-children[data-state="open"] > .sub-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.menu-item-has-children > a .chevron { transition: transform .2s; }
.menu-item-has-children[data-state="open"] > a .chevron {
    transform: rotate(180deg);
}

/* ─── Header Actions ─── */
.header-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; position: relative; z-index: 10001; }
.header-action-btn { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: var(--tw-radius-sm); border: 1px solid var(--tw-border); background: var(--tw-card-bg); color: var(--tw-text-muted); transition: all .15s; }
.header-action-btn:hover { border-color: var(--tw-primary); color: var(--tw-primary); background: var(--tw-primary-light); }
.menu-toggle { display: none; }

/* ═══════════════════════════════════════
   BREADCRUMBS
   ═══════════════════════════════════════ */
.breadcrumbs { background: var(--tw-bg-muted); border-bottom: 1px solid var(--tw-border); }
.breadcrumbs__inner { display: flex; align-items: center; gap: 6px; padding: 10px 0; font-size: .75rem; color: var(--tw-text-muted); flex-wrap: wrap; }
.tw-container.breadcrumbs__inner {
	padding: 10px 0 10px 20px;
}
.breadcrumbs a { color: var(--tw-text-muted); }
.breadcrumbs a:hover { color: var(--tw-primary); }
.breadcrumb-sep { opacity: .4; flex-shrink: 0; }

/* ═══════════════════════════════════════
   LAYOUT: CONTENT + SIDEBAR
   ═══════════════════════════════════════ */
.site-content {
	display: grid;
	grid-template-columns: 1fr var(--tw-sidebar-w);
	gap: 32px;
	align-items: start;
}

.site-content .content-area,
.content-area {
	min-width: 0;
	padding: 0 20px !important;
}

.site-content .sidebar {
	position: sticky;
	top: calc(var(--tw-header-h) + 20px);
}

.site-content:not(.site-content--full) .tw-grid-3 {
	grid-template-columns: repeat(2, 1fr);
}

.site-content--full {
	grid-template-columns: 1fr;
}
.site-content--full .sidebar { display: none; }

/* ═══════════════════════════════════════
   ARCHIVE HEADER
   ═══════════════════════════════════════ */
.archive-header { margin-bottom: 28px; }
.archive-header__title { font-size: 1.75rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: 6px; }
.archive-header__desc { color: var(--tw-text-muted); font-size: .875rem; }

/* ═══════════════════════════════════════
   POST CARDS
   ═══════════════════════════════════════ */
.post-card { display: flex; flex-direction: column; }
.post-card__image { display: block; overflow: hidden; aspect-ratio: 16/10; }
.post-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.post-card:hover .post-card__image img { transform: scale(1.04); }
.post-card__body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.post-categories { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.post-card__title { font-size: .9375rem; font-weight: 700; line-height: 1.35; margin-bottom: 8px; }
.post-card__title a { color: var(--tw-text); }
.post-card__title a:hover { color: var(--tw-primary); }
.post-card__excerpt { font-size: .8125rem; color: var(--tw-text-muted); line-height: 1.6; margin-bottom: 12px; flex: 1; }

.post-card__footer { 
	display: flex; 
	align-items: center; 
	justify-content: space-between; 
	gap: 8px; 
	margin-top: auto; 
	padding-top: 12px; 
	border-top: 1px solid var(--tw-border);
	flex-wrap: nowrap;
}

.post-card__footer .post-meta {
	flex: 1;
	min-width: 0;
	flex-wrap: wrap;
}

/* Post Meta */
.post-meta {
    display: flex;
    align-items: flex-start;
    gap: 1px;
    font-size: .75rem;
    color: var(--tw-text-muted);
    flex-direction: column;
}
.post-meta__item { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.post-meta__item svg { opacity: .6; flex-shrink: 0; }
.post-meta__item--updated { color: var(--tw-accent); }

/* Read More Button - NAJWAŻNIEJSZE STYLE */
.post-card__footer a.post-card__readmore,
.post-card a.post-card__readmore,
a.post-card__readmore {
	display: inline-flex !important;
	align-items: center;
	gap: 4px;
	font-size: .75rem;
	font-weight: 600;
	color: var(--tw-primary) !important;
	text-decoration: none !important;
	border: 1px solid rgba(0, 102, 204, 0.15) !important;
	background: rgba(0, 102, 204, 0.08) !important;
	padding: 4px 8px 2px 10px !important;
	border-radius: 6px !important;
	transition: all .15s;
	white-space: nowrap;
	flex-shrink: 0;
}

.post-card__footer a.post-card__readmore:hover,
.post-card a.post-card__readmore:hover,
a.post-card__readmore:hover {
	color: var(--tw-primary-hover) !important;
	background: rgba(0, 102, 204, 0.12) !important;
	border-color: rgba(0, 102, 204, 0.25) !important;
}

.post-card__readmore svg {
	transition: transform .15s;
	flex-shrink: 0;
}

.post-card__readmore:hover svg {
	transform: translateX(3px);
}

/* ═══════════════════════════════════════
   SINGLE POST
   ═══════════════════════════════════════ */
.single-post-header { margin-bottom: 24px; }
.single-post-title { font-size: 1.75rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; margin-top: 10px; }
.single-post-featured-image { margin-bottom: 28px; border-radius: var(--tw-radius-lg); overflow: hidden; }
.single-post-featured-image img { 
	width: 100%;
	height: 400px;
	object-fit: cover;
}

/* Entry Content */
.entry-content { font-size: .9375rem; line-height: 1.8; color: var(--tw-text); }
.entry-content p { margin-bottom: 1.2em; }
.entry-content h2 { font-size: 1.375rem; font-weight: 700; margin: 2em 0 .75em; padding-bottom: .4em; border-bottom: 1px solid var(--tw-border); letter-spacing: -.01em; }
.entry-content h3 { font-size: 1.15rem; font-weight: 700; margin: 1.6em 0 .6em; }
.entry-content h4 { font-size: 1rem; font-weight: 700; margin: 1.4em 0 .5em; }
.entry-content a { color: var(--tw-primary); text-decoration: underline; text-decoration-color: rgba(0,102,204,.3); text-underline-offset: 2px; }
.entry-content a:hover { text-decoration-color: var(--tw-primary); }

.entry-content ul { list-style: disc; padding-left: 1.5em; margin-bottom: 1.2em; }
.entry-content ol { list-style: decimal; padding-left: 1.5em; margin-bottom: 1.2em; }
.entry-content li { margin-bottom: .4em; }
.entry-content li::marker { color: var(--tw-primary); }
.entry-content ul ul { list-style: circle; margin-top: .4em; margin-bottom: 0; }
.entry-content ol ol { list-style: lower-alpha; margin-top: .4em; margin-bottom: 0; }

.entry-content blockquote { margin: 1.6em 0; padding: 16px 20px; border-left: 4px solid var(--tw-primary); background: var(--tw-bg-muted); border-radius: 0 var(--tw-radius) var(--tw-radius) 0; font-style: italic; color: var(--tw-text-muted); }
.entry-content blockquote p:last-child { margin-bottom: 0; }

.entry-content code { font-family: var(--tw-mono); font-size: .85em; padding: 2px 6px; background: var(--tw-bg-muted); border: 1px solid var(--tw-border); border-radius: 4px; }
.entry-content pre { margin: 1.6em 0; padding: 20px; background: #18181b; color: #e4e4e7; border-radius: var(--tw-radius); overflow-x: auto; font-size: .8125rem; line-height: 1.6; }
.entry-content pre code { background: transparent; border: none; padding: 0; color: inherit; font-size: inherit; }

.entry-content table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: .875rem; }
.entry-content th, .entry-content td { padding: 10px 14px; text-align: left; border: 1px solid var(--tw-border); }
.entry-content th { background: var(--tw-bg-muted); font-weight: 600; font-size: .8125rem; }
.entry-content tr:hover td { background: var(--tw-primary-light); }

.entry-content img { border-radius: var(--tw-radius); margin: 1em 0; }
.entry-content hr { border: none; border-top: 1px solid var(--tw-border); margin: 2em 0; }
.entry-content mark { background: #fef08a; padding: 1px 4px; border-radius: 2px; }
.entry-content kbd { font-family: var(--tw-mono); font-size: .8em; padding: 2px 6px; background: var(--tw-bg-muted); border: 1px solid var(--tw-border); border-bottom-width: 2px; border-radius: 4px; }
.entry-content abbr { text-decoration: underline dotted; cursor: help; }
.entry-content dl { margin: 1.2em 0; }
.entry-content dt { font-weight: 600; margin-top: .8em; }
.entry-content dd { margin-left: 1.5em; color: var(--tw-text-muted); }
.entry-content figure { margin: 1.6em 0; }
.entry-content figcaption { font-size: .75rem; color: var(--tw-text-muted); text-align: center; margin-top: 8px; }

/* ═══════════════════════════════════════
   TABLE OF CONTENTS
   ═══════════════════════════════════════ */
.toc-container { margin-bottom: 28px; }
.toc-card { background: var(--tw-bg-muted); border: 1px solid var(--tw-border); border-radius: var(--tw-radius-lg); overflow: hidden; }
.toc-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 14px 18px; background: transparent; border: none; font-size: .875rem; font-weight: 600; color: var(--tw-text); cursor: pointer; font-family: var(--tw-font); }
.toc-toggle:hover { background: rgba(0,0,0,.03); }
[data-theme="dark"] .toc-toggle:hover { background: rgba(255,255,255,.03); }
.toc-toggle span { display: flex; align-items: center; gap: 8px; }
.toc-chevron { transition: transform .2s; }
.toc-card.open .toc-chevron { transform: rotate(180deg); }
.toc-list { display: none; padding: 0 18px 14px; margin: 0; counter-reset: toc; }
.toc-card.open .toc-list { display: block; }
.toc-list li { padding: 5px 0; font-size: .8125rem; border-left: 2px solid var(--tw-border); padding-left: 12px; transition: border-color .15s; }
.toc-list li.active { border-left-color: var(--tw-primary); }
.toc-list li.active a { color: var(--tw-primary); font-weight: 600; }
.toc-list a { color: var(--tw-text-muted); text-decoration: none; }
.toc-list a:hover { color: var(--tw-primary); }
.toc-list .toc-h3 { padding-left: 28px; }
.toc-list .toc-h4 { padding-left: 44px; }

/* ═══════════════════════════════════════
   POST FOOTER SECTIONS
   ═══════════════════════════════════════ */
.post-tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 24px 0; }
.post-tags a { display: inline-block; padding: 4px 10px; background: var(--tw-bg-muted); color: var(--tw-text-muted); font-size: .75rem; border-radius: 20px; border: 1px solid var(--tw-border); }
.post-tags a:hover { color: var(--tw-primary); border-color: var(--tw-primary); background: var(--tw-primary-light); }

.share-buttons { display: flex; align-items: center; gap: 8px; margin: 24px 0; padding: 16px 0; border-top: 1px solid var(--tw-border); }
.share-buttons__label { font-size: .8125rem; font-weight: 600; color: var(--tw-text-muted); }
.share-btn { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--tw-border); background: var(--tw-card-bg); color: var(--tw-text-muted); transition: all .15s; }
.share-btn:hover { color: #fff; border-color: transparent; }
.share-btn--facebook:hover { background: #1877f2; }
.share-btn--twitter:hover { background: #000; }
.share-btn--linkedin:hover { background: #0a66c2; }
.share-btn--copy:hover { background: var(--tw-primary); }

.author-box { display: flex; gap: 16px; padding: 20px !important; margin: 24px 0; }
.author-box__avatar { flex-shrink: 0; }
.author-box__img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.author-box__label { font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--tw-text-light); }
.author-box__name { font-size: 1rem; font-weight: 700; margin: 2px 0 6px; }
.author-box__name a { color: var(--tw-text); }
.author-box__bio { font-size: .8125rem; color: var(--tw-text-muted); line-height: 1.6; }

.post-navigation { display: grid; grid-template-columns: 1fr 1fr; margin: 32px 0; border-radius: var(--tw-radius-lg); overflow: hidden; background: var(--tw-card-bg); border: 1px solid var(--tw-border); }
.post-nav-link { display: block; padding: 16px; text-decoration: none; transition: background .15s; }
.post-nav-link:hover { background: var(--tw-bg-muted); }
.post-nav-link--next { border-left: 1px solid var(--tw-border); text-align: right; }
.post-nav-label { display: flex; align-items: center; gap: 4px; font-size: .75rem; color: var(--tw-text-muted); margin-bottom: 4px; }
.post-nav-link--next .post-nav-label { justify-content: flex-end; }
.post-nav-title { font-size: .8125rem; font-weight: 600; color: var(--tw-text); display: block; }

.related-posts { margin: 40px 0; }
.section-title { font-size: 1.125rem; font-weight: 700; margin-bottom: 20px; }

/* ═══════════════════════════════════════
   SIDEBAR
   ═══════════════════════════════════════ */
.sidebar .widget { margin-bottom: 20px; padding: 16px; }
.sidebar .widget-title { font-size: .8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--tw-border); }
.sidebar .widget ul { padding: 0 !important; margin: 0 !important; }
.sidebar .widget li { padding: 7px 0; border-bottom: 1px solid var(--tw-border); font-size: .8125rem; }
.sidebar .widget li:last-child { border-bottom: none; }
.sidebar .widget li a { color: var(--tw-text-muted); text-decoration: none; }
.sidebar .widget li a:hover { color: var(--tw-primary); }
.sidebar .widget li ul { margin-left: 12px !important; margin-top: 4px !important; }

/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */
.site-footer { background: var(--tw-card-bg); border-top: 1px solid var(--tw-border); margin-top: 48px; padding: 40px 0 20px; font-size: .8125rem; color: var(--tw-text-muted); }

.footer-widgets {
	display: grid !important;
	grid-template-columns: repeat(4, 1fr) !important;
	gap: 30px;
	align-items: start;
	width: 100%;
	margin-bottom: 32px;
}

.footer-widget-column {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.footer-widget-column .widget-title,
.footer-widget h4,
.footer-widget .wp-block-heading {
	font-size: .9rem;
	font-weight: 700;
	color: var(--tw-text);
	text-transform: uppercase;
	letter-spacing: .05em;
	margin-bottom: 15px;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--tw-primary);
	display: inline-block;
}

.footer-widget-column ul { padding: 0 !important; margin: 0 !important; }
.footer-widget-column li { padding: 4px 0; font-size: .8125rem; }
.footer-widget-column li a { color: var(--tw-text-muted); text-decoration: none; }
.footer-widget-column li a:hover { color: var(--tw-primary); }
.footer-widget-column li ul { margin-left: 10px !important; margin-top: 2px !important; }

.footer-widget,
.wp-block-group,
.ceneoaff-container {
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box;
}

.footer-bottom {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding-top: 20px;
	border-top: 1px solid var(--tw-border);
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
}

.footer-copyright { font-size: .8125rem; color: var(--tw-text-muted); }

.footer-menu {
	display: flex;
	gap: 20px;
	list-style: none !important;
	padding: 0 !important;
	margin: 0 !important;
	max-width: 90%;
}
.footer-menu li { 
	padding: 0 !important; 
	border: none !important;
	width: 90px;
}
.footer-menu li a { color: var(--tw-text-muted); font-size: .8125rem; text-decoration: none; transition: color .15s; }
.footer-menu li a:hover { color: var(--tw-primary); }

.footer-social { display: flex; gap: 8px; }
.footer-social__link { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--tw-bg-muted); color: var(--tw-text-muted); transition: all .15s; }
.footer-social__link:hover { background: var(--tw-primary); color: #fff; }

/* ═══════════════════════════════════════
   FAQ ACCORDION
   ═══════════════════════════════════════ */
.faq-section { margin: 2em 0; }
.faq-section__title { font-size: 1.25rem; font-weight: 700; margin-bottom: 16px; }
.faq-item { background: var(--tw-card-bg); border: 1px solid var(--tw-border); border-radius: var(--tw-radius); margin-bottom: 8px; overflow: hidden; }
.faq-item.tw-anim-in,
.faq-item.tw-anim-in.active {
	padding: 0 40px;
}
.faq-item__question { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; font-weight: 600; font-size: .9375rem; cursor: pointer; color: var(--tw-text); user-select: none; }
.faq-item__question::-webkit-details-marker { display: none; }
.faq-item__icon { transition: transform .2s; flex-shrink: 0; }
.faq-item[open] .faq-item__icon { transform: rotate(180deg); }
.faq-item__answer { padding: 0 18px 16px; font-size: .875rem; color: var(--tw-text-muted); line-height: 1.7; }

/* ═══════════════════════════════════════
   PAGINATION
   ═══════════════════════════════════════ */
.pagination { display: flex; justify-content: center; gap: 4px; margin-top: 32px; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 10px; border-radius: var(--tw-radius-sm); border: 1px solid var(--tw-border); background: var(--tw-card-bg); color: var(--tw-text-muted); font-size: .8125rem; font-weight: 500; text-decoration: none; transition: all .15s; }
.pagination .page-numbers:hover { border-color: var(--tw-primary); color: var(--tw-primary); background: var(--tw-primary-light); }
.pagination .page-numbers.current { background: var(--tw-primary); color: #fff; border-color: var(--tw-primary); }

/* ═══════════════════════════════════════
   SEARCH OVERLAY
   ═══════════════════════════════════════ */
.search-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 10500; display: none; align-items: flex-start; justify-content: center; padding-top: 15vh; backdrop-filter: blur(4px); }
.search-overlay.active { display: flex; }
.search-overlay__inner { background: var(--tw-card-bg); border-radius: var(--tw-radius-lg); padding: 24px; width: 90%; max-width: 500px; box-shadow: var(--tw-shadow-lg); }
.search-overlay__input { width: 100%; padding: 12px 16px; border: 2px solid var(--tw-border); border-radius: var(--tw-radius); font-size: 1rem; font-family: var(--tw-font); background: var(--tw-card-bg); color: var(--tw-text); outline: none; }
.search-overlay__input:focus { border-color: var(--tw-primary); }

/* ═══════════════════════════════════════
   COMMENTS
   ═══════════════════════════════════════ */
.comments-area { margin-top: 32px; }
.comments-title { font-size: 1.125rem; font-weight: 700; margin-bottom: 20px; }
.comment-list { margin-bottom: 24px; }
.comment-list .comment { padding: 16px 0; border-bottom: 1px solid var(--tw-border); }
.comment-list .children { margin-left: 24px; }
.comment-author { font-weight: 600; font-size: .875rem; }
.comment-content { font-size: .875rem; margin-top: 6px; color: var(--tw-text-muted); }
.comment-content p { margin-bottom: .5em; }
.comment-respond label { display: block; font-size: .8125rem; font-weight: 500; margin-bottom: 4px; color: var(--tw-text-muted); }
.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--tw-border); border-radius: var(--tw-radius-sm); font-family: var(--tw-font); font-size: .875rem; background: var(--tw-card-bg); color: var(--tw-text); margin-bottom: 12px; }
.comment-respond .form-submit .submit,
.search-form .search-submit { background: var(--tw-primary); color: #fff; border: none; border-radius: var(--tw-radius-sm); padding: 10px 20px; font-size: .8125rem; font-weight: 600; font-family: var(--tw-font); cursor: pointer; transition: background .15s; }
.comment-respond .form-submit .submit:hover,
.search-form .search-submit:hover { background: var(--tw-primary-hover); }

/* ═══════════════════════════════════════
   SCROLL TO TOP
   ═══════════════════════════════════════ */
.scroll-to-top { position: fixed; bottom: 24px; right: 24px; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: var(--tw-primary); color: #fff; border: none; border-radius: 50%; box-shadow: var(--tw-shadow-md); z-index: 50; opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .2s; }
.scroll-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-to-top:hover { background: var(--tw-primary-hover); transform: scale(1.05); }

/* ═══════════════════════════════════════
   COOKIE CONSENT
   ═══════════════════════════════════════ */
.cookie-consent { position: fixed; bottom: 20px; left: 20px; right: 20px; max-width: 500px; background: var(--tw-card-bg); border: 1px solid var(--tw-border); border-radius: var(--tw-radius-lg); box-shadow: var(--tw-shadow-lg); padding: 18px; z-index: 200; display: none; }
.cookie-consent.visible { display: block; animation: slideUp .3s; }
.cookie-consent__text { font-size: .8125rem; color: var(--tw-text-muted); margin-bottom: 12px; line-height: 1.5; }
.cookie-consent__text strong { color: var(--tw-text); display: block; margin-bottom: 4px; }
.cookie-consent__actions { display: flex; gap: 8px; }

.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 250; }
.toast { background: var(--tw-card-bg); border: 1px solid var(--tw-border); border-radius: var(--tw-radius); padding: 12px 18px; box-shadow: var(--tw-shadow-lg); font-size: .8125rem; animation: slideUp .3s; }

@keyframes slideUp { 
	from { opacity: 0; transform: translateY(12px); } 
	to { opacity: 1; transform: translateY(0); } 
}

/* ═══════════════════════════════════════
   PAGE & 404
   ═══════════════════════════════════════ */
.page-header { text-align: center; margin-bottom: 28px; }
.page-header .entry-title { font-size: 1.75rem; font-weight: 800; letter-spacing: -.02em; }
.page-content .entry-content ul { list-style: disc; padding-left: 1.5em; margin-bottom: 1.2em; }
.page-content .entry-content ol { list-style: decimal; padding-left: 1.5em; margin-bottom: 1.2em; }

.error-404 { text-align: center; padding: 80px 20px; }
.error-404 .error-code { font-size: 6rem; font-weight: 900; background: linear-gradient(135deg, var(--tw-primary), var(--tw-accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.error-404 .error-title { font-size: 1.5rem; font-weight: 700; margin: 12px 0; }
.error-404 .error-desc { color: var(--tw-text-muted); margin-bottom: 24px; }
.error-404 .error-actions { display: flex; gap: 12px; justify-content: center; }

/* ═══════════════════════════════════════
   WOOCOMMERCE OVERRIDES
   ═══════════════════════════════════════ */
.woocommerce-content { padding: 32px 0; }

.woocommerce ul.products li.product {
	background: var(--tw-card-bg);
	border: 1px solid var(--tw-border);
	border-radius: var(--tw-radius-lg);
	overflow: hidden;
	transition: all .2s;
	padding: 0 !important;
}
.woocommerce ul.products li.product:hover { box-shadow: var(--tw-shadow-md); }
.woocommerce ul.products li.product .woocommerce-loop-product__title { padding: 0 16px; font-size: .9375rem; font-weight: 600; }
.woocommerce ul.products li.product .price { padding: 0 16px; font-size: 1rem; }

img.attachment-woocommerce_thumbnail.size-woocommerce_thumbnail {
	width: 100% !important;
	height: 400px !important;
	object-fit: cover;
	object-position: bottom;
	padding: 30px 20px;
}

.woocommerce ul.products li.product .button {
	margin: 20px 0 40px 20px;
}

.product_list_widget {
	display: block;
	max-width: 500px;
}

.product_list_widget img.attachment-woocommerce_thumbnail.size-woocommerce_thumbnail {
	max-height: 180px;
	object-fit: contain;
}

body .woocommerce a.button,
body .woocommerce a.button.alt,
body .woocommerce button.button,
body .woocommerce button.button.alt,
body .woocommerce input.button,
body .woocommerce input.button.alt,
body .woocommerce #respond input#submit,
body .woocommerce #respond input#submit.alt,
body .woocommerce ul.products li.product a.button,
body .woocommerce ul.products li.product a.add_to_cart_button,
body.woocommerce a.button,
body.woocommerce button.button,
body.woocommerce input.button,
body.woocommerce .button,
body.woocommerce-page a.button,
body.woocommerce-page button.button,
body.woocommerce-page input.button {
	background-color: var(--tw-primary) !important;
	color: #fff !important;
	border: none !important;
	border-radius: var(--tw-radius-sm) !important;
	font-family: var(--tw-font) !important;
	font-weight: 600 !important;
	font-size: .8125rem !important;
	padding: 10px 20px !important;
	line-height: 1.5 !important;
	text-decoration: none !important;
	display: inline-block !important;
	cursor: pointer !important;
	transition: background .15s !important;
}
body .woocommerce a.button:hover,
body .woocommerce button.button:hover,
body .woocommerce input.button:hover,
body .woocommerce a.button.alt:hover,
body.woocommerce a.button:hover,
body.woocommerce-page a.button:hover,
body.woocommerce-page button.button:hover {
	background-color: var(--tw-primary-hover) !important;
}

.woocommerce .price { color: var(--tw-primary) !important; font-weight: 700; }
.woocommerce .price del { color: var(--tw-text-muted) !important; opacity: .6; }
.woocommerce .price ins { text-decoration: none; }
.woocommerce .star-rating { color: var(--tw-accent); }
.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info { border-top-color: var(--tw-primary); background: var(--tw-bg-muted); }

.woocommerce .woocommerce-pagination ul.page-numbers li,
.woocommerce-page .woocommerce-pagination ul.page-numbers li {
	border: 0 !important;
	padding: 3px;
}

.woocommerce nav.woocommerce-pagination ul {
	border: 0 !important;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span { border-color: var(--tw-border) !important; background: var(--tw-card-bg) !important; color: var(--tw-text-muted) !important; border-radius: var(--tw-radius-sm) !important; }
.woocommerce nav.woocommerce-pagination ul li span.current { background: var(--tw-primary) !important; color: #fff !important; border-color: var(--tw-primary) !important; }
.woocommerce .quantity .qty { border: 1px solid var(--tw-border); border-radius: var(--tw-radius-sm); padding: 6px 8px; background: var(--tw-card-bg); color: var(--tw-text); }

.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0 !important; margin: 0 0 20px !important; border-bottom: 1px solid var(--tw-border); }
.woocommerce div.product .woocommerce-tabs ul.tabs li { background: transparent !important; border: none !important; margin: 0 !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { padding: 10px 16px !important; font-weight: 500; color: var(--tw-text-muted); }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--tw-primary); border-bottom: 2px solid var(--tw-primary); }

.woocommerce ul.cart_list,
.woocommerce ul.product_list_widget { padding: 0 !important; }
.woocommerce ul.cart_list li,
.woocommerce ul.product_list_widget li { padding: 8px 0 !important; }

/* ═══════════════════════════════════════
   RESPONSIVE - WSZYSTKIE MEDIA QUERIES
   ═══════════════════════════════════════ */

/* Mobile menu - 768px */
@media (max-width: 768px) {
    .menu-toggle { display: flex; z-index: 10001; }

    .main-navigation { 
        display: none;
        position: absolute; 
        top: 100%; 
        left: 0;
        width: 100%;
        background: var(--tw-card-bg);
        border-bottom: 2px solid var(--tw-primary);
        box-shadow: var(--tw-shadow-lg);
        max-height: 80vh;
        overflow-y: auto;
        z-index: 10000;
        padding: 0 0 15px 0;
    }

    .main-navigation[data-state="open"] { 
        display: block !important; 
        animation: slideInMobile 0.2s ease-out;
    }

    .main-navigation .primary-menu { flex-direction: column; padding: 0; gap: 0; }
    
    .main-navigation .primary-menu a { 
        padding: 14px 20px;
        width: 100%;
        font-size: 0.95rem;
        border-radius: 0;
        border-bottom: 1px solid var(--tw-bg-muted);
        white-space: normal;
    }

    .main-navigation .sub-menu { 
        position: static; 
        box-shadow: none; 
        border: none; 
        background: var(--tw-bg-muted);
        padding: 0 0 0 20px;
        margin: 0;
        transform: none;
        transition: none;
        opacity: 1;
        visibility: visible;
        display: none;
        pointer-events: none;
    }

    .main-navigation .primary-menu > li:hover > .sub-menu { display: none; }

    .menu-item-has-children[data-state="open"] > .sub-menu {
        display: block !important;
        pointer-events: auto;
    }

    .menu-item-has-children[data-state="open"] > a .chevron {
        transform: rotate(180deg);
    }
	
	/* Mobile Table Fix */
	table {
		display: block;
		width: 100%;
		max-width: 100%;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		border-collapse: collapse;
	}

	table th,
	table td {
		white-space: nowrap;
	}

	table::-webkit-scrollbar {
		height: 8px;
	}

	table::-webkit-scrollbar-track {
		background: #eee;
		border-radius: 4px;
	}

	table::-webkit-scrollbar-thumb {
		background: #888;
		border-radius: 4px;
	}

	table::-webkit-scrollbar-thumb:hover {
		background: #555;
	}

	table {
		scrollbar-color: #888 #eee;
		scrollbar-width: thin;
	}

	table::after {
		content: "";
		position: absolute;
		right: 0;
		top: 0;
		width: 40px;
		height: 100%;
		pointer-events: none;
		background: linear-gradient(to left, rgba(255,255,255,0.95), rgba(255,255,255,0));
	}
	
	/* Logo responsive */
	.site-logo.site-logo--logo_and_title {
		gap: 8px;
		flex-wrap: wrap;
	}
	
	.site-logo__image img,
	.site-logo__image-only img {
		max-height: 36px;
	}
	
	.site-logo .site-title {
		font-size: 1.125rem;
	}
	
	.site-logo--title_only .site-title {
		font-size: 1.25rem;
	}
	
	.site-logo .site-description {
		font-size: 0.7rem;
	}
	
	/* Footer */
	.footer-bottom {
		flex-direction: column;
		text-align: center;
		gap: 12px;
	}
	.footer-menu { justify-content: center; flex-wrap: wrap; gap: 12px; }
	.footer-social { justify-content: center; }
}

@keyframes slideInMobile {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Post cards - 760px */
@media (max-width: 760px) {
	.site-content:not(.site-content--full) .tw-grid-3 {
		grid-template-columns: repeat(1, 1fr);
	}
	
	.post-card__footer {
		display: flex;
		flex-direction: column;
		align-items: center;
		align-content: space-around;
		justify-content: space-between;
		flex-wrap: nowrap;
		row-gap: 24px;
		margin-top: auto;
		padding-top: 12px;
		border-top: 1px solid var(--tw-border);
	}
	
	.post-card__footer .post-meta {
		width: 100%;
		justify-content: center;
	}
	
	.post-card a.post-card__readmore,
	a.post-card__readmore {
		width: auto;
	}
}

/* Header - 992px */
@media (max-width: 992px) {
	.site-header__inner {
		display: flex;
		min-height: var(--tw-header-h);
		gap: 8px;
		padding: 6px 0;
		flex-direction: column;
	}
	
	.footer-widgets {
		grid-template-columns: repeat(2, 1fr) !important;
	}
}

/* Tablet - 1024px */
@media (max-width: 1024px) {
	.site-content { grid-template-columns: 1fr !important; }
	.site-content .sidebar { position: static; }
	.tw-grid-4 { grid-template-columns: repeat(2, 1fr); }
	.tw-grid-3 { grid-template-columns: repeat(2, 1fr); }
}

/* Small mobile - 640px */
@media (max-width: 640px) {
	.tw-grid-2, .tw-grid-3, .tw-grid-4 { grid-template-columns: 1fr; }
	.post-navigation { grid-template-columns: 1fr; }
	.post-nav-link--next { border-left: none; border-top: 1px solid var(--tw-border); }
	.single-post-title { font-size: 1.375rem; }
	.archive-header__title { font-size: 1.375rem; }
	.author-box { flex-direction: column; text-align: center; }
	.share-buttons { flex-wrap: wrap; }
}

/* Footer - 576px */
@media (max-width: 576px) {
	.footer-widgets {
		grid-template-columns: 1fr !important;
	}
}

/* Extra small - 480px */
@media (max-width: 480px) {
	.site-logo.site-logo--logo_and_title {
		flex-direction: column;
		align-items: center;
		gap: 6px;
		text-align: center;
	}
	
	.site-logo__text {
		text-align: center;
		align-items: center;
	}
	
	.site-logo .site-title {
		font-size: 1rem;
	}
	
	.site-logo__image img {
		max-height: 32px;
	}
}

/* ═══════════════════════════════════════
   ACCESSIBILITY & UTILITIES
   ═══════════════════════════════════════ */
:focus-visible { outline: 2px solid var(--tw-primary); outline-offset: 2px; }
a:focus:not(:focus-visible) { outline: none; }

.skip-link { position: absolute; top: -40px; left: 0; background: var(--tw-primary); color: #fff; padding: 8px 16px; z-index: 999; }
.skip-link:focus { top: 0; }

.tw-pre-anim { opacity: 0; transform: translateY(12px); }
.tw-anim-in { opacity: 1; transform: translateY(0); transition: opacity .4s ease, transform .4s ease; }