/* ============================================================
   Straipsniai Plugin – Main Stylesheet
   ============================================================ */

/* ── Design Tokens ───────────────────────────────────────── */
:root {
	--str-accent: #c8a96a; /* warm gold */
	--str-accent-dark: #a8893a;
	--str-text: #1c1c1e;
	--str-text-muted: #6e6e73;
	--str-bg: #ffffff;
	--str-bg-soft: #f5f5f7;
	--str-border: #e5e5ea;
	--str-radius: 6px;
	--str-radius-lg: 12px;
	--str-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
	--str-shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.14);
	--str-transition: 0.25s ease;
	--str-font: 'Inter', system-ui, -apple-system, sans-serif;
	--str-max-width: 1280px;
	--str-max-narrow: 820px;
	--str-gutter: clamp(1rem, 4vw, 2.5rem);
}

/* ── Reset / Base ────────────────────────────────────────── */
.str-section,
.str-archive-page,
.str-single-page {
	font-family: var(--str-font);
	color: var(--str-text);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

/* ── Container ───────────────────────────────────────────── */
.str-container {
	max-width: var(--str-max-width);
	margin-inline: auto;
	padding-inline: var(--str-gutter);
}
.str-container--narrow {
	max-width: var(--str-max-narrow);
	margin-inline: auto;
	padding-inline: var(--str-gutter);
}

/* ============================================================
   SECTION HEADER
   ============================================================ */
.str-section__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 1.5rem;
	max-width: var(--str-max-width);
	margin-inline: auto;
}

.str-section__title {
	font-size: clamp(1.25rem, 2.5vw, 1.875rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	margin: 0;
	color: var(--str-text);
}

/* ============================================================
   SLIDER NAV BUTTONS
   ============================================================ */
.str-slider-nav {
	display: flex;
	gap: 0.5rem;
}

.str-slider-prev,
.str-slider-next {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border: 1px solid var(--str-border);
	border-radius: 50%;
	background: var(--str-bg);
	color: var(--str-text);
	cursor: pointer;
	transition:
		background var(--str-transition),
		border-color var(--str-transition),
		color var(--str-transition);
}

.str-slider-prev:hover,
.str-slider-next:hover {
	background: var(--str-text);
	border-color: var(--str-text);
	color: #fff;
}

.str-slider-prev:disabled,
.str-slider-next:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

/* ============================================================
   SWIPER / SLIDER
   ============================================================ */
.str-slider-container {
	padding-block: 3rem;
}

.str-swiper {
	overflow: visible !important;
}

.str-swiper .swiper-wrapper {
	align-items: stretch;
}

.str-card-wrap {
	height: auto;
}

/* ── Footer "see all" button ── */
.str-slider-footer {
	display: flex;
	justify-content: center;
	margin-top: 2rem;
}

/* ============================================================
   CARD
   ============================================================ */
.str-card {
	display: flex;
	flex-direction: column;
	background: var(--str-bg);
	border: 1px solid var(--str-border);
	border-radius: var(--str-radius-lg);
	overflow: hidden;
	height: 100%;
	transition:
		box-shadow var(--str-transition),
		transform var(--str-transition);
}

.str-card:hover {
	box-shadow: var(--str-shadow-hover);
	transform: translateY(-2px);
}

/* Media */
.str-card__media-link {
	display: block;
	text-decoration: none;
}

.str-card__media {
	position: relative;
	overflow: hidden;
	aspect-ratio: 16/10;
	background: var(--str-bg-soft);
}

.str-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

.str-card:hover .str-card__img {
	transform: scale(1.04);
}

.str-card__img--placeholder {
	background: linear-gradient(135deg, #e9e9e9 0%, #d0d0d0 100%);
}

/* Category chip – hidden placeholder keeps height stable when no category */
.str-card__category {
	min-height: 1.6rem;
	display: flex;
	align-items: center;
}

/* Body */
.str-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 1rem 1.1rem 1.2rem;
	gap: 0.4rem;
}

.str-card__title {
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.35;
	margin: 0;
	letter-spacing: -0.01em;
}

.str-card__title a {
	color: var(--str-text);
	text-decoration: none;
	transition: color var(--str-transition);
}

.str-card__title a:hover {
	color: var(--str-accent);
}

.str-card__excerpt {
	font-size: 0.875rem;
	color: var(--str-text-muted);
	line-height: 1.55;
	margin: 0;
	flex: 1;
}

/* ── Chip ── */
.str-chip {
	display: inline-flex;
	align-items: center;
	padding: 0.2rem 0.65rem;
	background: rgba(200, 169, 106, 0.12);
	color: var(--str-accent-dark);
	border: 1px solid rgba(200, 169, 106, 0.3);
	border-radius: 2rem;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	transition:
		background var(--str-transition),
		color var(--str-transition),
		border-color var(--str-transition);
}

.str-chip:hover {
	background: var(--str-accent);
	color: #fff;
	border-color: var(--str-accent);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.str-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.65rem 1.5rem;
	border-radius: var(--str-radius);
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition:
		background var(--str-transition),
		color var(--str-transition),
		border-color var(--str-transition);
}

.str-btn--outline {
	border: 1.5px solid var(--str-border);
	color: var(--str-text);
	background: transparent;
}

.str-btn--outline:hover {
	border-color: var(--str-text);
	background: var(--str-text);
	color: #fff;
}

.str-btn--accent {
	background: var(--str-accent);
	color: #fff;
	border: 1.5px solid var(--str-accent);
}

.str-btn--accent:hover {
	background: var(--str-accent-dark);
	border-color: var(--str-accent-dark);
}

/* ============================================================
   ARCHIVE PAGE
   ============================================================ */
.str-archive-page {
	padding-block: 3rem 5rem;
}

.str-archive-header {
	margin-bottom: 2rem;
}

.str-archive-header__title {
	font-size: clamp(1.75rem, 4vw, 2.75rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	margin: 0 0 0.5rem;
}

.str-archive-header__desc {
	color: var(--str-text-muted);
	font-size: 1rem;
	margin: 0;
}

/* ── Category filter ── */
.str-cat-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin-bottom: 2rem;
}

.str-cat-filter__item {
	padding: 0.35rem 0.9rem;
	border: 1px solid var(--str-border);
	border-radius: 2rem;
	font-size: 0.82rem;
	font-weight: 500;
	color: var(--str-text-muted);
	text-decoration: none;
	transition:
		background var(--str-transition),
		color var(--str-transition),
		border-color var(--str-transition);
}

.str-cat-filter__item:hover,
.str-cat-filter__item.is-active {
	background: var(--str-text);
	color: #fff;
	border-color: var(--str-text);
}

/* ── Grid ── */
.str-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
	gap: 1.5rem;
}

