/*
Theme Name: NUB Catalog
Description: Custom тема за NUB Catalog платформа - PDF Flip каталози со претплата
Version: 1.0.0
Author: Andrea Mishovski
Text Domain: nub-catalog
*/

/* Основен CSS стил */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--wp--preset--font-family--serif);
    line-height: 1.75;
    color: var(--wp--preset--color--retro-dark);
    background-color: var(--wp--preset--color--beige);
    background-image:
        radial-gradient(rgba(30, 26, 20, 0.05) 0.5px, transparent 0.5px),
        linear-gradient(180deg, rgba(30, 26, 20, 0.02), rgba(0, 0, 0, 0.05));
    background-size: 4px 4px, 100% 100%;
    letter-spacing: 0.015em;
}

.nub-card {
    background-color: rgba(30, 26, 20, 0.04);
    padding: var(--wp--preset--spacing--xl);
    border-radius: var(--wp--custom--borderRadius--lg);
    border: 1px solid rgba(138, 116, 90, 0.2);
    margin-bottom: var(--wp--preset--spacing--xl);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--wp--preset--spacing--lg);
}

/* Catalog Date стил */
.catalog-date {
    color: var(--wp--preset--color--sepia);
    font-size: 0.85em;
    margin: 8px 0;
    font-family: var(--wp--preset--font-family--sans-serif);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.catalog-date strong {
    color: var(--wp--preset--color--retro-dark);
}

/* Shortcode catalogs styles */
.nub-catalogs-shortcode {
    margin: 2rem 0;
}

.nub-catalogs-shortcode .no-catalogs {
    text-align: center;
    padding: 2rem;
    color: var(--wp--preset--color--sepia);
    font-style: italic;
}

/* Book Store Style за Весници */
.nub-bookstore-style {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--wp--preset--spacing--lg);
}

/* Header стил */
.nub-bookstore-style .catalogs-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--wp--preset--color--sepia);
}

.nub-bookstore-style .catalogs-header-left {
    flex: 1;
}

.nub-bookstore-style .catalogs-page-title {
    font-family: var(--wp--preset--font-family--serif);
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--wp--preset--color--retro-dark);
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nub-bookstore-style .catalogs-results-count {
    font-size: 0.95rem;
    color: var(--wp--preset--color--sepia);
    margin: 0;
    font-family: var(--wp--preset--font-family--sans-serif);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.nub-bookstore-style .catalogs-results-count em {
    text-transform: none;
    letter-spacing: normal;
}

.nub-bookstore-style .catalogs-header-right {
    display: flex;
    align-items: center;
}

.nub-bookstore-style .catalog-sort {
    padding: 0.6rem 2.5rem 0.6rem 1rem;
    border: 1px solid var(--wp--preset--color--sepia);
    border-radius: 2px;
    background: var(--wp--preset--color--beige);
    font-size: 0.95rem;
    color: var(--wp--preset--color--retro-dark);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231e1a14' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 12px;
    font-family: var(--wp--preset--font-family--sans-serif);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.nub-bookstore-style .catalog-sort:focus {
    outline: none;
    border-color: var(--wp--preset--color--accent-orange);
    box-shadow: 0 0 0 2px rgba(178, 74, 47, 0.18);
}

/* Bookstore Grid */
.nub-bookstore-style .bookstore-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
    margin: 3rem 0;
}

@media (max-width: 1200px) {
    .nub-bookstore-style .bookstore-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }

    .nub-bookstore-style .catalogs-page-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .nub-bookstore-style .bookstore-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .nub-bookstore-style .catalogs-page-title {
        font-size: 2rem;
    }

    .nub-bookstore-style .catalogs-header {
        flex-direction: column;
        gap: 1rem;
    }
}

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

/* Bookstore Card */
.nub-bookstore-style .bookstore-card {
    background: transparent;
    border: none;
    padding: 0;
    transition: transform var(--nub-transition), box-shadow var(--nub-transition);
    animation: fadeInUp 0.5s ease-out;
    animation-fill-mode: both;
}

/* Stagger animation for grid items */
.nub-bookstore-style .bookstore-card:nth-child(1) {
    animation-delay: 0.1s;
}

.nub-bookstore-style .bookstore-card:nth-child(2) {
    animation-delay: 0.2s;
}

.nub-bookstore-style .bookstore-card:nth-child(3) {
    animation-delay: 0.3s;
}

.nub-bookstore-style .bookstore-card:nth-child(4) {
    animation-delay: 0.4s;
}

.nub-bookstore-style .bookstore-card:nth-child(5) {
    animation-delay: 0.5s;
}

.nub-bookstore-style .bookstore-card:nth-child(6) {
    animation-delay: 0.6s;
}

.nub-bookstore-style .bookstore-card:nth-child(7) {
    animation-delay: 0.7s;
}

.nub-bookstore-style .bookstore-card:nth-child(8) {
    animation-delay: 0.8s;
}

.nub-bookstore-style .bookstore-card:hover {
    transform: translateY(-8px);
}

.nub-bookstore-style .catalog-cover-link {
    display: block;
    margin-bottom: 1rem;
    text-decoration: none;
}

.nub-bookstore-style .catalog-cover {
    width: 100%;
    aspect-ratio: 2/3;
    overflow: hidden;
    background: var(--wp--preset--color--beige);
    border-radius: 2px;
    box-shadow: var(--nub-shadow-md);
    transition: box-shadow var(--nub-transition), transform var(--nub-transition);
    border: 1px solid var(--wp--preset--color--sepia);
}

.nub-bookstore-style .bookstore-card:hover .catalog-cover {
    box-shadow: var(--nub-shadow-xl);
    transform: translateY(-2px);
}

.nub-newspaper-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
    mix-blend-mode: multiply;
}

.nub-bookstore-style .catalog-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.nub-bookstore-style .catalog-cover-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--wp--preset--color--beige) 0%, var(--wp--preset--color--gray-light) 100%);
}

.nub-bookstore-style .catalog-cover-placeholder .dashicons {
    font-size: 64px;
    width: 64px;
    height: 64px;
    color: var(--wp--preset--color--sepia);
}

/* Catalog Info */
.nub-bookstore-style .catalog-info {
    text-align: left;
    padding: 0.5rem 0;
}

.nub-bookstore-style .catalog-title {
    margin: 0 0 0.75rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
}

.nub-bookstore-style .catalog-title a {
    color: var(--wp--preset--color--retro-dark);
    text-decoration: none;
    transition: color var(--nub-transition);
}

.nub-bookstore-style .catalog-title a:hover {
    color: var(--wp--preset--color--accent-orange);
}

.nub-bookstore-style .catalog-date {
    font-size: 0.9rem;
    color: var(--wp--preset--color--gray-dark);
    margin: 0.25rem 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.nub-bookstore-style .catalog-rating {
    margin: 0.5rem 0;
}

.nub-bookstore-style .catalog-rating .stars {
    color: var(--wp--preset--color--gray-light);
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.nub-bookstore-style .catalog-view-btn {
    display: inline-block;
    margin-top: 0.75rem;
    padding: var(--wp--preset--spacing--sm) var(--wp--preset--spacing--lg);
    background: var(--wp--preset--color--retro-dark);
    color: var(--wp--preset--color--beige);
    text-decoration: none;
    border-radius: var(--wp--custom--borderRadius--md);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-family: var(--wp--preset--font-family--sans-serif);
    transition: all 0.2s ease;
    border: 1px solid var(--wp--preset--color--retro-dark);
}

.nub-bookstore-style .catalog-view-btn:hover {
    background: var(--wp--preset--color--accent-orange);
    transform: translateY(-2px);
    box-shadow: var(--nub-shadow-sm);
}

/* Filter styles */
.nub-catalog-filters {
    background: rgba(0, 0, 0, 0.03);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.nub-filter-form {
    margin: 0;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: flex-end;
    background: var(--wp--preset--color--beige);
}

.filter-group {
    flex: 1;
    min-width: 150px;
}

.filter-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--wp--preset--color--retro-dark);
    font-size: 0.9rem;
}

.filter-select,
.filter-date {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid var(--wp--preset--color--gray-light);
    border-radius: 4px;
    background: var(--wp--preset--color--beige);
    color: var(--wp--preset--color--retro-dark);
    font-size: 0.95rem;
    font-family: inherit;
}

.filter-select:focus,
.filter-date:focus {
    outline: none;
    border-color: var(--wp--preset--color--sepia);
    box-shadow: 0 0 0 2px rgba(139, 118, 98, 0.1);
}

.filter-actions {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
}

.filter-actions .button {
    padding: 0.6rem 1.5rem;
    height: auto;
    white-space: nowrap;
}

.nub-catalog-filters .button.button-primary {
    background: var(--wp--preset--color--beige);
    border: 1px solid var(--wp--preset--color--sepia);
    color: var(--wp--preset--color--retro-dark);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-family: var(--wp--preset--font-family--sans-serif);
}

.nub-catalog-filters .button.button-primary:hover {
    background: rgba(178, 74, 47, 0.12);
    border-color: var(--wp--preset--color--accent-orange);
    color: var(--wp--preset--color--retro-dark);
}

.nub-pagination {
    margin-top: var(--wp--preset--spacing--xxl);
    margin-bottom: var(--wp--preset--spacing--xxl);
}

.nub-catalogs-shortcode .catalogs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.nub-catalogs-shortcode .catalog-card {
    background: var(--wp--preset--color--beige);
    border: 1px solid var(--wp--preset--color--sepia);
    border-radius: 8px;
    overflow: hidden;
    transition: transform var(--nub-transition), box-shadow var(--nub-transition);
}

.nub-catalogs-shortcode .catalog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--nub-shadow-md);
}

