/*
Theme Name: OVERPRINT
Theme URI: https://overprint.com.pl
Author: OVERMEDIA
Author URI: https://overmedia.pl
Description: Motyw sklepu z wydrukami 3D w stylistyce OVERMEDIA. Wymaga wtyczki OVERPRINT Core i WooCommerce.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: overprint
*/

/* Układ strony (komponenty i tokeny kolorów dostarcza wtyczka OVERPRINT Core: overprint.css) */
.site-main { min-height: 50vh; }
.entry { max-width: 860px; margin-inline: auto; }
.page-wide .entry { max-width: none; }
.entry-content { font-size: 1.02rem; }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2, .entry-content h3 { margin-top: 1.8em; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; color: var(--muted); }
.entry-content a { color: var(--primary); }
.entry-content a.btn, .entry-content .btn { color: var(--fg); }
.entry-content a.btn-primary, .entry-content a.btn-primary:hover { color: #fff; }
.entry-content a.btn-teal { color: var(--btn-teal-fg); }
.entry-content a.btn-danger { color: var(--danger); }
.entry-content img { border-radius: 12px; }
.entry-content blockquote { border-left: 3px solid var(--primary); padding-left: 16px; color: var(--muted); }
.entry-content table { width: 100%; }
.page-title { margin-bottom: 8px; }
.hentry + .hentry { margin-top: 40px; }
.post-grid .hentry + .hentry, .grid .hentry + .hentry { margin-top: 0; }
.post-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.post-card h2 { font-size: 1.4rem; margin-bottom: 8px; }
.post-meta { font-size: .8rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; font-family: var(--font-display); }

/* logo: pełne logo z Dostosuj → Tożsamość witryny (teraz OVERMEDIA), a bez niego ikona apertury + nazwa OVERPRINT */
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.nav .logo { height: 56px; }
.nav .logo img.site-logo { height: 56px; width: auto; max-width: none; filter: drop-shadow(0 0 14px rgba(224,64,251,.25)); }
@media (max-width: 640px) { .nav .logo img.site-logo { height: 46px; } }
.logo img.site-icon { height: 44px; width: 44px; border-radius: 50%; filter: drop-shadow(0 0 10px rgba(224,64,251,.35)); }
.logo .site-name { font-family: var(--font-display); font-weight: 700; font-size: 1.45rem; letter-spacing: .06em; color: var(--fg-strong); line-height: 1; }
.logo .site-name .accent { color: var(--primary); }
@media (max-width: 640px) { .logo img.site-icon { height: 38px; width: 38px; } .logo .site-name { font-size: 1.2rem; } }

/* nawigacja WordPress (wp_nav_menu) */
.nav-links li { position: relative; }
.nav-links .sub-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 200px; background: var(--card-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 8px; list-style: none; margin: 6px 0 0; z-index: 60; }
.nav-links li:hover > .sub-menu, .nav-links li:focus-within > .sub-menu { display: block; }
.nav-links .sub-menu a { display: block; }
.nav-links .current-menu-item > a, .nav-links .current_page_item > a { color: var(--fg-strong); background: var(--surface-2); }
@media (max-width: 960px) { .nav-links .sub-menu { position: static; border: 0; padding: 0 0 0 14px; background: transparent; display: block; } }
.footer-menu { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: .93rem; color: var(--muted); }

/* strona główna */
.hero-visual .viewer-frame { aspect-ratio: 4 / 3.3; }
.marquee-track span { white-space: nowrap; }

/* formularze WordPress / komentarze / wyszukiwanie */
.search-form { display: flex; gap: 10px; }
.search-form input[type="search"] { flex: 1; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); color: var(--fg); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 10px; left: 10px; z-index: 999; background: var(--card-2); padding: 10px 14px; border-radius: 8px; width: auto; height: auto; clip: auto; }
.wp-block-image img, .alignwide, .alignfull { max-width: 100%; height: auto; }
#wpadminbar { position: fixed; }
.admin-bar .nav { top: 32px; }
@media (max-width: 782px) { .admin-bar .nav { top: 46px; } }

html[data-theme="light"] .nav .logo img.site-logo { filter: none; }

/* ===== Blog ===== */
.post-grid { align-items: stretch; }
.post-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s, border-color .2s, box-shadow .2s; min-width: 0; }
.post-card:hover { transform: translateY(-3px); border-color: rgba(200,27,214,.4); box-shadow: var(--shadow); }
.post-card-thumb { display: block; aspect-ratio: 16/9; background: var(--thumb-bg); overflow: hidden; }
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card-fallback { width: 100%; height: 100%; display: grid; place-items: center; font-family: var(--font-display); font-size: 3rem; font-weight: 700; color: var(--primary); background: linear-gradient(135deg, var(--primary-soft), var(--teal-soft)); }
.post-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card h2 { font-size: 1.12rem; line-height: 1.3; }
.post-card h2 a { color: var(--fg-strong); text-decoration: none; }
.post-card p { margin: 0; font-size: .92rem; flex: 1; }
.post-card-more { font-weight: 600; color: var(--primary); text-decoration: none; font-size: .9rem; }
.post-meta { font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-family: var(--font-display); }
.post-meta a { color: var(--primary); text-decoration: none; }
.breadcrumbs { margin-bottom: 18px; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.post-hero { margin: 0 0 8px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.post-hero img { width: 100%; height: auto; display: block; }
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
@media (max-width: 960px) { .post-layout { grid-template-columns: 1fr; } }
.post-aside { position: sticky; top: calc(var(--nav-h) + 20px); }
.post-content { max-width: 72ch; font-size: 1.05rem; line-height: 1.7; }
.post-content h2 { font-size: 1.55rem; margin: 2.2rem 0 .8rem; }
.post-content h3 { font-size: 1.2rem; margin: 1.6rem 0 .6rem; }
.post-content p { margin: 0 0 1.1rem; }
.post-content ul, .post-content ol { margin: 0 0 1.2rem 1.3rem; padding: 0; }
.post-content li { margin-bottom: .4rem; }
.post-content table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.4rem; font-size: .95rem; }
.post-content th, .post-content td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.post-content th { font-family: var(--font-display); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.post-content blockquote { margin: 1.2rem 0; padding: 14px 18px; border-left: 3px solid var(--primary); background: var(--primary-soft); border-radius: 0 10px 10px 0; }
.post-content .op-tip { padding: 14px 18px; border-radius: 12px; background: var(--teal-soft); border: 1px solid rgba(14,156,144,.25); margin: 1.2rem 0; }
.post-content a { color: var(--primary); }
.post-content img { max-width: 100%; height: auto; border-radius: 12px; }
.post-tags { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 6px; }
.post-tags .badge { text-decoration: none; }
.post-aside-product { display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--fg); padding: 8px; border-radius: 10px; border: 1px solid var(--line); }
.post-aside-product img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; flex: none; }
.post-aside-product span { display: flex; flex-direction: column; gap: 2px; font-size: .9rem; min-width: 0; }
.post-aside-product small { color: var(--muted); }
.pagination, .navigation.pagination { margin-top: 32px; }
.pagination .nav-links { display: flex; gap: 6px; flex-wrap: wrap; }
.pagination .page-numbers { display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); text-decoration: none; font-family: var(--font-display); font-size: .9rem; }
.pagination .page-numbers.current { color: var(--fg-strong); background: var(--primary-soft); border-color: rgba(200,27,214,.5); }