/* ── Pagination ── */
.str-pagination {
	display: flex;
	justify-content: center;
	margin-top: 3rem;
}

.str-pagination ul {
	display: flex;
	list-style: none;
	gap: 0.35rem;
	margin: 0;
	padding: 0;
}

.str-pagination ul li a,
.str-pagination ul li span {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1px solid var(--str-border);
	border-radius: var(--str-radius);
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--str-text);
	text-decoration: none;
	transition:
		background var(--str-transition),
		border-color var(--str-transition),
		color var(--str-transition);
}

.str-pagination ul li a:hover {
	background: var(--str-text);
	color: #fff;
	border-color: var(--str-text);
}

.str-pagination ul li .current {
	background: var(--str-accent);
	color: #fff;
	border-color: var(--str-accent);
}

/* ── No posts ── */
.str-no-posts {
	color: var(--str-text-muted);
	font-style: italic;
	padding: 2rem 0;
}

/* ============================================================
   SINGLE PAGE
   ============================================================ */
.str-single-page {
	padding-block: 2rem 0;
}

/* Breadcrumb */
.str-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.8rem;
	color: var(--str-text-muted);
	margin-bottom: 1.5rem;
}

.str-breadcrumb a {
	color: var(--str-text-muted);
	text-decoration: none;
	transition: color var(--str-transition);
}

.str-breadcrumb a:hover {
	color: var(--str-accent);
}

.str-breadcrumb__sep {
	opacity: 0.5;
}

/* Single header */
.str-single-header {
	margin-bottom: 2rem;
}

.str-single-header__cats {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin-bottom: 0.75rem;
}

.str-cat-badge {
	display: inline-block;
	padding: 0.25rem 0.75rem;
	background: rgba(200, 169, 106, 0.12);
	color: var(--str-accent-dark);
	border-radius: 3px;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	text-decoration: none;
	transition:
		background var(--str-transition),
		color var(--str-transition);
}

.str-cat-badge:hover {
	background: var(--str-accent);
	color: #fff;
}

.str-cat-badge--lg {
	font-size: 0.82rem;
}

.str-single-header__title {
	font-size: clamp(1.6rem, 4vw, 2.8rem);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.03em;
	margin: 0 0 0.75rem;
}

.str-single-header__meta {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.85rem;
	color: var(--str-text-muted);
}

.str-single-header__meta-sep {
	opacity: 0.5;
}

/* Featured image */
.str-single-featured {
	margin-bottom: 2.5rem;
	border-radius: var(--str-radius-lg);
	overflow: hidden;
	aspect-ratio: 16/7;
}

.str-single-featured__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Content */
.str-single-content {
	font-size: 1.05rem;
	line-height: 1.8;
	color: var(--str-text);
}

.str-single-content h2,
.str-single-content h3,
.str-single-content h4 {
	font-weight: 700;
	letter-spacing: -0.02em;
	margin-top: 2rem;
	margin-bottom: 0.75rem;
}

.str-single-content h2 {
	font-size: 1.4rem;
}
.str-single-content h3 {
	font-size: 1.15rem;
}

.str-single-content p {
	margin: 0 0 1.25rem;
	padding: 0 !important;
}

.str-single-content a {
	color: var(--str-accent-dark);
	text-decoration: underline;
}

.str-single-content a:hover {
	color: var(--str-accent);
}

.str-single-content ol,
.str-single-content ul {
	padding-left: 1.5rem;
	margin-bottom: 1.25rem;
}

.str-single-content li {
	margin-bottom: 0.35rem;
}

.str-single-content blockquote {
	border-left: 3px solid var(--str-accent);
	padding-left: 1.25rem;
	color: var(--str-text-muted);
	font-style: italic;
	margin: 1.5rem 0;
}

.str-single-content img {
	max-width: 100%;
	height: auto;
	border-radius: var(--str-radius);
}

/* Tags footer */
.str-single-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--str-border);
}

/* Related divider */
.str-related-divider {
	height: 1px;
	background: var(--str-border);
	margin-bottom: 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
	.str-grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 480px) {
	.str-grid {
		grid-template-columns: 1fr;
	}

	.str-section__header {
		flex-wrap: wrap;
		gap: 0.75rem;
	}
}
