/* ============================================================
   css/blog.css
   Strona: Blog — mp-theme
   Wzorowane na: css/historie-sesji.css
   Wersja: 1.0
   ============================================================ */

/* ── WYSZUKIWARKA ─────────────────────────────────────────── */

.blg-search__wrap {
	position: relative;
	max-width: 400px;
	display:   flex;
	align-items: center;
}

.blg-search__icon {
	position:       absolute;
	left:           14px;
	color:          rgba(26,26,26,.4);
	pointer-events: none;
	flex-shrink:    0;
}

.blg-search__input {
	width:           100%;
	padding:         11px 40px 11px 44px;
	font-family:     'Inter', sans-serif;
	font-size:       14px;
	font-weight:     300;
	color:           #1A1A1A;
	background:      #FAF7F2;
	border:          1px solid #D9D1C7;
	border-radius:   6px;
	outline:         none;
	transition:      border-color .2s ease;
	-webkit-appearance: none;
	appearance:      none;
}

.blg-search__input::placeholder {
	color:   rgba(26,26,26,.4);
	opacity: 1;
}

.blg-search__input:focus {
	border-color: #8B6914;
}

.blg-search__clear {
	position:   absolute;
	right:      12px;
	display:    flex;
	align-items: center;
	color:      rgba(26,26,26,.4);
	transition: color .2s ease;
}

.blg-search__clear:hover {
	color: #1A1A1A;
}

/* ── FILTRY / TAGI ────────────────────────────────────────── */

.blg-cats {
	display:     flex;
	flex-wrap:   wrap;
	gap:         8px;
	align-items: center;
}

.blg-cats__tag {
	display:         inline-block;
	padding:         6px 16px;
	font-family:     'Inter', sans-serif;
	font-size:       11px;
	font-weight:     400;
	letter-spacing:  .1em;
	text-transform:  uppercase;
	color:           rgba(26,26,26,.55);
	background:      transparent;
	border:          1px solid #D9D1C7;
	border-radius:   100px;
	text-decoration: none;
	transition:      border-color .2s ease, color .2s ease;
	white-space:     nowrap;
}

.blg-cats__tag:hover {
	border-color: #8B6914;
	color:        #8B6914;
}

.blg-cats__tag--active {
	border-color: #8B6914;
	color:        #8B6914;
}

/* ── KARTA — uzupełnienie (reszta dziedziczy z his-card) ──── */

.blg-card__footer {
	display:         flex;
	align-items:     center;
	justify-content: space-between;
	margin-top:      auto;
	padding-top:     16px;
	border-top:      1px solid rgba(26,26,26,.08);
}

.blg-card__date {
	font-family:    'Inter', sans-serif;
	font-size:      12px;
	font-weight:    300;
	color:          rgba(26,26,26,.4);
	letter-spacing: .04em;
}

/* ── EMPTY STATE ──────────────────────────────────────────── */

.blg-empty {
	padding:    80px 0;
	text-align: center;
}

.blg-empty__text {
	font-family: 'Inter', sans-serif;
	font-size:   17px;
	font-weight: 300;
	line-height: 1.85;
	color:       rgba(26,26,26,.6);
	margin:      0 0 24px;
}

.blg-empty__link {
	font-family:     'Inter', sans-serif;
	font-size:       11px;
	font-weight:     400;
	letter-spacing:  .14em;
	text-transform:  uppercase;
	color:           #8B6914;
	text-decoration: none;
	opacity:         .7;
	transition:      opacity .2s ease;
}

.blg-empty__link:hover {
	opacity: 1;
}

/* ── PAGINACJA ────────────────────────────────────────────── */

.blg-pagination {
	display:         flex;
	align-items:     center;
	justify-content: center;
	gap:             24px;
	margin-top:      64px;
}

.blg-pagination__btn {
	display:         flex;
	align-items:     center;
	justify-content: center;
	width:           44px;
	height:          44px;
	border:          1px solid #D9D1C7;
	border-radius:   6px;
	color:           rgba(26,26,26,.5);
	text-decoration: none;
	transition:      border-color .2s ease, color .2s ease;
}

.blg-pagination__btn:hover {
	border-color: #8B6914;
	color:        #8B6914;
}

.blg-pagination__info {
	font-family: 'Inter', sans-serif;
	font-size:   13px;
	font-weight: 300;
	color:       rgba(26,26,26,.45);
}

/* ── GRID — licznik wyników ───────────────────────────────── */

.blg-grid__count {
	font-family: 'Inter', sans-serif;
	font-size:   14px;
	font-weight: 300;
	color:       rgba(26,26,26,.5);
	margin:      0 0 40px;
}

/* ── RESPONSYWNOŚĆ ────────────────────────────────────────── */

@media (max-width: 768px) {
	.blg-search__wrap { max-width: 100%; }
	.blg-search__input { min-height: 44px; padding: 13px 40px 13px 44px; }
	.blg-cats__tag { padding: 9px 16px; min-height: 40px; display: inline-flex; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
	.blg-cats__tag,
	.blg-search__input,
	.blg-pagination__btn,
	.his-card__img,
	.his-card__cta {
		transition: none;
	}
}

/* ── HERO BG IMG — nadpisanie dla bloga ──────────────────── */
/* Zdjęcie 1920x1080 musi wypełniać cały kontener */

.blg-hero .his-hero__bg-img {
	position:       absolute;
	inset:          0;
	width:          100%;
	height:         100%;
	object-fit:     cover;
	object-position: center center;
	display:        block;
}

/* ── KARTY — zdjęcie w całości bez przycinania ───────────── */

.blg-grid__list .his-card__img-wrap {
	padding-bottom: 0 !important;
	height:         auto !important;
	position:       static !important;
}

.blg-grid__list .his-card__img {
	position:        static !important;
	width:           100% !important;
	height:          auto !important;
	object-fit:      unset !important;
	object-position: unset !important;
	display:         block !important;
}

/* ── SIATKA — odstępy między kartami ────────────────────── */

.blg-grid__list {
	gap: 48px 32px;
}