/**
 * Custom Blocks Styles
 * Consolidated styles for all custom Gutenberg blocks
 */

/* CSS Custom Properties for Newspaper Cards */
:root {
	--nub-card-aspect-ratio: 2/3;
	--nub-card-border-radius: 2px;
	--nub-card-transition: transform 0.3s ease, box-shadow 0.3s ease;

	/* Transition */
	--nub-transition: 0.3s ease;

	/* Retro image filter */
	--nub-retro-filter: sepia(20%) contrast(1.1) brightness(0.95);

	/* Shadow scale */
	--nub-shadow-xs: 0 2px 4px rgba(30, 26, 20, 0.08);
	--nub-shadow-sm: 0 4px 8px rgba(30, 26, 20, 0.12);
	--nub-shadow-md: 0 6px 18px rgba(30, 26, 20, 0.18);
	--nub-shadow-lg: 0 10px 22px rgba(30, 26, 20, 0.18);
	--nub-shadow-xl: 0 14px 28px rgba(30, 26, 20, 0.22);

	/* Card-specific aliases */
	--nub-card-shadow: var(--nub-shadow-sm);
	--nub-card-shadow-hover: var(--nub-shadow-lg);

	/* Semantic status colors */
	--nub-status-success-bg: #d4edda;
	--nub-status-success-text: #155724;
	--nub-status-warning-bg: #fff3cd;
	--nub-status-warning-text: #856404;
	--nub-status-error-bg: #f8d7da;
	--nub-status-error-text: #721c24;
}

/* Enhanced Card Styles */
.nub-newspaper-card,
.nub-featured-newspaper,
.nub-category-card {
	will-change: transform;
	backface-visibility: hidden;
}

/* Performance optimizations */
.nub-newspaper-grid__container,
.nub-category-grid__container {
	contain: layout style paint;
}

/* Responsive images */
.nub-newspaper-card__image,
.nub-featured-newspaper__image {
	image-rendering: -webkit-optimize-contrast;
	image-rendering: crisp-edges;
}

/* Print styles */
@media print {
	.nub-newspaper-card,
	.nub-featured-newspaper,
	.nub-category-card {
		break-inside: avoid;
		box-shadow: none;
	}
}


/* ── Долгa проза: историјатот на НУБ во „За нас“ ─────────────────────────────
   Ширина: contentSize (1100px) — стандардната на темата.
   (Правилата се близнак во editor-style.css.) */
.nub-history {
    max-width: var(--wp--style--global--content-size, 1100px);
    margin-inline: auto;
}

.nub-history h3 {
    margin-top: 2em;
    color: var(--wp--preset--color--sepia);
}

.nub-history-lede {
    max-width: var(--wp--style--global--content-size, 1100px);
    margin-inline: auto;
    color: var(--wp--preset--color--sepia);
    font-style: italic;
}

/* Завршните лирски пасуси — тивок акцент, одделен од хронологијата. */
.nub-history-closing {
    color: var(--wp--preset--color--sepia);
    font-style: italic;
}

.nub-history-closing:first-of-type {
    margin-top: 2em;
    padding-top: var(--wp--preset--spacing--lg);
    border-top: 1px solid var(--wp--preset--color--gray-light);
}