.nub-catalogs-shortcode .catalog-thumbnail {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 480px;
    overflow: hidden;
    background: var(--wp--preset--color--beige);
    padding: 0.75rem;
}

.nub-catalogs-shortcode .catalog-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.nub-catalogs-shortcode .catalog-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 480px; /* Matched to new thumbnail height */
    background: linear-gradient(180deg, rgba(243, 234, 215, 0.5), rgba(230, 220, 200, 0.5));
}

.nub-catalogs-shortcode .catalog-placeholder .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: var(--wp--preset--color--sepia);
}

.nub-catalogs-shortcode .catalog-content {
    padding: 1.5rem;
}

.nub-catalogs-shortcode .catalog-content h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    letter-spacing: 0.02em;
}

.nub-catalogs-shortcode .catalog-content h2 a {
    color: var(--wp--preset--color--retro-dark);
    text-decoration: none;
    transition: color var(--nub-transition);
}

.nub-catalogs-shortcode .catalog-content h2 a:hover {
    color: var(--wp--preset--color--accent-orange);
}

.nub-catalogs-shortcode .catalog-content p {
    margin: 0.5rem 0;
    color: var(--wp--preset--color--retro-brown);
    line-height: 1.6;
}

.nub-catalogs-shortcode .btn {
    display: inline-block;
    padding: var(--wp--preset--spacing--sm) var(--wp--preset--spacing--lg);
    background: var(--wp--preset--color--retro-dark);
    color: var(--wp--preset--color--beige);
    text-decoration: none;
    border-radius: var(--wp--custom--borderRadius--md);
    margin-top: 1rem;
    transition: all 0.2s ease;
    font-family: var(--wp--preset--font-family--sans-serif);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid var(--wp--preset--color--retro-dark);
}

.nub-catalogs-shortcode .btn:hover {
    background: var(--wp--preset--color--accent-orange);
}

.nub-catalogs-shortcode .btn-small {
    padding: 0.4rem 1rem;
    font-size: 0.75rem;
}

/* Pagination for shortcode */
.nub-catalogs-shortcode .page-numbers {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin: 0;
    list-style: none;
    padding: 0;
}

.nub-catalogs-shortcode .page-numbers li {
    margin: 0;
}

.nub-catalogs-shortcode .page-numbers a,
.nub-catalogs-shortcode .page-numbers span {
    display: block;
    padding: 0.5rem 1rem;
    background: transparent;
    color: var(--wp--preset--color--retro-dark);
    text-decoration: none;
    border: none;
    border-radius: var(--wp--custom--borderRadius--md);
    transition: all 0.2s ease;
    font-family: var(--wp--preset--font-family--sans-serif);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.nub-catalogs-shortcode .page-numbers a:hover {
    background: rgba(178, 74, 47, 0.08);
}

.nub-catalogs-shortcode .page-numbers .current {
    background: var(--wp--preset--color--retro-dark);
    color: var(--wp--preset--color--beige);
}

/* ============================================
   Header Styles - Using theme.json
   ============================================ */
.site-header {
    background: var(--wp--preset--color--beige);
    border-top: 5px solid var(--wp--preset--color--retro-dark); /* Solid top bar for retro feel */
    border-bottom: 1px solid var(--wp--preset--color--sepia);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(30, 26, 20, 0.05); /* Softest shadow */
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--wp--preset--spacing--lg);
    padding: 1.25rem 0 1rem; /* Slightly more padding for airiness */
}

.site-branding h1,
.site-branding .site-title {
    font-family: var(--wp--preset--font-family--serif);
    font-size: 1.85rem; /* Slightly smaller for elegance */
    font-weight: 700;
    color: var(--wp--preset--color--retro-dark);
    margin: 0;
    line-height: 1;
    letter-spacing: 0.15em; /* More air in title */
    text-transform: uppercase;
}

.site-branding a {
    text-decoration: none;
    color: var(--wp--preset--color--retro-dark);
    transition: opacity 0.2s;
}

.site-branding a:hover {
    opacity: 0.8;
}

.main-navigation {
    position: relative;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

.main-navigation>ul>li {
    position: relative;
}

.main-navigation a {
    text-decoration: none;
    color: var(--wp--preset--color--retro-dark);
    font-weight: 600;
    font-size: 0.85rem; /* Slightly larger */
    padding: 0.5rem 0.2rem;
    margin: 0 0.5rem;
    transition: all var(--nub-transition);
    display: block;
    position: relative;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-family: var(--wp--preset--font-family--sans-serif);
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--wp--preset--color--accent-orange);
    transition: width var(--nub-transition);
}

.main-navigation a:hover {
    color: var(--wp--preset--color--accent-orange);
}

.main-navigation a:hover::after,
.main-navigation .current-menu-item > a::after,
.main-navigation .current_page_item > a::after {
    width: 100%;
}

.main-navigation .current-menu-item>a,
.main-navigation .current_page_item>a {
    color: var(--wp--preset--color--accent-orange);
    font-weight: 700;
}

/* Подмени стилови */
.main-navigation ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--wp--preset--color--beige);
    box-shadow: var(--nub-shadow-md);
    border-radius: 2px;
    padding: 0.5rem 0;
    min-width: 200px;
    margin-top: 0.5rem;
    flex-direction: column;
    gap: 0;
    z-index: 1000;
    border: 1px solid var(--wp--preset--color--sepia);
}

.main-navigation ul li:hover>ul {
    display: flex;
    animation: fadeInDown 0.3s ease-out;
}

.main-navigation ul ul li {
    width: 100%;
}

.main-navigation ul ul a {
    padding: 0.75rem 1.25rem;
    border-bottom: none;
    border-left: 3px solid transparent;
    color: var(--wp--preset--color--retro-dark);
    font-weight: 600;
}

.main-navigation ul ul a:hover {
    background: var(--wp--preset--color--beige);
    border-left-color: var(--wp--preset--color--accent-orange);
    transform: none;
    padding-left: 1.5rem;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Menu Toggle Button */
.menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--wp--preset--color--retro-dark);
    border-radius: 2px;
    padding: 0.5rem;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    transition: all var(--nub-transition);
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--wp--preset--color--retro-dark);
    transition: all var(--nub-transition);
    border-radius: 2px;
}

.menu-toggle:hover,
.menu-toggle:focus {
    border-color: var(--wp--preset--color--accent-orange);
    background: rgba(178, 74, 47, 0.08);
}

.menu-toggle:hover span,
.menu-toggle:focus span {
    background: var(--wp--preset--color--accent-orange);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Focus states за пристапност */
.main-navigation a:focus-visible {
    outline: 2px solid var(--wp--preset--color--accent-orange);
    outline-offset: 4px;
    border-radius: 4px;
    border-bottom-color: transparent;
}

.menu-toggle:focus-visible {
    outline: 2px solid var(--wp--preset--color--accent-orange);
    outline-offset: 3px;
}

.lang-dropdown-toggle:focus-visible,
.auth-menu-toggle:focus-visible,
.user-name:focus-visible {
    outline: 2px solid var(--wp--preset--color--accent-orange);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Global focus-visible for all interactive elements */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--wp--preset--color--accent-orange);
    outline-offset: 2px;
}

.btn-view:focus-visible,
.btn-subscribe:focus-visible,
.btn-view-all:focus-visible,
.btn-retro:focus-visible,
.pagination .page-numbers:focus-visible {
    outline: 2px solid var(--wp--preset--color--accent-orange);
    outline-offset: 3px;
}

/* Main content */
.site-main,
.content-area {
    padding: 0;
    min-height: 70vh;
    background: transparent;
}

