/*
Theme Name: Pionier-SEM
Theme URI: https://pionier-sem.pl
Author: Pionier-SEM
Author URI: https://pionier-sem.pl
Description: Minimalistyczny motyw WordPress dla branży maszyn budowlanych i wynajmu sprzętu. Zbudowany na Tailwind CSS z naciskiem na SEO i Core Web Vitals.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pionier-sem
Tags: blog, custom-logo, custom-menu, featured-images, full-width-template, responsive-layout, right-sidebar
*/

/* ── Rozszerzenia Tailwind (niestandardowe klasy nie pokryte przez CDN) ── */

/* Scrollbar site-wide */
html { scroll-behavior: smooth; }
* { box-sizing: border-box; }

/* Sticky header shadow on scroll – dodawana przez JS */
#site-header.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,0.45);
}

/* Mobile nav open state */
#mobile-menu.open { display: flex; }

/* Hero overlay gradient */
.hero-overlay {
    background: linear-gradient(135deg, rgba(26,26,26,0.82) 0%, rgba(26,26,26,0.45) 60%, transparent 100%);
}

/* Post card hover lift */
.post-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.13);
}

/* Thumbnail zoom */
.post-card .thumb-wrap { overflow: hidden; }
.post-card .thumb-wrap img {
    transition: transform 0.4s ease;
}
.post-card:hover .thumb-wrap img {
    transform: scale(1.06);
}

/* Yellow underline on nav hover */
.nav-link {
    position: relative;
    padding-bottom: 2px;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 0; height: 2px;
    background: #FFB400;
    transition: width 0.22s ease;
}
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

/* Skip link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    z-index: 9999;
    padding: 8px 20px;
    background: #FFB400;
    color: #1A1A1A;
    font-weight: 700;
    border-radius: 4px;
    transition: top 0.15s;
    text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* Ticker animation (news bar) */
@keyframes ticker {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
.ticker-content { animation: ticker 28s linear infinite; }

/* CTA button pulse */
@keyframes ctaPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,180,0,0.45); }
    50%       { box-shadow: 0 0 0 10px rgba(255,180,0,0); }
}
.btn-cta-pulse { animation: ctaPulse 2.4s ease infinite; }

/* Sidebar widget border accent */
.sidebar-widget {
    border-left: 3px solid #FFB400;
}

/* WordPress default classes */
.alignleft  { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter{ display: block; margin: 0 auto 1rem; }
img.alignleft, img.alignright, img.aligncenter { max-width: 100%; height: auto; }
.wp-caption-text { font-size: 0.8rem; color: #666; text-align: center; margin-top: 4px; }

/* Responsive tables */
.wp-block-table, table { width: 100%; overflow-x: auto; display: block; }

/* Print */
@media print {
    #site-header, #site-footer, .sidebar, .news-ticker { display: none; }
}
