/* =====================================================
   VMO Nox Blog - Professional Editorial Design
   Virtual Marketing Officer - Jayne Navarre
   ===================================================== */

/* === Custom Properties === */
:root {
    --vmo-primary: #2d6a4f;
    --vmo-primary-light: #40916c;
    --vmo-primary-dark: #1b4332;
    --vmo-accent: #d4a574;
    --vmo-accent-hover: #c4944a;
    --vmo-gold: #b8860b;
    --vmo-bg: #faf8f5;
    --vmo-bg-card: #ffffff;
    --vmo-text: #2c2c2c;
    --vmo-text-secondary: #6b6258;
    --vmo-text-muted: #8c8278;
    --vmo-border: #e8e4df;
    --vmo-border-light: #f0ece7;
    --vmo-shadow-sm: 0 1px 3px rgba(44,44,44,0.06);
    --vmo-shadow-md: 0 4px 16px rgba(44,44,44,0.08);
    --vmo-shadow-lg: 0 8px 32px rgba(44,44,44,0.10);
    --vmo-radius: 12px;
    --vmo-transition: 0.25s ease;
}

/* === Base / Body === */
body,
body.vmo-nox-blog {
    background-color: var(--vmo-bg) !important;
    color: var(--vmo-text) !important;
    font-family: 'Source Sans 3', 'Source Sans Pro', -apple-system, BlinkMacSystemFont, sans-serif !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.wp-site-blocks {
    background-color: var(--vmo-bg) !important;
}

/* Reset dark mode overrides from Nox */
body .wp-site-blocks,
body main,
body .wp-block-group,
body .wp-block-query,
body .wp-block-post-template,
body .wp-block-columns,
body .wp-block-column {
    color: var(--vmo-text) !important;
}

/* === Typography === */
h1, h2, h3, h4, h5, h6,
.wp-block-heading {
    font-family: 'DM Serif Display', Georgia, 'Times New Roman', serif !important;
    color: var(--vmo-text) !important;
    line-height: 1.3;
}

p, li, span, div {
    color: var(--vmo-text);
}

a {
    color: var(--vmo-primary) !important;
    text-decoration: none !important;
    transition: color var(--vmo-transition);
}

a:hover {
    color: var(--vmo-accent-hover) !important;
}

/* === Header === */
header.wp-block-template-part,
header .wp-block-group {
    background-color: #1a1a1a !important;
    border-bottom: 3px solid var(--vmo-primary) !important;
}

header .wp-block-site-logo img {
    max-width: 300px !important;
    width: 300px !important;
    height: auto !important;
    filter: brightness(1.05);
}

@media (max-width: 768px) {
    header .wp-block-site-logo img {
        max-width: 200px !important;
        width: 200px !important;
    }
}

/* === Navigation === */
.wp-block-navigation a,
header a,
header .wp-block-navigation a {
    color: #e8e4df !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px;
    transition: color var(--vmo-transition) !important;
}

.wp-block-navigation a:hover,
header a:hover,
header .wp-block-navigation a:hover {
    color: var(--vmo-accent) !important;
}

/* === Main Content Area === */
main.wp-block-group {
    background-color: var(--vmo-bg) !important;
}

/* === Post Cards === */
.vmo-post-card,
.wp-block-post {
    background: var(--vmo-bg-card) !important;
    border: 1px solid var(--vmo-border) !important;
    border-radius: var(--vmo-radius) !important;
    padding: 1.75rem 2rem !important;
    margin-bottom: 1.75rem !important;
    box-shadow: var(--vmo-shadow-sm) !important;
    transition: box-shadow var(--vmo-transition), transform var(--vmo-transition) !important;
}

.vmo-post-card:hover,
.wp-block-post:hover {
    box-shadow: var(--vmo-shadow-md) !important;
    transform: translateY(-2px);
}

/* === Featured Images === */
.wp-block-post-featured-image img {
    border-radius: 8px !important;
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
    box-shadow: var(--vmo-shadow-sm);
}

.wp-block-post-featured-image a {
    display: block;
    overflow: hidden;
    border-radius: 8px !important;
}

.wp-block-post-featured-image a img {
    transition: transform 0.4s ease !important;
}

.wp-block-post-featured-image a:hover img {
    transform: scale(1.03);
}

/* === Category Badges === */
.wp-block-post-terms a,
.taxonomy-category a,
.vmo-category-badges a {
    background: linear-gradient(135deg, var(--vmo-primary), var(--vmo-primary-light)) !important;
    color: #ffffff !important;
    padding: 4px 12px !important;
    border-radius: 20px !important;
    font-size: 0.68rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    text-decoration: none !important;
    display: inline-block !important;
    margin: 2px 4px 2px 0 !important;
    transition: all var(--vmo-transition) !important;
    border: none !important;
    box-shadow: 0 2px 4px rgba(45,106,79,0.2);
}

.wp-block-post-terms a:hover,
.taxonomy-category a:hover,
.vmo-category-badges a:hover {
    background: linear-gradient(135deg, var(--vmo-accent-hover), var(--vmo-accent)) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(212,165,116,0.3);
    transform: translateY(-1px);
}

/* Limit visible categories */
.wp-block-post-terms a:nth-child(n+5),
.wp-block-post-terms .wp-block-post-terms__separator:nth-of-type(n+4) {
    display: none !important;
}

.wp-block-post-terms .wp-block-post-terms__separator {
    display: none !important;
}

/* === Post Titles === */
.wp-block-post-title,
.wp-block-post-title a {
    font-family: 'DM Serif Display', Georgia, serif !important;
    color: var(--vmo-text) !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    transition: color var(--vmo-transition) !important;
}

.wp-block-post-title a:hover {
    color: var(--vmo-primary) !important;
}

/* === Post Meta (Author & Date) === */
.vmo-post-meta,
.vmo-post-meta * {
    color: var(--vmo-text-secondary) !important;
}

.wp-block-post-author-name,
.wp-block-post-author-name a {
    color: var(--vmo-primary-dark) !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
}

.wp-block-post-date {
    color: var(--vmo-text-muted) !important;
    font-size: 0.9rem !important;
}

/* === Excerpt === */
.wp-block-post-excerpt {
    color: var(--vmo-text-secondary) !important;
    line-height: 1.75 !important;
    font-size: 1rem !important;
}

.wp-block-post-excerpt__more-link {
    color: var(--vmo-primary) !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    font-size: 0.8rem !important;
    letter-spacing: 0.8px !important;
    display: inline-block !important;
    padding-top: 0.25rem !important;
    transition: color var(--vmo-transition) !important;
    border-bottom: 2px solid transparent;
}

.wp-block-post-excerpt__more-link:hover {
    color: var(--vmo-accent-hover) !important;
    border-bottom-color: var(--vmo-accent-hover);
}

/* === Pagination === */
.wp-block-query-pagination {
    margin-top: 2rem;
}

.wp-block-query-pagination a,
.wp-block-query-pagination span {
    color: var(--vmo-text) !important;
    text-decoration: none !important;
    padding: 10px 16px !important;
    border: 1px solid var(--vmo-border) !important;
    border-radius: 8px !important;
    transition: all var(--vmo-transition) !important;
    background: var(--vmo-bg-card) !important;
    font-weight: 600 !important;
}

.wp-block-query-pagination a:hover {
    background: var(--vmo-primary) !important;
    color: #ffffff !important;
    border-color: var(--vmo-primary) !important;
    box-shadow: var(--vmo-shadow-sm);
}

.wp-block-query-pagination .current {
    background: var(--vmo-primary) !important;
    color: #ffffff !important;
    border-color: var(--vmo-primary) !important;
}

/* =====================================================
   SIDEBAR
   ===================================================== */
.vmo-sidebar {
    position: sticky;
    top: 2rem;
}

.vmo-sidebar-widget {
    background: var(--vmo-bg-card) !important;
    border: 1px solid var(--vmo-border) !important;
    box-shadow: var(--vmo-shadow-sm) !important;
    transition: box-shadow var(--vmo-transition) !important;
}

.vmo-sidebar-widget:hover {
    box-shadow: var(--vmo-shadow-md) !important;
}

/* Sidebar Headings */
.vmo-sidebar-heading {
    font-family: 'Source Sans 3', 'Source Sans Pro', sans-serif !important;
    color: var(--vmo-primary-dark) !important;
    border-bottom: 2px solid var(--vmo-accent) !important;
    padding-bottom: 0.6rem !important;
    margin-bottom: 1rem !important;
    font-size: 1.05rem !important;
}

/* About Widget */
.vmo-about-widget {
    background: linear-gradient(180deg, #f5f0eb 0%, var(--vmo-bg-card) 100%) !important;
    border-color: var(--vmo-border) !important;
}

.vmo-jayne-photo img,
.vmo-about-widget .wp-block-image img {
    border-radius: 50% !important;
    width: 120px !important;
    height: 120px !important;
    object-fit: cover !important;
    border: 3px solid var(--vmo-accent) !important;
    box-shadow: 0 4px 12px rgba(212,165,116,0.25) !important;
}

/* Categories Widget */
.vmo-categories-widget .wp-block-categories-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.vmo-categories-widget .wp-block-categories-list li {
    padding: 0.5rem 0 !important;
    border-bottom: 1px solid var(--vmo-border-light) !important;
    font-size: 0.92rem !important;
}

.vmo-categories-widget .wp-block-categories-list li:last-child {
    border-bottom: none !important;
}

.vmo-categories-widget .wp-block-categories-list a {
    color: var(--vmo-text) !important;
    font-weight: 500 !important;
    transition: color var(--vmo-transition), padding-left var(--vmo-transition) !important;
}

.vmo-categories-widget .wp-block-categories-list a:hover {
    color: var(--vmo-primary) !important;
    padding-left: 4px !important;
}

/* Tag Cloud */
.vmo-tags-widget .wp-block-tag-cloud a {
    background: var(--vmo-bg) !important;
    color: var(--vmo-text-secondary) !important;
    padding: 4px 10px !important;
    border-radius: 6px !important;
    border: 1px solid var(--vmo-border) !important;
    margin: 3px !important;
    display: inline-block !important;
    font-size: 0.82rem !important;
    transition: all var(--vmo-transition) !important;
    line-height: 1.5;
}

.vmo-tags-widget .wp-block-tag-cloud a:hover {
    background: var(--vmo-primary) !important;
    color: #ffffff !important;
    border-color: var(--vmo-primary) !important;
}

/* Book Widget */
.vmo-book-widget {
    background: linear-gradient(180deg, #f9f5f0 0%, var(--vmo-bg-card) 100%) !important;
    text-align: center;
}

.vmo-book-cover img {
    border-radius: 8px !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12) !important;
    max-width: 180px !important;
    transition: transform var(--vmo-transition) !important;
}

.vmo-book-cover a:hover img {
    transform: scale(1.03);
}

.vmo-book-btn .wp-block-button__link {
    background: linear-gradient(135deg, var(--vmo-primary), var(--vmo-primary-light)) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    padding: 10px 24px !important;
    border-radius: 8px !important;
    transition: all var(--vmo-transition) !important;
    box-shadow: 0 2px 8px rgba(45,106,79,0.25);
}

.vmo-book-btn .wp-block-button__link:hover {
    background: linear-gradient(135deg, var(--vmo-accent-hover), var(--vmo-accent)) !important;
    box-shadow: 0 4px 12px rgba(212,165,116,0.35);
    transform: translateY(-1px);
}

/* Search Widget */
.vmo-search-widget .wp-block-search__inside-wrapper {
    border-radius: 8px !important;
    border: 2px solid var(--vmo-border) !important;
    overflow: hidden;
    transition: border-color var(--vmo-transition);
}

.vmo-search-widget .wp-block-search__inside-wrapper:focus-within {
    border-color: var(--vmo-primary) !important;
}

.vmo-search-widget .wp-block-search__input {
    border: none !important;
    background: var(--vmo-bg-card) !important;
    color: var(--vmo-text) !important;
    font-size: 0.92rem !important;
    padding: 10px 14px !important;
}

.vmo-search-widget .wp-block-search__button {
    background: var(--vmo-primary) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 10px 14px !important;
    transition: background var(--vmo-transition) !important;
}

.vmo-search-widget .wp-block-search__button:hover {
    background: var(--vmo-primary-dark) !important;
}

/* =====================================================
   FOOTER
   ===================================================== */
footer.wp-block-template-part,
footer .wp-block-group {
    background: #1a1a1a !important;
    color: #b8b0a5 !important;
}

footer.wp-block-template-part {
    border-top: 3px solid var(--vmo-primary) !important;
    margin-top: 3rem !important;
    padding: 2.5rem 0 !important;
}

footer.wp-block-template-part * {
    color: #b8b0a5 !important;
}

footer.wp-block-template-part a,
footer.wp-block-template-part a * {
    color: var(--vmo-accent) !important;
    transition: color var(--vmo-transition) !important;
}

footer.wp-block-template-part a:hover,
footer.wp-block-template-part a:hover * {
    color: #ffffff !important;
}

.vmo-footer-copyright {
    text-align: center;
    padding: 1rem 0 0;
    font-size: 0.85rem;
    color: #8c8278;
}

/* =====================================================
   SINGLE POST
   ===================================================== */
.single .wp-block-post-content,
.wp-block-post-content {
    font-size: 1.1rem !important;
    line-height: 1.85 !important;
    color: var(--vmo-text) !important;
}

.wp-block-post-content p {
    margin-bottom: 1.5rem;
    color: var(--vmo-text) !important;
}

.wp-block-post-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.6rem !important;
}

.wp-block-post-content h3 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-size: 1.35rem !important;
}