.entry-title {
    font-size: var(--wp--preset--font-size--xxlarge);
    margin-bottom: var(--wp--preset--spacing--sm);
    font-family: var(--wp--preset--font-family--serif);
    font-weight: 700;
    color: var(--wp--preset--color--retro-dark);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* Entry Content - Matches editor styles for consistency */
.entry-content {
    line-height: 1.9;
    color: var(--wp--preset--color--retro-brown);
    font-family: var(--wp--preset--font-family--serif);
    max-width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    font-size: 1.05rem;
    letter-spacing: 0.01em;
}

body .entry-content h1,
body .entry-content h2,
body .entry-content h3,
body .entry-content h4,
body .entry-content h5,
body .entry-content h6 {
    font-family: var(--wp--preset--font-family--serif);
    color: var(--wp--preset--color--retro-dark);
    font-weight: 700;
    margin-top: 2em;
    margin-bottom: 0.75em;
    letter-spacing: -0.02em;
}

.entry-content h1 {
    font-size: 2.5em;
}

.entry-content h2 {
    font-size: 2em;
}

.entry-content h3 {
    font-size: 1.75em;
}

.entry-content h4 {
    font-size: 1.5em;
}

.entry-content h5 {
    font-size: 1.25em;
}

.entry-content h6 {
    font-size: 1em;
}

body .entry-content p {
    color: var(--wp--preset--color--retro-brown);
    margin-bottom: 1.25em;
    line-height: 1.8;
}

body .entry-content .retro-title {
    font-family: var(--wp--preset--font-family--serif);
    font-weight: 700;
    color: var(--wp--preset--color--retro-dark);
}

body .entry-content .retro-text {
    color: var(--wp--preset--color--retro-brown);
    line-height: 1.9;
}

body .entry-content .sepia-tone {
    color: var(--wp--preset--color--sepia);
}

body .entry-content .retro-title-large {
    font-size: var(--wp--preset--font-size--xxlarge);
    font-weight: 700;
    color: var(--wp--preset--color--retro-dark);
}

body .entry-content a {
    color: var(--wp--preset--color--sepia);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

body .entry-content a:hover {
    color: var(--wp--preset--color--accent-orange);
    text-decoration-color: var(--wp--preset--color--accent-orange);
}

.entry-content blockquote {
    border-left: 4px solid var(--wp--preset--color--gray-light);
    padding: var(--wp--preset--spacing--md) var(--wp--preset--spacing--lg);
    margin-left: 0;
    color: var(--wp--preset--color--retro-brown);
    font-style: italic;
    background: var(--wp--preset--color--beige);
}

.entry-content ul,
.entry-content ol {
    margin-left: 2em;
    color: var(--wp--preset--color--retro-brown);
    margin-bottom: 1em;
}

.entry-content ul li,
.entry-content ol li {
    margin-bottom: 0.5em;
}

.entry-content strong {
    font-weight: 700;
    color: var(--wp--preset--color--retro-dark);
}

.entry-content em {
    font-style: italic;
}

.entry-content code {
    background: var(--wp--preset--color--beige);
    padding: 2px var(--wp--preset--spacing--xs);
    border-radius: var(--wp--custom--borderRadius--sm);
    font-family: 'Courier New', monospace;
    color: var(--wp--preset--color--retro-brown);
}

.entry-content pre {
    background: var(--wp--preset--color--beige);
    padding: var(--wp--preset--spacing--md);
    border-radius: var(--wp--custom--borderRadius--md);
    border: 1px solid var(--wp--preset--color--gray-light);
    overflow-x: auto;
}

.entry-content hr {
    border: none;
    border-top: 2px solid var(--wp--preset--color--gray-light);
    margin: 2em 0;
}

.entry-content table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 1em;
}

.entry-content table th,
.entry-content table td {
    border: 1px solid var(--wp--preset--color--gray-light);
    padding: var(--wp--preset--spacing--sm);
    text-align: left;
}

.entry-content table th {
    background: var(--wp--preset--color--beige);
    font-weight: 700;
    color: var(--wp--preset--color--retro-dark);
}

/* ============================================
   Footer Styles - Using theme.json
   ============================================ */
.site-footer {
    background: var(--wp--preset--color--retro-dark);
    color: var(--wp--preset--color--beige);
    padding: 3.5rem 0 2rem;
    margin-top: 4rem;
}

.footer-bottom {
    text-align: center;
    color: var(--wp--preset--color--sepia);
}

.footer-bottom p {
    margin: 0;
    font-size: 0.95rem;
}

/* Header content styles are defined above using theme.json custom properties */

/* Navigation styles are defined above using theme.json custom properties */

/* Navigation link styles are defined above using theme.json custom properties */

.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.user-menu {
    position: relative;
    display: inline-block;
}

.user-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    background: var(--wp--preset--color--beige);
    border: 1px solid var(--wp--preset--color--sepia);
    border-radius: 2px;
    color: var(--wp--preset--color--retro-dark);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all var(--nub-transition);
    font-family: var(--wp--preset--font-family--sans-serif);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.user-name:hover {
    border-color: var(--wp--preset--color--accent-orange);
    background: var(--wp--preset--color--beige);
}

.user-menu.active .user-name {
    border-color: var(--wp--preset--color--accent-orange);
}

.user-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: var(--wp--preset--color--beige);
    border: 1px solid var(--wp--preset--color--sepia);
    border-radius: 2px;
    box-shadow: var(--nub-shadow-md);
    padding: 0.5rem 0;
    min-width: 180px;
    z-index: 1000;
}

.user-menu.active .user-dropdown {
    display: block;
    animation: fadeInDown 0.3s ease-out;
}

.user-dropdown a {
    display: block;
    padding: 0.75rem 1.25rem;
    text-decoration: none;
    color: var(--wp--preset--color--retro-dark);
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: var(--wp--preset--font-family--sans-serif);
}

.user-dropdown a:hover {
    background: var(--wp--preset--color--beige);
    border-left-color: var(--wp--preset--color--accent-orange);
    padding-left: 1.5rem;
    color: var(--wp--preset--color--accent-orange);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: var(--wp--preset--spacing--sm) var(--wp--preset--spacing--lg);
    border-radius: var(--wp--custom--borderRadius--md);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    border: 1px solid var(--wp--preset--color--retro-dark);
    cursor: pointer;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-family: var(--wp--preset--font-family--sans-serif);
    background: var(--wp--preset--color--retro-dark);
    color: var(--wp--preset--color--beige);
}

.btn-primary {
    background: var(--wp--preset--color--accent-orange);
    color: var(--wp--preset--color--white);
    border-color: var(--wp--preset--color--accent-orange);
}

.btn-primary:hover {
    background: var(--wp--preset--color--retro-brown);
    border-color: var(--wp--preset--color--retro-brown);
    color: var(--wp--preset--color--white);
}

.btn-secondary {
    background: transparent;
    color: var(--wp--preset--color--retro-dark);
    border: 1px solid var(--wp--preset--color--retro-dark);
}

.btn-secondary:hover {
    background: var(--wp--preset--color--retro-dark);
    color: var(--wp--preset--color--beige);
}

.btn-small {
    padding: var(--wp--preset--spacing--xs) var(--wp--preset--spacing--sm);
    font-size: 0.7rem;
}

/* Hero Section - Retro 1940s Style */
.retro-hero {
    background: linear-gradient(135deg, rgba(243, 234, 215, 0.95) 0%, rgba(230, 220, 200, 0.95) 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--wp--preset--color--sepia);
    border-bottom: 1px solid var(--wp--preset--color--sepia);
}

.retro-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(139, 118, 98, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 118, 98, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-label {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--wp--preset--color--sepia);
    margin-bottom: 1rem;
    font-weight: 600;
    font-family: var(--wp--preset--font-family--sans-serif);
}

.retro-title {
    font-family: var(--wp--preset--font-family--serif);
    font-size: 4rem;
    font-weight: 700;
    color: var(--wp--preset--color--retro-dark);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: 1px;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--wp--preset--color--retro-brown);
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.8;
}

/* Section Header - Retro */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.retro-header {
    margin-bottom: 4rem;
}

.section-label {
    display: block;
    font-size: 0.85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--wp--preset--color--sepia);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--wp--preset--color--retro-dark);
    margin: 0;
}

.retro-title-large {
    font-family: var(--wp--preset--font-family--serif);
    font-size: 3rem;
    font-weight: 700;
    color: var(--wp--preset--color--retro-dark);
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.05);
}

.section-description {
    font-size: 1rem;
    color: var(--wp--preset--color--retro-brown);
    font-style: italic;
}

/* Featured Catalogs Section - Retro */
.featured-catalogs-section.retro-section {
    padding: 80px 0;
    background: var(--wp--preset--color--beige);
}

.catalogs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.retro-grid {
    gap: 3rem;
    margin-bottom: 4rem;
}

.catalog-item {
    background: transparent;
    border: none;
    transition: transform var(--nub-transition);
}

