/*
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: 'Times New Roman', serif;
    line-height: 1.6;
    color: #2c2416;
    background: #f5f0e8;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(0,0,0,0.02) 10px, rgba(0,0,0,0.02) 20px),
        repeating-linear-gradient(-45deg, transparent, transparent 10px, rgba(0,0,0,0.02) 10px, rgba(0,0,0,0.02) 20px);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header стилови - Retro */
.site-header {
    background: #faf8f4;
    border-bottom: 2px solid #d4c5b8;
    padding: 1rem 0;
}

.site-branding h1 {
    font-size: 1.5rem;
    margin: 0;
    font-family: 'Times New Roman', serif;
    font-weight: 700;
    color: #2c2416;
}

.site-branding a {
    text-decoration: none;
    color: #2c2416;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.main-navigation a {
    text-decoration: none;
    color: #5a4a3a;
    font-weight: 500;
}

.main-navigation a:hover {
    color: #8b7662;
}

/* Main content */
.site-main {
    padding: 2rem 0;
    min-height: 60vh;
}

.entry-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-family: 'Times New Roman', serif;
    font-weight: 700;
    color: #2c2416;
}

/* Entry Content - Matches editor styles for consistency */
.entry-content {
    line-height: 1.8;
    color: #5a4a3a;
    font-family: 'Times New Roman', serif;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    font-family: 'Times New Roman', serif !important;
    color: #2c2416 !important;
    font-weight: 700 !important;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

.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;
}

.entry-content p {
    color: #5a4a3a !important;
    margin-bottom: 1em;
    line-height: 1.8;
}

.entry-content .retro-title {
    font-family: 'Times New Roman', serif !important;
    font-weight: 700 !important;
    color: #2c2416 !important;
}

.entry-content .retro-text {
    color: #5a4a3a !important;
    line-height: 1.9 !important;
}

.entry-content .sepia-tone {
    color: #8b7662 !important;
}

.entry-content .retro-title-large {
    font-size: 3em !important;
    font-weight: 700 !important;
    color: #2c2416 !important;
}

.entry-content a {
    color: #8b7662 !important;
    text-decoration: underline !important;
}

.entry-content a:hover {
    color: #5a4a3a !important;
}

.entry-content blockquote {
    border-left: 4px solid #d4c5b8;
    padding: 15px 20px;
    margin-left: 0;
    color: #5a4a3a;
    font-style: italic;
    background: #faf8f4;
}

.entry-content ul,
.entry-content ol {
    margin-left: 2em;
    color: #5a4a3a;
    margin-bottom: 1em;
}

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

.entry-content strong {
    font-weight: 700;
    color: #2c2416;
}

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

.entry-content code {
    background: #e8ddd4;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    color: #5a4a3a;
}

.entry-content pre {
    background: #e8ddd4;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #d4c5b8;
    overflow-x: auto;
}

.entry-content hr {
    border: none;
    border-top: 2px solid #d4c5b8;
    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 #d4c5b8;
    padding: 10px;
    text-align: left;
}

.entry-content table th {
    background: #e8ddd4;
    font-weight: 700;
    color: #2c2416;
}

/* Footer стилови */
.site-footer {
    background-color: #f5f5f5;
    padding: 2rem 0;
    margin-top: 4rem;
    border-top: 1px solid #e5e5e5;
}

/* Header improvements */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    text-decoration: none;
    color: #5a4a3a;
    font-weight: 500;
    transition: color 0.3s;
}

.main-navigation a:hover {
    color: #8b7662;
}

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

.user-menu {
    position: relative;
    cursor: pointer;
}

.user-name {
    font-weight: 500;
    padding: 8px 16px;
    background: #f5f5f5;
    border-radius: 4px;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    min-width: 200px;
    margin-top: 5px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.user-menu:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
}

.user-dropdown a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #f5f5f5;
}

.user-dropdown a:last-child {
    border-bottom: none;
}

