/* ===== MARMEL MEDIA — wpisy.css ===== */

/* Kontener siatki lista /wpisy */
.blog-matrix  { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; max-width: 1600px; margin: 0 auto; padding: 0 1.5rem; }
@media (max-width: 900px) { .blog-matrix { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .blog-matrix { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; } }

/* --- Lista wpisow /wpisy --- */
.blog-hero { text-align: center; padding: 6rem 1.5rem 2rem; }
.blog-hero h1 { font-family: 'Bebas Neue', sans-serif; font-size: clamp(3rem, 8vw, 6rem); letter-spacing: 0.05em; margin-bottom: 0.5rem; }
.blog-hero p  { color: var(--text-muted); font-size: 1.1rem; }
.blog-hero + .breadcrumb { max-width: 1600px; margin: 0 auto; padding: 0 1.5rem 1rem; }
.blog-filters { max-width: 1600px; margin: 0 auto; padding: 0 1.5rem 2rem; display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; justify-content: space-between; }
.blog-filters__cats { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.blog-search { display: flex; gap: 0; }
.blog-search input { background: var(--bg-card); border: 1px solid var(--border); border-right: none; border-radius: 20px 0 0 20px; color: var(--text); padding: 0.3rem 1rem; font-size: 0.8rem; width: 180px; outline: none; }
.blog-search input:focus { border-color: rgba(255,255,255,0.3); }
.blog-search button { background: none; border: 1px solid var(--border); border-radius: 0 20px 20px 0; color: var(--text-muted); padding: 0.3rem 0.8rem; font-size: 0.8rem; cursor: pointer; transition: all var(--transition); }
.blog-search button:hover { color: var(--text); border-color: rgba(255,255,255,0.3); }
.blog-filter { background: none; border: 1px solid var(--border); color: var(--text-muted); padding: 0.35rem 1rem; border-radius: 20px; font-size: 0.8rem; cursor: pointer; text-decoration: none; transition: all var(--transition); }
.blog-filter:hover { border-color: rgba(255,255,255,0.3); color: var(--text); }
.blog-filter--active { border-color: rgba(255,255,255,0.5); color: var(--text); background: rgba(255,255,255,0.07); }
.blog-mode-toggle { display: flex; gap: 0.25rem; margin-left: 0.5rem; }
.blog-mode-btn { background: none; border: 1px solid var(--border); color: var(--text-muted); padding: 0.35rem 0.6rem; border-radius: 6px; font-size: 0.85rem; text-decoration: none; transition: all var(--transition); line-height: 1; }
.blog-mode-btn:hover { border-color: rgba(255,255,255,0.3); color: var(--text); }
.blog-mode-btn--active { border-color: rgba(255,255,255,0.5); color: var(--text); background: rgba(255,255,255,0.07); }
.blog-list { max-width: 1600px; margin: 0 auto; padding: 0 1.5rem; display: flex; flex-direction: column; gap: 2rem; }
.blog-lang-notice { background: #1e1e2a; border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; padding: 0.75rem 1.25rem; margin-bottom: 1.5rem; color: #aaa; font-size: 0.9rem; }
.blog-empty { text-align: center; color: var(--text-muted); padding: 4rem 1.5rem; }
.blog-empty--matrix { grid-column: 1 / -1; }
.blog-empty__link { color: var(--text-muted); font-size: 0.85rem; }
.blog-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; transition: transform var(--transition), box-shadow var(--transition); text-decoration: none; color: inherit; }
.blog-card:hover { transform: translateY(-3px); box-shadow: 0 12px 36px rgba(0,0,0,0.3); }
.blog-card__img { width: 220px; flex-shrink: 0; }
.blog-card__img img { width: 100%; height: 100%; object-fit: contain; display: block; background: #0a0a10; }
.blog-card__body { padding: 1.75rem 2rem; display: flex; flex-direction: column; gap: 0.5rem; }
.blog-card__meta { display: flex; gap: 1rem; align-items: center; }
.blog-card__date { color: var(--text-muted); font-size: 0.8rem; letter-spacing: 0.05em; text-transform: uppercase; }
.blog-card__kat { font-size: 0.75rem; background: rgba(255,255,255,0.07); border-radius: 4px; padding: 0.1rem 0.5rem; color: var(--text-muted); }
.blog-card__title { font-size: 1.25rem; font-weight: 600; line-height: 1.35; margin: 0; }
.blog-card__excerpt { color: var(--text-muted); font-size: 0.95rem; line-height: 1.65; flex: 1; }
.blog-card__link { align-self: flex-start; margin-top: 0.75rem; color: var(--text); font-size: 0.9rem; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.2); padding-bottom: 2px; transition: border-color var(--transition), color var(--transition); }
.blog-card__link:hover { color: #fff; border-color: #fff; }
.blog-card__link::after { content: ' \2192'; }
.blog-pager { max-width: 1600px; margin: 3rem auto 5rem; padding: 0 1.5rem; display: flex; justify-content: center; align-items: center; gap: 0.5rem; }
.blog-pager a, .blog-pager span { display: inline-flex; align-items: center; justify-content: center; min-width: 2.2rem; height: 2.2rem; padding: 0 0.5rem; border: 1px solid var(--border); border-radius: 6px; font-size: 0.85rem; text-decoration: none; color: var(--text-muted); transition: all var(--transition); }
.blog-pager a:hover { border-color: rgba(255,255,255,0.3); color: var(--text); }
.blog-pager span { border-color: rgba(255,255,255,0.4); color: var(--text); background: rgba(255,255,255,0.07); }
.blog-pager__dots { border: none; background: none; }
@media (max-width: 600px) {
    .blog-card { flex-direction: column; position: relative; }
    .blog-card__img { width: 100%; max-height: 80vw; }
    .blog-card__body { margin-top: -2.5rem; position: relative; z-index: 1; background: rgba(10,10,20,0.60); border-radius: 0 0 var(--radius) var(--radius); }
    .blog-card__body .blog-card__date,
    .blog-card__body .blog-card__kat,
    .blog-card__body .blog-card__excerpt { color: rgba(255,255,255,0.88); }
}

/* --- Strona posta /wpisy/:slug --- */
.post-hero { text-align: center; padding: 6rem 1.5rem 2rem; max-width: 1600px; margin: 0 auto; }
.post-hero__back { display: inline-block; color: var(--text-muted); font-size: 0.85rem; text-decoration: none; margin-bottom: 2rem; transition: color var(--transition); }
.post-hero__back:hover { color: var(--text); }
.post-hero__back::before { content: '\2190 '; }
.post-hero__meta { display: flex; gap: 1rem; justify-content: center; align-items: center; margin-bottom: 1rem; }
.post-hero__date { color: var(--text-muted); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; }
.post-hero__kat { font-size: 0.75rem; background: rgba(255,255,255,0.07); border-radius: 4px; padding: 0.15rem 0.6rem; color: var(--text-muted); text-decoration: none; }
.post-hero__kat:hover { background: rgba(255,255,255,0.13); color: var(--text); }
.post-hero h1 { font-size: clamp(1.8rem, 5vw, 3rem); font-weight: 700; line-height: 1.25; margin: 0; }
.post-body { max-width: 1600px; margin: 0 auto; padding: 2.5rem 1.5rem 5rem; }
.post-body__img { float: left; width: 340px; max-width: 45%; margin: 0 2.5rem 1.5rem 0; border-radius: var(--radius); overflow: hidden; }
.post-body__img img { width: 100%; object-fit: contain; display: block; }
.post-ai-label { font-size: 0.7rem; color: var(--text-muted); text-align: center; padding: 0.3rem 0; opacity: 0.6; }
.post-body::after { content: ''; display: table; clear: both; }
.post-body p  { line-height: 1.8; margin-bottom: 1.25rem; font-size: 1.05rem; }
.post-body b, .post-body strong { font-weight: 600; }
.post-body em, .post-body i { font-style: italic; color: var(--text-muted); }
.post-body a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; transition: color var(--transition); }
.post-body a:hover { color: #fff; }
.post-tag { color: var(--text-muted) !important; text-decoration: none !important; font-size: 0.9em; }
.post-tag:hover { color: #fff !important; }
.post-body h2 { font-size: 1.4rem; font-weight: 700; margin: 2rem 0 1rem; }
.post-body h3 { font-size: 1.15rem; font-weight: 600; margin: 1.5rem 0 0.75rem; }
.post-body ul, .post-body ol { padding-left: 0; margin-bottom: 1.25rem; line-height: 1.8; list-style: none; counter-reset: item; }
.post-body ol > li { counter-increment: item; display: table; margin-bottom: 0.4rem; }
.post-body ol > li::before { content: counter(item) "."; display: table-cell; padding-right: 0.5em; white-space: nowrap; font-weight: 600; }
.post-body ul > li { display: table; margin-bottom: 0.4rem; }
.post-body ul > li::before { content: "•"; display: table-cell; padding-right: 0.5em; }
.post-insta { margin-top: 3rem; padding: 1.5rem 2rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); }
.post-insta__label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 0.75rem; }
.post-insta__text { white-space: pre-wrap; font-size: 0.9rem; line-height: 1.7; color: var(--text-muted); }
.post-insta__copy { margin-top: 1rem; background: none; border: 1px solid var(--border); color: var(--text-muted); padding: 0.4rem 1rem; border-radius: 6px; cursor: pointer; font-size: 0.8rem; transition: all var(--transition); }
.post-insta__copy:hover { border-color: rgba(255,255,255,0.3); color: var(--text); }
.post-social { margin-top: 1.5rem; display: flex; gap: 0.75rem; flex-wrap: wrap; }
.post-social__btn { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.4rem 1rem; border-radius: 6px; font-size: 0.85rem; text-decoration: none; border: 1px solid var(--border); color: var(--text-muted); transition: all var(--transition); }
.post-social__btn:hover { color: var(--text); border-color: rgba(255,255,255,0.3); }
.post-social__btn--insta svg, .post-social__btn--fb svg { width: 16px; height: 16px; flex-shrink: 0; }
.post-nav { max-width: 1600px; margin: 0 auto; padding: 0 1.5rem 4rem; display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: center; border-top: 1px solid var(--border); padding-top: 2rem; }
.post-nav__prev { text-align: left; }
.post-nav__next { text-align: right; }
.post-nav__list { text-align: center; }
.post-nav a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; transition: color var(--transition); display: inline-block; }
.post-nav a:hover { color: var(--text); }
.post-nav__prev a::before { content: '\2190 '; }
.post-nav__next a::after { content: ' \2192'; }
.post-nav__label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 0.25rem; }
.post-nav__title { font-size: 0.85rem; }

/* wpisy/post.php */
.post-ai-caption { font-size: 0.7rem; color: var(--text-muted); text-align: center; padding: 0.3rem 0; opacity: 0.6; }