.retro-catalog-item {
    position: relative;
}

.catalog-item:hover {
    transform: translateY(-5px);
}

.catalog-image {
    display: block;
    width: 100%;
    height: 350px;
    overflow: hidden;
    background: var(--wp--preset--color--beige);
    margin-bottom: 1rem;
}

.retro-image {
    position: relative;
    filter: var(--nub-retro-filter);
    border: 3px solid var(--wp--preset--color--gray-light);
    box-shadow: var(--nub-shadow-md);
    height: 400px;
}

.catalog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.retro-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(212, 197, 184, 0.3) 100%);
    pointer-events: none;
}

.catalog-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(243, 234, 215, 0.9), rgba(230, 220, 200, 0.9));
    color: var(--wp--preset--color--sepia);
    border: 1px dashed var(--wp--preset--color--sepia);
}

.catalog-placeholder .dashicons {
    font-size: 80px;
    width: 80px;
    height: 80px;
    color: var(--wp--preset--color--sepia);
}

.catalog-info {
    padding: 0;
    text-align: center;
}

.retro-info {
    margin-top: 1.5rem;
}

.catalog-number {
    font-size: 0.9rem;
    color: var(--wp--preset--color--sepia);
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.catalog-info h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 400;
}

.retro-info h3 {
    font-family: var(--wp--preset--font-family--serif);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--wp--preset--color--retro-dark);
    margin-bottom: 0.5rem;
}

.catalog-info h3 a {
    text-decoration: none;
    color: var(--wp--preset--color--retro-dark);
    transition: color var(--nub-transition);
}

.retro-info h3 a {
    color: var(--wp--preset--color--retro-dark);
    text-decoration: none;
    transition: color var(--nub-transition);
}

.catalog-info h3 a:hover {
    color: var(--wp--preset--color--accent-orange);
}

.retro-info h3 a:hover {
    color: var(--wp--preset--color--sepia);
}

.catalog-price {
    font-size: 1rem;
    color: var(--wp--preset--color--retro-brown);
    font-weight: 500;
    margin-bottom: 1rem;
}

.btn-view,
.btn-subscribe {
    display: inline-block;
    padding: 10px 20px;
    text-decoration: none;
    border: 1px solid var(--wp--preset--color--retro-dark);
    color: var(--wp--preset--color--retro-dark);
    font-size: 0.9rem;
    transition: all var(--nub-transition);
}

.btn-view:hover {
    background: var(--wp--preset--color--retro-dark);
    color: var(--wp--preset--color--white);
}

.btn-subscribe {
    background: var(--wp--preset--color--retro-dark);
    color: var(--wp--preset--color--white);
}

.btn-subscribe:hover {
    background: var(--wp--preset--color--gray-dark);
}

/* Retro Buttons */
.btn-retro {
    display: inline-block;
    padding: 12px 30px;
    background: transparent;
    border: 2px solid var(--wp--preset--color--sepia);
    color: var(--wp--preset--color--sepia);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all var(--nub-transition);
    position: relative;
}

.btn-retro:hover {
    background: var(--wp--preset--color--sepia);
    color: var(--wp--preset--color--beige);
}

.btn-retro-small {
    display: inline-block;
    padding: 8px 20px;
    background: transparent;
    border: 1px solid var(--wp--preset--color--sepia);
    color: var(--wp--preset--color--sepia);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all var(--nub-transition);
    margin-top: 0.5rem;
}

.btn-retro-small:hover {
    background: var(--wp--preset--color--sepia);
    color: var(--wp--preset--color--beige);
}

.btn-retro-outline {
    display: inline-block;
    padding: 12px 30px;
    background: transparent;
    border: 2px solid var(--wp--preset--color--sepia);
    color: var(--wp--preset--color--sepia);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--nub-transition);
}

.btn-retro-outline:hover {
    background: var(--wp--preset--color--sepia);
    color: var(--wp--preset--color--beige);
}

.view-all {
    text-align: center;
    margin-top: 2rem;
}

.btn-view-all {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border: 2px solid var(--wp--preset--color--retro-dark);
    color: var(--wp--preset--color--retro-dark);
    font-weight: 500;
    transition: all var(--nub-transition);
}

.btn-view-all:hover {
    background: var(--wp--preset--color--retro-dark);
    color: var(--wp--preset--color--white);
}

.no-content {
    text-align: center;
    color: var(--wp--preset--color--gray-dark);
    font-size: 1.1rem;
}

/* Page Content Section - Editor Content */
.page-content-section {
    padding: 60px 0;
    background: var(--wp--preset--color--beige);
}

.page-content-section .entry-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* About Section - Retro */
.about-section.retro-section {
    padding: 80px 0;
    background: var(--wp--preset--color--beige);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.retro-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 60px 20px;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--wp--preset--color--gray-dark);
}

.retro-content p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--wp--preset--color--retro-brown);
    margin-bottom: 2rem;
}

/* Newsletter Section - Retro */
.newsletter-section.retro-section {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--wp--preset--color--gray-light) 0%, var(--wp--preset--color--gray-light) 100%);
    text-align: center;
}

.newsletter-content h2 {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 1rem;
    color: var(--wp--preset--color--retro-dark);
}

.newsletter-content .retro-title-large {
    font-family: var(--wp--preset--font-family--serif);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--wp--preset--color--retro-dark);
    margin-bottom: 1rem;
}

.newsletter-content p {
    font-size: 1.1rem;
    color: var(--wp--preset--color--retro-brown);
    margin-bottom: 2rem;
}

/* Footer styles are defined above using theme.json */

/* Page Header */
.page-header {
    margin-bottom: 3rem;
    text-align: center;
}

.page-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.archive-description {
    color: var(--wp--preset--color--gray-dark);
    font-size: 1.1rem;
}

/* Catalog Viewer */
.catalog-viewer {
    margin-top: 2rem;
}

/* Pagination */
.pagination,
.pagination .nav-links,
.wp-block-query-pagination {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 0.75rem;
    margin-top: var(--wp--preset--spacing--xxl);
    flex-wrap: wrap;
    align-items: center;
}

/* WordPress generates ul.page-numbers — must override list defaults */
ul.page-numbers {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    list-style: none;
    margin: var(--wp--preset--spacing--xxl) 0 0;
    padding: 0;
}

ul.page-numbers li {
    display: inline-flex;
    margin: 0;
    padding: 0;
}

.pagination .page-numbers,
.wp-block-query-pagination-numbers .page-numbers,
.wp-block-query-pagination-next,
.wp-block-query-pagination-previous {
    display: inline-block;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border: none;
    border-radius: var(--wp--custom--borderRadius--md);
    color: var(--wp--preset--color--retro-dark);
    background: var(--wp--preset--color--beige);
    transition: all 0.2s ease;
    font-family: var(--wp--preset--font-family--sans-serif);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.pagination .page-numbers:hover,
.wp-block-query-pagination-numbers .page-numbers:hover,
.wp-block-query-pagination-next:hover,
.wp-block-query-pagination-previous:hover {
    background: rgba(178, 74, 47, 0.08);
}

.pagination .page-numbers.current,
.wp-block-query-pagination-numbers .page-numbers.current {
    background: var(--wp--preset--color--retro-dark);
    color: var(--wp--preset--color--beige);
}

/* Language Dropdown */
.lang-dropdown {
    position: relative;
    display: inline-block;
}

.lang-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem; /* Increased to match auth btn */
    background: var(--wp--preset--color--beige);
    border: 1px solid var(--wp--preset--color--sepia);
    border-radius: 4px;
    color: var(--wp--preset--color--retro-dark);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--nub-transition);
    font-family: var(--wp--preset--font-family--sans-serif);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.lang-dropdown-toggle:hover {
    border-color: var(--wp--preset--color--accent-orange);
    background: rgba(178, 74, 47, 0.08);
}

.lang-dropdown-toggle svg {
    transition: transform var(--nub-transition);
    width: 12px;
    height: 12px;
}

.lang-dropdown.active .lang-dropdown-toggle svg {
    transform: rotate(180deg);
}

.lang-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: var(--wp--preset--color--beige);
    border: 1px solid var(--wp--preset--color--sepia);
    border-radius: 2px;
    box-shadow: var(--nub-shadow-md);
    list-style: none;
    padding: 0.5rem 0;
    min-width: 150px;
    z-index: 1000;
}

.lang-dropdown.active .lang-dropdown-menu {
    display: block;
    animation: fadeInDown 0.3s ease-out;
}

.lang-dropdown-menu li {
    margin: 0;
}

.lang-dropdown-menu .lang-link {
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--wp--preset--color--retro-dark);
    text-decoration: none;
    font-size: 0.8rem;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: var(--wp--preset--font-family--sans-serif);
}