.user-dropdown a:hover {
    background: #f5f5f5;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: #0073aa;
    color: #fff;
}

.btn-primary:hover {
    background: #005a87;
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-secondary:hover {
    background: #fff;
    color: #667eea;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Hero Section - Retro 1940s Style */
.retro-hero {
    background: linear-gradient(135deg, #e8ddd4 0%, #d4c5b8 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.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: #8b7662;
    margin-bottom: 1rem;
    font-weight: 600;
}

.retro-title {
    font-family: 'Times New Roman', serif;
    font-size: 4rem;
    font-weight: 700;
    color: #2c2416;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    letter-spacing: 1px;
}

.hero-description {
    font-size: 1.1rem;
    color: #5a4a3a;
    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: #8b7662;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 300;
    color: #333;
    margin: 0;
}

.retro-title-large {
    font-family: 'Times New Roman', serif;
    font-size: 3rem;
    font-weight: 700;
    color: #2c2416;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.05);
}

.section-description {
    font-size: 1rem;
    color: #5a4a3a;
    font-style: italic;
}

/* Featured Catalogs Section - Retro */
.featured-catalogs-section.retro-section {
    padding: 80px 0;
    background: #faf8f4;
}

.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 0.3s;
}

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

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

.catalog-image {
    display: block;
    width: 100%;
    height: 350px;
    overflow: hidden;
    background: #f5f5f5;
    margin-bottom: 1rem;
}

.retro-image {
    position: relative;
    filter: sepia(20%) contrast(1.1) brightness(0.95);
    border: 3px solid #d4c5b8;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    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;
    color: #ccc;
}

.catalog-placeholder .dashicons {
    font-size: 80px;
    width: 80px;
    height: 80px;
}

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

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

.catalog-number {
    font-size: 0.9rem;
    color: #8b7662;
    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: 'Times New Roman', serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: #2c2416;
    margin-bottom: 0.5rem;
}

.catalog-info h3 a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s;
}

.retro-info h3 a {
    color: #2c2416;
    text-decoration: none;
    transition: color 0.3s;
}

.catalog-info h3 a:hover {
    color: #0073aa;
}

.retro-info h3 a:hover {
    color: #8b7662;
}

.catalog-price {
    font-size: 1rem;
    color: #5a4a3a;
    font-weight: 500;
    margin-bottom: 1rem;
}

.btn-view, .btn-subscribe {
    display: inline-block;
    padding: 10px 20px;
    text-decoration: none;
    border: 1px solid #333;
    color: #333;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.btn-view:hover {
    background: #333;
    color: #fff;
}

.btn-subscribe {
    background: #333;
    color: #fff;
}

.btn-subscribe:hover {
    background: #555;
}

/* Retro Buttons */
.btn-retro {
    display: inline-block;
    padding: 12px 30px;
    background: transparent;
    border: 2px solid #8b7662;
    color: #8b7662;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
}

.btn-retro:hover {
    background: #8b7662;
    color: #f5f0e8;
}

.btn-retro-small {
    display: inline-block;
    padding: 8px 20px;
    background: transparent;
    border: 1px solid #8b7662;
    color: #8b7662;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s;
    margin-top: 0.5rem;
}

.btn-retro-small:hover {
    background: #8b7662;
    color: #f5f0e8;
}

.btn-retro-outline {
    display: inline-block;
    padding: 12px 30px;
    background: transparent;
    border: 2px solid #8b7662;
    color: #8b7662;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-retro-outline:hover {
    background: #8b7662;
    color: #f5f0e8;
}

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

.btn-view-all {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border: 2px solid #333;
    color: #333;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-view-all:hover {
    background: #333;
    color: #fff;
}

.no-content {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
}

/* Page Content Section - Editor Content */
.page-content-section {
    padding: 60px 0;
    background: #faf8f4;
}

.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: #f5f0e8;
}