.wp-block-post-content blockquote {
    border-left: 4px solid var(--vmo-accent) !important;
    padding-left: 1.5rem;
    font-style: italic;
    color: var(--vmo-text-secondary) !important;
    margin: 2rem 0;
}

.wp-block-post-content img {
    border-radius: 8px;
    box-shadow: var(--vmo-shadow-sm);
}

/* Single post header styling */
.single .wp-block-post-title,
body:not(.home) .wp-block-post-title:not(a) {
    font-size: 2.2rem !important;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1024px) {
    .wp-block-columns.alignwide {
        flex-direction: column !important;
    }

    .wp-block-columns.alignwide > .wp-block-column {
        flex-basis: 100% !important;
        width: 100% !important;
    }

    .vmo-sidebar {
        position: relative !important;
        top: 0 !important;
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .vmo-post-card,
    .wp-block-post {
        padding: 1.25rem 1.5rem !important;
        margin-bottom: 1.25rem !important;
    }

    .wp-block-post-title,
    .wp-block-post-title a {
        font-size: 1.3rem !important;
    }

    .vmo-sidebar-widget {
        padding: 1.25rem !important;
    }
}

/* =====================================================
   MISCELLANEOUS / OVERRIDES
   ===================================================== */

/* Override dark theme backgrounds */
.has-neutral-200-background-color {
    background-color: var(--vmo-bg) !important;
}

.has-neutral-0-background-color {
    background-color: var(--vmo-bg-card) !important;
}

/* Post navigation (single) */
.wp-block-post-navigation-link a {
    color: var(--vmo-primary) !important;
    font-weight: 600;
}

.wp-block-post-navigation-link a:hover {
    color: var(--vmo-accent-hover) !important;
}

/* Comments section */
.wp-block-comments-title,
.comment-author {
    color: var(--vmo-text) !important;
}

/* Pill-style tags on single posts */
.is-style-pill a {
    background: var(--vmo-bg) !important;
    color: var(--vmo-text-secondary) !important;
    padding: 4px 12px !important;
    border-radius: 20px !important;
    border: 1px solid var(--vmo-border) !important;
    font-size: 0.82rem !important;
    transition: all var(--vmo-transition) !important;
}

.is-style-pill a:hover {
    background: var(--vmo-primary) !important;
    color: #ffffff !important;
    border-color: var(--vmo-primary) !important;
}

/* Archive/Category page titles */
.wp-block-query-title {
    font-family: 'DM Serif Display', Georgia, serif !important;
    color: var(--vmo-text) !important;
    font-size: 2rem !important;
}

/* No featured image placeholder styling */
.vmo-post-card .wp-block-post-featured-image {
    min-height: 0;
}

/* Fix Plover dark mode reset */
[data-color-mode="dark"] body,
body[data-color-mode="dark"],
body.plover-dark-mode {
    background-color: var(--vmo-bg) !important;
    color: var(--vmo-text) !important;
}

[data-color-mode="dark"] .wp-site-blocks,
[data-color-mode="dark"] .wp-block-group,
[data-color-mode="dark"] .wp-block-post,
[data-color-mode="dark"] main {
    background-color: var(--vmo-bg) !important;
    color: var(--vmo-text) !important;
}

/* Keep header and footer dark even in forced light mode */
[data-color-mode="dark"] header.wp-block-template-part,
[data-color-mode="dark"] header .wp-block-group,
header.wp-block-template-part,
header .wp-block-group {
    background-color: #1a1a1a !important;
}

[data-color-mode="dark"] footer.wp-block-template-part,
[data-color-mode="dark"] footer .wp-block-group {
    background: #1a1a1a !important;
}