.lang-dropdown-menu .lang-link:hover {
    background: var(--wp--preset--color--beige);
    border-left-color: var(--wp--preset--color--accent-orange);
    padding-left: 1.5rem;
}

.lang-dropdown-menu .lang-link.active {
    background: var(--wp--preset--color--beige);
    border-left-color: var(--wp--preset--color--accent-orange);
    font-weight: 600;
    color: var(--wp--preset--color--accent-orange);
}

.header-language-switcher {
    margin-right: 0.5rem;
    padding-right: 1rem;
    border-right: 1px solid rgba(138, 116, 90, 0.3); /* Softer separator */
}

/* Auth Menu Dropdown */
.auth-menu {
    position: relative;
    display: inline-block;
}

.auth-menu-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem; /* Increased padding slightly */
    background: var(--wp--preset--color--retro-dark);
    border: 1px solid var(--wp--preset--color--retro-dark);
    border-radius: 4px; /* Consistent with lang switcher */
    color: var(--wp--preset--color--white);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--nub-transition);
    font-family: var(--wp--preset--font-family--sans-serif);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.auth-menu-toggle:hover {
    background: var(--wp--preset--color--accent-orange);
}

.auth-menu-toggle svg {
    transition: transform var(--nub-transition);
    width: 12px;
    height: 12px;
}

.auth-menu.active .auth-menu-toggle svg {
    transform: rotate(180deg);
}

.auth-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: var(--wp--preset--color--beige);
    border: 1px solid var(--wp--preset--color--sepia);
    border-radius: 2px;
    box-shadow: var(--nub-shadow-md);
    padding: 0.5rem 0;
    min-width: 180px;
    z-index: 1000;
}

.auth-menu.active .auth-dropdown {
    display: block;
    animation: fadeInDown 0.3s ease-out;
}

.auth-dropdown a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--wp--preset--color--retro-dark);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: var(--wp--preset--font-family--sans-serif);
}

.auth-dropdown a:hover {
    background: var(--wp--preset--color--beige);
    border-left-color: var(--wp--preset--color--accent-orange);
    padding-left: 1.5rem;
    color: var(--wp--preset--color--accent-orange);
}

/* ============================================
   Utility Classes - Unified Design System
   ============================================ */

/* Containers */
.nub-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--wp--preset--spacing--lg);
    width: 100%;
}

.nub-container--content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--wp--preset--spacing--lg);
    width: 100%;
}

.nub-container--narrow {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 var(--wp--preset--spacing--lg);
    width: 100%;
}

.nub-container--medium {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 var(--wp--preset--spacing--lg);
    width: 100%;
}

/* Section spacing */
.nub-section {
    padding: var(--wp--preset--spacing--xxl) 0;
}

.nub-section--sm {
    padding: var(--wp--preset--spacing--lg) 0;
}

.nub-section--lg {
    padding: var(--wp--preset--spacing--xxxl) 0;
}

/* Page header */
.nub-page-header {
    text-align: center;
    margin-bottom: var(--wp--preset--spacing--xxl);
}

.nub-page-header__title {
    margin-bottom: var(--wp--preset--spacing--sm);
}

.nub-page-header__description {
    color: var(--wp--preset--color--sepia);
    font-size: var(--wp--preset--font-size--base);
    line-height: 1.6;
}

/* Buttons */
.nub-btn {
    display: inline-block;
    padding: var(--wp--preset--spacing--sm) var(--wp--preset--spacing--lg);
    font-size: 0.8rem;
    font-weight: 600;
    font-family: var(--wp--preset--font-family--sans-serif);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border: 1px solid transparent;
    border-radius: var(--wp--custom--borderRadius--md);
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s ease;
    line-height: 1.4;
}

.nub-btn--primary {
    background: var(--wp--preset--color--accent-orange);
    color: var(--wp--preset--color--white);
}

.nub-btn--primary:hover {
    background: var(--wp--preset--color--retro-brown);
    color: var(--wp--preset--color--white);
}

.nub-btn--secondary {
    background: var(--wp--preset--color--retro-dark);
    color: var(--wp--preset--color--beige);
}

.nub-btn--secondary:hover {
    background: var(--wp--preset--color--accent-orange);
    color: var(--wp--preset--color--white);
}

.nub-btn--outline {
    background: transparent;
    color: var(--wp--preset--color--retro-dark);
    border-color: var(--wp--preset--color--retro-dark);
}

.nub-btn--outline:hover {
    background: var(--wp--preset--color--retro-dark);
    color: var(--wp--preset--color--beige);
}

.nub-btn--block {
    width: 100%;
    display: block;
}

.nub-btn--sm {
    padding: var(--wp--preset--spacing--xs) var(--wp--preset--spacing--sm);
    font-size: 0.75rem;
}

/* Form elements */
.nub-label {
    display: block;
    margin-bottom: var(--wp--preset--spacing--xs);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: var(--wp--preset--font-family--sans-serif);
}

.nub-input {
    padding: var(--wp--preset--spacing--sm) var(--wp--preset--spacing--md);
    border: 1px solid var(--wp--preset--color--sepia);
    border-radius: var(--wp--custom--borderRadius--md);
    font-size: var(--wp--preset--font-size--normal);
    background: rgba(243, 234, 215, 0.7);
    color: var(--wp--preset--color--retro-dark);
    width: 100%;
    font-family: var(--wp--preset--font-family--sans-serif);
}

.nub-input:focus {
    outline: 2px solid var(--wp--preset--color--accent-orange);
    outline-offset: -1px;
    border-color: var(--wp--preset--color--accent-orange);
}

/* Alerts */
.nub-alert {
    padding: var(--wp--preset--spacing--sm) var(--wp--preset--spacing--md);
    border-radius: var(--wp--custom--borderRadius--md);
    margin-bottom: var(--wp--preset--spacing--md);
    text-align: center;
    font-family: var(--wp--preset--font-family--sans-serif);
    font-size: var(--wp--preset--font-size--small);
}

.nub-alert--success {
    background: var(--nub-status-success-bg);
    color: var(--nub-status-success-text);
    border: 1px solid var(--nub-status-success-text);
}

.nub-alert--error {
    background: var(--nub-status-error-bg);
    color: var(--nub-status-error-text);
    border: 1px solid var(--nub-status-error-text);
}

/* Entry meta */
.entry-meta {
    font-size: var(--wp--preset--font-size--small);
    color: var(--wp--preset--color--sepia);
    font-style: italic;
    font-family: var(--wp--preset--font-family--sans-serif);
}

/* Page featured image */
.page-featured-image {
    margin-bottom: var(--wp--preset--spacing--xl);
}

.page-featured-image img {
    border-radius: var(--wp--custom--borderRadius--lg);
}

/* Registration terms box */
.registration-terms {
    background: rgba(0, 0, 0, 0.05);
    padding: var(--wp--preset--spacing--xl);
    border-radius: var(--wp--custom--borderRadius--lg);
    margin: var(--wp--preset--spacing--xl) 0;
    text-align: left;
}

.registration-terms h2 {
    margin-bottom: var(--wp--preset--spacing--md);
}

.registration-terms ul {
    list-style-type: disc;
    margin-left: var(--wp--preset--spacing--lg);
}

.registration-terms li {
    margin-bottom: var(--wp--preset--spacing--xs);
}

/* Catalog viewer */
.catalog-viewer {
    border-radius: var(--wp--custom--borderRadius--xl);
    overflow: hidden;
    background: rgba(0, 0, 0, 0.03);
}

/* Filter form */
.nub-newspaper-grid__filters {
    margin-bottom: var(--wp--preset--spacing--xl);
}

.nub-newspaper-filters-form {
    display: flex;
    gap: var(--wp--preset--spacing--md);
    align-items: flex-end;
    flex-wrap: wrap;
}

.nub-filter-group label {
    display: block;
    margin-bottom: var(--wp--preset--spacing--xs);
    font-weight: 600;
}

.nub-filter-select {
    padding: var(--wp--preset--spacing--xs);
    border: 1px solid var(--wp--preset--color--sepia);
    border-radius: var(--wp--custom--borderRadius--md);
    background: rgba(0, 0, 0, 0.03);
    min-width: 150px;
}

.nub-filter-actions {
    margin-left: auto;
}

/* Text alignment utilities */
.nub-text-center {
    text-align: center;
}

/* Form field spacing */
.nub-form-field {
    margin-bottom: var(--wp--preset--spacing--lg);
}

/* Back link area */
.nub-back-link {
    text-align: center;
    margin-top: var(--wp--preset--spacing--lg);
}


/* Single catalog header */
.nub-catalog-header {
    margin-bottom: var(--wp--preset--spacing--lg);
}

.nub-catalog-title {
    color: var(--wp--preset--color--retro-dark);
    font-size: var(--wp--preset--font-size--xlarge);
    font-weight: 700;
}