.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: #666;
}

.retro-content p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #5a4a3a;
    margin-bottom: 2rem;
}

/* Newsletter Section - Retro */
.newsletter-section.retro-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #e8ddd4 0%, #d4c5b8 100%);
    text-align: center;
}

.newsletter-content h2 {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 1rem;
    color: #333;
}

.newsletter-content .retro-title-large {
    font-family: 'Times New Roman', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c2416;
    margin-bottom: 1rem;
}

.newsletter-content p {
    font-size: 1.1rem;
    color: #5a4a3a;
    margin-bottom: 2rem;
}

/* Footer improvements - Retro */
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section p {
    color: #666;
    line-height: 1.6;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    text-decoration: none;
    color: #666;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #0073aa;
}

/* Footer - Retro */
.site-footer {
    background: #e8ddd4;
    border-top: 2px solid #d4c5b8;
}

.footer-content {
    color: #5a4a3a;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 2px solid #d4c5b8;
    color: #8b7662;
}

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

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

.archive-description {
    color: #666;
    font-size: 1.1rem;
}

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

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

.pagination .page-numbers {
    display: inline-block;
    padding: 8px 12px;
    text-decoration: none;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    color: #333;
    transition: all 0.3s;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

/* Language Switcher - Retro Style */
.nub-lang-switcher {
    display: inline-flex;
    gap: 0.3rem;
    align-items: center;
    border: 1px solid #d4c5b8;
    padding: 2px;
    border-radius: 4px;
    background: #faf8f4;
}

.nub-lang-switcher .lang-link {
    display: inline-block;
    padding: 6px 12px;
    text-decoration: none;
    color: #5a4a3a;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s;
    font-family: 'Times New Roman', serif;
    border-radius: 3px;
    min-width: 40px;
    text-align: center;
}

.nub-lang-switcher .lang-link:hover {
    background: #e8ddd4;
    color: #2c2416;
}

.nub-lang-switcher .lang-link.active {
    background: #8b7662;
    color: #f5f0e8;
    font-weight: 600;
}

.header-language-switcher {
    margin-right: 1rem;
    padding-right: 1rem;
    border-right: 1px solid #d4c5b8;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .main-navigation {
        width: 100%;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .header-actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    .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 #d4c5b8;
        padding-bottom: 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    .nub-lang-switcher {
        gap: 0.2rem;
    }
    
    .nub-lang-switcher .lang-link {
        padding: 5px 10px;
        font-size: 0.8rem;
        min-width: 35px;
    }
    
    .header-actions {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
}

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

.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;
}

.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 #d4c5b8;
    padding-left: 20px;
    margin: 1.5em 0;
    font-style: italic;
}

.entry-content .wp-block-pullquote {
    border-top: 4px solid #d4c5b8;
    border-bottom: 4px solid #d4c5b8;
    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 #8b7662;
    color: #8b7662;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.entry-content .wp-block-button .wp-block-button__link:hover {
    background: #8b7662;
    color: #f5f0e8;
}

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

.wp-block-paragraph.is-style-sepia-tone,
.entry-content .wp-block-paragraph.is-style-sepia-tone {
    color: #8b7662;
}

.wp-block-heading.is-style-retro-title,
.entry-content .wp-block-heading.is-style-retro-title {
    font-family: 'Times New Roman', serif;
    font-weight: 700;
    color: #2c2416;
}

.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: #2c2416;
    font-family: 'Times New Roman', serif;
}

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

.entry-content .wp-block-heading {
    font-family: 'Times New Roman', serif;
    color: #2c2416;
    font-weight: 700;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

.entry-content .wp-block-image img {
    border: 3px solid #d4c5b8;
    filter: sepia(20%) contrast(1.1) brightness(0.95);
}

.entry-content .wp-block-separator {
    border: none;
    border-top: 2px solid #d4c5b8;
    margin: 2em 0;
}

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