.nub-catalog-date {
    color: var(--wp--preset--color--sepia);
    font-size: var(--wp--preset--font-size--xsmall);
}

.nub-catalog-excerpt {
    margin-top: var(--wp--preset--spacing--sm);
}

/* Dublin Core (dlib) bibliographic metadata */
.nub-dc-meta {
    margin-top: var(--wp--preset--spacing--sm);
    font-size: var(--wp--preset--font-size--xsmall);
    color: var(--wp--preset--color--retro-dark);
}

.nub-dc-meta--category {
    margin-top: var(--wp--preset--spacing--md);
}

.nub-dc-meta__list {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 2px 12px;
    margin: 0;
}

.nub-dc-meta__list dt {
    font-weight: 700;
    color: var(--wp--preset--color--sepia);
}

.nub-dc-meta__list dd {
    margin: 0;
}

.nub-dc-meta__description {
    margin-top: 8px;
    font-style: italic;
}

.nub-dc-meta__source {
    margin-top: 6px;
}

/* Block group spacing */
.nub-block-section {
    padding-top: var(--wp--preset--spacing--xl);
    padding-bottom: var(--wp--preset--spacing--xl);
}

.nub-block-section--sm {
    padding-top: var(--wp--preset--spacing--lg);
    padding-bottom: var(--wp--preset--spacing--md);
}

/* Responsive */
@media (max-width: 768px) {
    /* Utility responsive */
    .nub-container,
    .nub-container--content,
    .nub-container--narrow,
    .nub-container--medium {
        padding: 0 var(--wp--preset--spacing--md);
    }

    h1, .page-title, .entry-title, .catalogs-page-title {
        font-size: var(--wp--preset--font-size--xlarge);
    }

    h2 {
        font-size: var(--wp--preset--font-size--large);
    }

    h3 {
        font-size: var(--wp--preset--font-size--medium);
    }

    .nub-newspaper-filters-form {
        flex-direction: column;
    }

    .nub-filter-actions {
        margin-left: 0;
    }

    .menu-toggle {
        display: flex;
    }

    .header-content {
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .main-navigation {
        width: 100%;
        order: 3;
    }

    .main-navigation.toggled ul {
        display: flex;
        flex-direction: column;
        gap: 0;
        width: 100%;
        margin-top: 1rem;
        padding: 1rem 0;
        border-top: 1px solid var(--wp--preset--color--sepia);
    }

    .main-navigation:not(.toggled) ul {
        display: none;
    }

    .main-navigation ul li {
        width: 100%;
        border-bottom: 1px solid var(--wp--preset--color--sepia);
    }

    .main-navigation ul li:last-child {
        border-bottom: none;
    }

    .main-navigation a {
        padding: 1rem;
        border-bottom: none;
        border-left: 3px solid transparent;
        font-size: 1rem;
    }

    .main-navigation a:hover,
    .main-navigation .current-menu-item>a {
        border-left-color: var(--wp--preset--color--accent-orange);
        background: var(--wp--preset--color--beige);
        transform: none;
        padding-left: 1.25rem;
    }

    /* Dropdown во mobile */
    .main-navigation ul ul {
        position: static;
        display: none;
        box-shadow: none;
        border: none;
        border-top: 1px solid var(--wp--preset--color--gray-light);
        border-radius: 0;
        margin-top: 0;
        padding-left: 1rem;
        min-width: 100%;
    }

    .main-navigation ul li:hover>ul,
    .main-navigation ul li.active>ul {
        display: flex;
    }

    .header-actions {
        width: auto;
        margin-left: auto;
        justify-content: flex-end;
    }



    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .catalogs-grid {
        grid-template-columns: 1fr;
    }

    .retro-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .catalog-image {
        height: 250px;
    }

    .retro-title {
        font-size: 2.5rem;
    }

    .retro-title-large {
        font-size: 2rem;
    }

    .retro-image {
        height: 300px;
    }

    .header-language-switcher {
        margin-right: 0.5rem;
        padding-right: 0.5rem;
        border-right: none;
        border-bottom: 1px solid var(--wp--preset--color--gray-light);
        padding-bottom: 0.5rem;
        margin-bottom: 0.5rem;
    }

    .lang-dropdown-menu {
        right: auto;
        left: 0;
    }

    .auth-dropdown {
        right: auto;
        left: 0;
    }
}

/* Block Editor стилови за frontend */
.wp-block {
    max-width: 100%;
}

/* Group блокови - применувај background-color од Gutenberg атрибутите */
/* Gutenberg за Group блоковите не го додава background-color во inline style од style.color.background */
/* Затоа користиме CSS кое ќе го применува background-color од style атрибутот */
/* Gutenberg ќе го додаде background-color преку style атрибутот кога има style.color.background */
/* За Group блоковите, Gutenberg го додава background-color преку has-background класата и style атрибутот */

.entry-content .wp-block-group,
.entry-content .wp-block-columns,
.entry-content .wp-block-column {
    margin-bottom: 1.5em;
}

.entry-content .alignwide {
    margin-left: auto;
    margin-right: auto;
    max-width: 1400px;
    width: 100%;
}

.entry-content .alignfull {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    max-width: 100vw;
    width: 100vw;
}

.nub-page-content {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    padding: 0 var(--wp--preset--spacing--lg);
}

.entry-content .has-large-font-size,
.entry-content .has-x-large-font-size {
    line-height: 1.4;
}

.entry-content .wp-block-image {
    margin-bottom: 1.5em;
}

.entry-content .wp-block-gallery {
    margin-bottom: 1.5em;
}

.entry-content .wp-block-quote {
    border-left: 4px solid var(--wp--preset--color--gray-light);
    padding-left: 20px;
    margin: 1.5em 0;
    font-style: italic;
}

.entry-content .wp-block-pullquote {
    border-top: 4px solid var(--wp--preset--color--gray-light);
    border-bottom: 4px solid var(--wp--preset--color--gray-light);
    padding: 1.5em 0;
    margin: 1.5em 0;
    text-align: center;
    font-style: italic;
}

.entry-content .wp-block-button .wp-block-button__link {
    display: inline-block;
    padding: 12px 30px;
    background: transparent;
    border: 2px solid var(--wp--preset--color--sepia);
    color: var(--wp--preset--color--sepia);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--nub-transition);
}

.entry-content .wp-block-button .wp-block-button__link:hover {
    background: var(--wp--preset--color--sepia);
    color: var(--wp--preset--color--beige);
}

/* Custom Block Styles - Ретро стилови за блокови */
.wp-block-paragraph.is-style-retro-text,
.entry-content .wp-block-paragraph.is-style-retro-text {
    color: var(--wp--preset--color--retro-brown);
    line-height: 1.9;
}

.wp-block-paragraph.is-style-sepia-tone,
.entry-content .wp-block-paragraph.is-style-sepia-tone {
    color: var(--wp--preset--color--sepia);
}

.wp-block-heading.is-style-retro-title,
.entry-content .wp-block-heading.is-style-retro-title {
    font-family: var(--wp--preset--font-family--serif);
    font-weight: 700;
    color: var(--wp--preset--color--retro-dark);
}

.wp-block-heading.is-style-retro-title-large,
.entry-content .wp-block-heading.is-style-retro-title-large {
    font-size: 3em;
    font-weight: 700;
    color: var(--wp--preset--color--retro-dark);
    font-family: var(--wp--preset--font-family--serif);
}

/* Додатни Gutenberg блок стилови за подобро прикажување */
.entry-content .wp-block-paragraph {
    margin-bottom: 1em;
}

.entry-content .wp-block-heading {
    font-family: var(--wp--preset--font-family--serif);
    color: var(--wp--preset--color--retro-dark);
    font-weight: 700;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

.entry-content .wp-block-image img {
    border: 3px solid var(--wp--preset--color--gray-light);
    filter: var(--nub-retro-filter);
}

.entry-content .wp-block-separator {
    border: none;
    border-top: 2px solid var(--wp--preset--color--gray-light);
    margin: 2em 0;
}

.entry-content .wp-block-spacer {
    margin: 1em 0;
}

/* Home Page специфични стилови - Book Store дизајн */
.entry-content .wp-block-cover.alignfull {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
    max-width: 100vw;
}

/* Background colors за ретро тема */
.entry-content .wp-block-cover.has-background {
    background-color: var(--wp--preset--color--beige);
}

.entry-content .wp-block-group.has-base-background-color {
    background-color: var(--wp--preset--color--beige);
}

/* Group блокови - применувај background-color од Gutenberg атрибутите */
/* Gutenberg за Group блоковите не го додава background-color во inline style од style.color.background */
/* Затоа користиме CSS кое ќе го применува background-color од style атрибутот */
/* Gutenberg користи CSS custom properties за background colors, но не ги применува за Group блоковите */
/* Затоа користиме CSS кое ќе го применува background-color од style атрибутот преку CSS custom properties */
.entry-content .wp-block-group.has-background {
    /* Gutenberg користи --wp--preset--color--* custom properties за background colors */
    /* Но за Group блоковите, Gutenberg не го додава background-color во inline style */
    /* Затоа користиме CSS кое ќе го применува background-color од style атрибутот */
    background-color: var(--wp--preset--color--background, inherit);
}

.entry-content .wp-block-cover[style*="background-image"] {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Осигури дека сите Group блокови имаат background */
.entry-content .wp-block-group:not(.has-background) {
    background: transparent;
}

/* Alternating backgrounds за визуелен контраст - само ако нема inline background */
body .entry-content>.wp-block-group.alignwide:nth-of-type(even):not(.has-background) {
    background: var(--wp--preset--color--beige);
}

body .entry-content>.wp-block-group.alignwide:nth-of-type(odd):not(.has-background) {
    background: transparent;
}

/* Full width блокови - само ако нема inline background */
body .entry-content>.wp-block-group.alignfull:not(.has-background) {
    background: transparent;
}


/* Catalog Cards стилизирање - Hover ефекти */
.entry-content .wp-block-group.has-base-background-color {
    transition: transform var(--nub-transition), box-shadow var(--nub-transition);
    box-shadow: var(--nub-shadow-xs);
}

.entry-content .wp-block-group.has-base-background-color:hover {
    transform: translateY(-5px);
    box-shadow: var(--nub-shadow-lg);
}

/* Button стилизирање - Retro тема */
.entry-content .wp-block-button.is-style-outline .wp-block-button__link {
    border: 2px solid var(--wp--preset--color--retro-dark);
    background: transparent;
    transition: all var(--nub-transition);
    font-weight: 600;
}

.entry-content .wp-block-button.is-style-outline .wp-block-button__link:hover {
    background: var(--wp--preset--color--retro-dark);
    color: var(--wp--preset--color--beige);
    transform: translateY(-2px);
    box-shadow: var(--nub-shadow-sm);
}

/* Columns spacing - Подобро растојание */
.entry-content .wp-block-columns {
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .entry-content .wp-block-columns {
        gap: 1rem;
    }

    .entry-content .wp-block-columns.has-4-columns {
        flex-wrap: wrap;
    }

    .entry-content .wp-block-columns.has-4-columns .wp-block-column {
        flex-basis: calc(50% - 0.5rem);
        flex-grow: 0;
    }
}

/* Category Cover блокови - Hover ефекти */
.entry-content .wp-block-cover {
    cursor: pointer;
    transition: opacity var(--nub-transition), transform var(--nub-transition);
    border: 1px solid transparent;
}

.entry-content .wp-block-cover:hover {
    opacity: 0.9;
    transform: scale(1.02);
    border-color: var(--wp--preset--color--gray-light);
}

/* Newsletter форма стилизирање */
.entry-content .wp-block-html form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: stretch;
}

.entry-content .wp-block-html input[type="email"] {
    flex: 1;
    min-width: 200px;
    padding: 12px 16px;
    border: 1px solid var(--wp--preset--color--gray-light);
    background: var(--wp--preset--color--beige);
    font-family: var(--wp--preset--font-family--serif);
    font-size: 1rem;
    color: var(--wp--preset--color--retro-dark);
    transition: border-color var(--nub-transition);
}

.entry-content .wp-block-html input[type="email"]:focus {
    outline: none;
    border-color: var(--wp--preset--color--sepia);
    box-shadow: 0 0 0 2px rgba(139, 118, 98, 0.1);
}

.entry-content .wp-block-html button[type="submit"] {
    padding: 12px 24px;
    background: var(--wp--preset--color--retro-dark);
    color: var(--wp--preset--color--beige);
    border: none;
    cursor: pointer;
    font-family: var(--wp--preset--font-family--serif);
    font-size: 1rem;
    font-weight: 600;
    transition: background var(--nub-transition), transform 0.2s ease;
    white-space: nowrap;
}

.entry-content .wp-block-html button[type="submit"]:hover {
    background: var(--wp--preset--color--retro-brown);
    transform: translateY(-2px);
    box-shadow: var(--nub-shadow-sm);
}

.entry-content .wp-block-html button[type="submit"]:active {
    transform: translateY(0);
}

/* Hero секција - Подобро spacing */
.entry-content .wp-block-cover .wp-block-columns {
    align-items: center;
}

.entry-content .wp-block-cover h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.entry-content .wp-block-cover p {
    font-size: clamp(1rem, 2vw, 1.2rem);
}

/* Featured секција - Best Seller */
.entry-content .wp-block-group .wp-block-columns {
    align-items: center;
}

.entry-content .wp-block-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Responsive дизајн */
@media (max-width: 1024px) {
    .entry-content .wp-block-columns.has-4-columns {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .entry-content .wp-block-columns.has-4-columns .wp-block-column {
        flex-basis: 100%;
        flex-grow: 0;
    }

    .entry-content .wp-block-cover .wp-block-columns {
        flex-direction: column;
    }

    .entry-content .wp-block-cover .wp-block-column {
        flex-basis: 100%;
        flex-grow: 0;
    }

    .entry-content .wp-block-html form {
        flex-direction: column;
    }

    .entry-content .wp-block-html input[type="email"],
    .entry-content .wp-block-html button[type="submit"] {
        width: 100%;
    }
}

/* Празни слики - Placeholder стил за едитирање */
.entry-content .wp-block-image img[src=""],
.entry-content .wp-block-image img:not([src]),
.entry-content .wp-block-image figure img[src=""] {
    background: var(--wp--preset--color--beige);
    border: 2px dashed var(--wp--preset--color--gray-light);
    min-height: 200px;
    display: block;
    width: 100%;
    position: relative;
}

.entry-content .wp-block-image img[src=""]::after,
.entry-content .wp-block-image img:not([src])::after {
    content: "Кликни за да додадеш слика";
    color: var(--wp--preset--color--sepia);
    font-family: var(--wp--preset--font-family--serif);
    font-size: 0.9rem;
    text-align: center;
    padding: 20px;
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

/* За големи слики */
.entry-content .wp-block-image.size-large img[src=""],
.entry-content .wp-block-image.size-large img:not([src]) {
    min-height: 400px;
}

/* За средни слики */
.entry-content .wp-block-image.size-medium img[src=""],
.entry-content .wp-block-image.size-medium img:not([src]) {
    min-height: 300px;
}

/* Editor стилови за празни слики */
.editor-styles-wrapper .wp-block-image img[src=""],
.editor-styles-wrapper .wp-block-image img:not([src]) {
    background: var(--wp--preset--color--beige);
    border: 2px dashed var(--wp--preset--color--gray-light);
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
}

.editor-styles-wrapper .wp-block-image img[src=""]::after,
.editor-styles-wrapper .wp-block-image img:not([src])::after {
    content: "Кликни за да додадеш слика";
    color: var(--wp--preset--color--sepia);
    font-family: var(--wp--preset--font-family--serif);
    font-size: 0.9rem;
    text-align: center;
    padding: 20px;
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

/* ============================================
   Template Styles - Gutenberg Block-First
   ============================================ */

/* Single Catalog Template */
.nub-single-catalog {
    max-width: 100%;
}

.nub-single-catalog .entry-header {
    margin-bottom: var(--wp--preset--spacing--lg);
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.nub-single-catalog .catalog-viewer-wrapper {
    margin-top: var(--wp--preset--spacing--md);
}

.nub-single-catalog .catalog-viewer {
    background: var(--wp--preset--color--white);
    border-radius: var(--wp--preset--spacing--sm);
    overflow: hidden;
}

/* Flipbook container integration */
.nub-single-catalog .catalog-viewer .nub-flipbook-container {
    border: none;
    border-radius: 0;
    box-shadow: none;
    max-width: 1100px;
}

.nub-single-catalog .catalog-viewer .nub-flipbook-controls {
    background: var(--wp--preset--color--gray-light);
    border-bottom: 1px solid var(--wp--preset--color--gray-light);
}

.nub-single-catalog .catalog-viewer .nub-flipbook-viewer {
    background: var(--wp--preset--color--gray-dark);
    min-height: 600px;
}

/* Archive Template */
.nub-catalog-archive {
    min-height: 60vh;
}

.nub-catalog-archive .wp-block-group {
    max-width: 100%;
}

/* Responsive adjustments for templates */
@media (max-width: 768px) {
    body .nub-single-catalog .wp-block-heading {
        font-size: 2rem;
    }

    .nub-single-catalog .catalog-viewer .nub-flipbook-viewer {
        min-height: 400px;
        padding: 10px;
    }

    body .nub-catalog-archive .wp-block-heading {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    body .nub-single-catalog .wp-block-heading {
        font-size: 1.75rem;
    }

    body .nub-single-catalog .catalog-viewer {
        padding: var(--wp--preset--spacing--sm);
    }

    .nub-single-catalog .catalog-viewer .nub-flipbook-viewer {
        min-height: 300px;
    }
}

/* ============================================
   Page Template Styles - Using theme.json
   ============================================ */

.nub-page {
    max-width: 100%;
}

/* Page Header - Uses Gutenberg blocks, minimal CSS needed */
.page-featured-image img {
    border-radius: var(--wp--custom--borderRadius--md);
    box-shadow: var(--wp--preset--shadow--md);
}

/* Page Content */
.page-content {
    /* Не ограничувај max-width - alignwide блоковите треба да имаат своја ширина (1400px) */
    margin: 0 auto;
    width: 100%;
}

/* Кога .page-content е alignwide, користи theme.json wideSize (1400px) */
.page-content.alignwide {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.page-content .entry-content {
    background: var(--wp--preset--color--white);
    /* Осигури дека entry-content не го ограничува alignwide - користи 100% од parent */
    max-width: 100%;
    width: 100%;
    /* Осигури дека внатрешните alignwide блокови работат правилно */
    box-sizing: border-box;
}

/* Осигури дека .entry-content внатре во .page-content не го ограничува alignwide */
.page-content .entry-content .alignwide {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--wp--preset--spacing--sm);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
        gap: var(--wp--preset--spacing--sm);
    }

    .main-navigation ul {
        gap: var(--wp--preset--spacing--sm);
    }

    .page-content {
        padding-left: var(--wp--preset--spacing--sm);
        padding-right: var(--wp--preset--spacing--sm);
    }

    .page-content .entry-content {
        padding: var(--wp--preset--spacing--md);
    }

}

@media (max-width: 480px) {
    .site-branding h1 {
        font-size: var(--wp--preset--font-size--large);
    }

    .main-navigation ul {
        flex-direction: column;
        gap: var(--wp--preset--spacing--xs);
    }

    .page-content .entry-content {
        padding: var(--wp--preset--spacing--sm);
    }
}

/* ============================================
   Animations
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Accessibility - Focus States
   ============================================ */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--wp--preset--color--accent-orange);
    outline-offset: 3px;
    border-radius: 4px;
}

.nub-bookstore-style .catalog-sort:focus-visible {
    outline: 2px solid var(--wp--preset--color--accent-orange);
    outline-offset: 3px;
    border-radius: 4px;
}

.filter-select:focus-visible,
.filter-date:focus-visible {
    outline: 2px solid var(--wp--preset--color--accent-orange);
    outline-offset: 3px;
}

/* ==========================================================================
   Retro elevation — accessibility layer
   Keyboard focus for dropdowns, reduced-motion, and contrast fixes.
   ========================================================================== */

/* Desktop submenus/dropdowns must open on keyboard focus, not only on :hover.
   Focusing the trigger (link/button, which lives inside the wrapper) reveals
   the panel so its links become reachable by Tab. */
.main-navigation ul li:focus-within > ul {
    display: flex;
}

.user-menu:focus-within .user-dropdown,
.auth-menu:focus-within .auth-dropdown {
    display: block;
}

/* Rating stars were gray-light on beige (~1.1:1, effectively invisible). */
.nub-bookstore-style .catalog-rating .stars {
    color: var(--wp--preset--color--sepia);
}

/* Honour the OS "reduce motion" setting: drop the fade-in-up stagger,
   hover-lift translations and cover zoom that can trigger vestibular issues. */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }

    .catalog-card:hover,
    .nub-card:hover,
    .catalog-thumbnail img:hover,
    .nub-featured-newspaper__cover img:hover {
        transform: none !important;
    }
}

/* ==========================================================================
   Footer — masthead columns (retro wayfinding)
   ========================================================================== */

.footer-top {
    display: grid;
    grid-template-columns: 1.6fr repeat(3, 1fr);
    gap: 2.5rem;
    padding-bottom: 2.5rem;
    margin-bottom: 1.75rem;
    border-bottom: 1px solid rgba(243, 234, 215, 0.18);
}

.footer-nav {
    display: contents;
}

.footer-sitename {
    font-family: var(--wp--preset--font-family--serif);
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin: 0 0 0.5rem;
    color: var(--wp--preset--color--beige);
}

.footer-tagline {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--wp--preset--color--gray-light);
    max-width: 34ch;
}

.footer-col__title {
    font-family: var(--wp--preset--font-family--sans-serif);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--wp--preset--color--accent-orange);
    margin: 0 0 1rem;
}

.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-col li {
    margin-bottom: 0.6rem;
}

.footer-col a {
    color: var(--wp--preset--color--beige);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.footer-col a:hover,
.footer-col a:focus-visible {
    color: var(--wp--preset--color--accent-orange);
}

/* Copyright sits on the dark footer, so use a light muted tone (the darkened
   sepia is tuned for the light beige background, not this dark one). */
.site-footer .footer-bottom {
    color: var(--wp--preset--color--gray-light);
}

@media (max-width: 768px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 1.75rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

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

/* ==========================================================================
   Breadcrumbs (retro wayfinding)
   ========================================================================== */

.nub-breadcrumbs {
    margin: 0 0 1.5rem;
    font-family: var(--wp--preset--font-family--sans-serif);
    font-size: 0.8rem;
}

.nub-breadcrumbs__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.nub-breadcrumbs__item {
    display: flex;
    align-items: center;
    color: var(--wp--preset--color--gray-dark);
}

.nub-breadcrumbs__item:not(:last-child)::after {
    content: "\203A";
    margin-left: 0.5rem;
    color: var(--wp--preset--color--sepia);
}

.nub-breadcrumbs__item a {
    color: var(--wp--preset--color--sepia);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.nub-breadcrumbs__item a:hover,
.nub-breadcrumbs__item a:focus-visible {
    color: var(--wp--preset--color--accent-orange);
    border-bottom-color: currentColor;
}

.nub-breadcrumbs__item[aria-current="page"] {
    color: var(--wp--preset--color--retro-dark);
    font-weight: 600;
}

/* ==========================================================================
   Single issue — prev/next + back-to-category
   ========================================================================== */

.nub-issue-nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1.5rem;
    margin: 2.5rem auto 0;
    padding-top: 1.5rem;
    border-top: 2px solid var(--wp--preset--color--gray-light);
}

.nub-issue-nav__slot--next {
    text-align: right;
}

.nub-issue-nav__slot a {
    display: inline-flex;
    flex-direction: column;
    gap: 0.25rem;
    text-decoration: none;
    color: var(--wp--preset--color--retro-dark);
}

.nub-issue-nav__dir {
    font-family: var(--wp--preset--font-family--sans-serif);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--wp--preset--color--sepia);
}

.nub-issue-nav__title {
    font-family: var(--wp--preset--font-family--serif);
    font-size: 1.05rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

.nub-issue-nav__slot a:hover .nub-issue-nav__title,
.nub-issue-nav__slot a:focus-visible .nub-issue-nav__title {
    color: var(--wp--preset--color--accent-orange);
}

.nub-issue-nav__back {
    font-family: var(--wp--preset--font-family--sans-serif);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    color: var(--wp--preset--color--accent-orange);
    border: 1px solid var(--wp--preset--color--sepia);
    padding: 0.5rem 1rem;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.nub-issue-nav__back:hover,
.nub-issue-nav__back:focus-visible {
    background: var(--wp--preset--color--accent-orange);
    color: var(--wp--preset--color--white);
}

@media (max-width: 600px) {
    .nub-issue-nav {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .nub-issue-nav__slot--next {
        text-align: left;
    }
}

/* Header: login link + orange Register CTA for anonymous visitors */
.auth-menu {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.auth-register-cta {
    white-space: nowrap;
}

/* ==========================================================================
   Category (section) cards vs issue cards
   A category card drills DOWN into a section; an issue card OPENS a newspaper.
   Give categories a masthead top-rule + a › "enter" affordance so the two are
   never confused in the mixed grids.
   ========================================================================== */

.catalog-card--category {
    border-top: 3px solid var(--wp--preset--color--accent-orange);
}

.catalog-card--category .catalog-date {
    font-weight: 600;
    color: var(--wp--preset--color--retro-dark);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
}

.catalog-card--category .catalog-content .btn::after,
.catalog-card--category .catalog-content .btn-small::after {
    content: "\00a0\203A";
    font-weight: 700;
}

/* Archive empty state (distinguishes "no filter matches" from "empty category") */
.nub-empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.nub-empty-state p {
    color: var(--wp--preset--color--gray-dark);
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
}