/*
 * blog-brand.css
 * Brand alignment for the Dream Spa WordPress blog.
 * Only contains rules that can't live in theme.json (hover transforms,
 * pagination, search form, mobile grid, defensive Manrope override).
 * theme.json provides the canonical brand layer (palette, fonts,
 * element + block typography, colors, buttons, links, quote).
 */

/* ===== Defensive: kill parent theme's Manrope body font in case theme.json
   merge order doesn't fully override it on the live cache. ===== */
.wp-site-blocks,
.wp-site-blocks p,
.wp-site-blocks li {
    font-family: Lato, sans-serif;
}

/* ===== Archive / Home / Search post-listing cards ===== */
.home.blog .wp-block-post-template > li,
.archive .wp-block-post-template > li,
.search .wp-block-post-template > li {
    background-color: #FFFFFF;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
                box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.home.blog .wp-block-post-template > li:hover,
.archive .wp-block-post-template > li:hover,
.search .wp-block-post-template > li:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.home.blog .wp-block-post-template .wp-block-post-featured-image img,
.archive .wp-block-post-template .wp-block-post-featured-image img,
.search .wp-block-post-template .wp-block-post-featured-image img {
    border-radius: 0 !important;
}

.home.blog .wp-block-post-template > li > .wp-block-post-title,
.home.blog .wp-block-post-template > li > .wp-block-post-excerpt,
.archive .wp-block-post-template > li > .wp-block-post-title,
.archive .wp-block-post-template > li > .wp-block-post-excerpt,
.search .wp-block-post-template > li > .wp-block-post-title,
.search .wp-block-post-template > li > .wp-block-post-excerpt {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.home.blog .wp-block-post-template > li > .wp-block-post-excerpt {
    padding-bottom: 1.5rem;
}

/* Card title hover (theme.json link hover targets <a> only — this catches the post-title block link) */
.wp-block-post-template .wp-block-post-title a:hover {
    color: #56413D;
}

/* ===== Pagination ===== */
.wp-block-query-pagination .wp-block-query-pagination-numbers a,
.wp-block-query-pagination .wp-block-query-pagination-next,
.wp-block-query-pagination .wp-block-query-pagination-previous {
    color: #203A5C;
    text-decoration: none;
    font-weight: 600;
}

.wp-block-query-pagination .current {
    color: #C5A059;
    font-weight: 700;
}

/* ===== Search form ===== */
.wp-block-search__input {
    border: 2px solid #203A5C;
    border-radius: 100px;
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
}

.wp-block-search__button {
    background-color: #203A5C;
    color: #FFFFFF;
    border-radius: 100px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.75rem 2rem;
    border: none;
    transition: background-color 0.3s ease;
}

.wp-block-search__button:hover {
    background-color: #56413D;
}

/* ===== Outline button variant (theme.json handles primary fill) ===== */
.wp-block-button.is-style-outline .wp-block-button__link {
    background-color: transparent;
    border: 2px solid #203A5C;
    color: #203A5C;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
    background-color: #203A5C;
    color: #FFFFFF;
}

/* Lift effect on primary button (theme.json sets the rest) */
.wp-block-button .wp-block-button__link {
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.wp-block-button .wp-block-button__link:hover {
    transform: translateY(-3px);
}

/* ===== Separator polish (gold center rule) ===== */
.wp-block-separator:not(.is-style-wide):not(.is-style-dots) {
    width: 80px;
    margin-left: auto;
    margin-right: auto;
    opacity: 1;
}

/* ===== Mobile: stack the 3-col post grid ===== */
@media (max-width: 768px) {
    .home.blog .wp-block-post-template,
    .archive .wp-block-post-template,
    .search .wp-block-post-template {
        grid-template-columns: 1fr !important;
    }
}

/* ===== Post-content lists =====
   Brand-styled bullets/numbers for ul/ol inside the entry body. The parent
   theme falls back to default browser bullets, which look generic next to
   the rest of the site. */
.entry-content ul,
.wp-block-post-content ul {
    list-style: none;
    padding-left: 0;
    margin: 0 0 1.5rem 0;
}

.entry-content ul > li,
.wp-block-post-content ul > li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.5rem;
    line-height: 1.7;
    color: #333;
    font-family: Lato, sans-serif;
}

.entry-content ul > li::before,
.wp-block-post-content ul > li::before {
    content: '';
    position: absolute;
    left: 0.25rem;
    top: 0.7em;
    width: 8px;
    height: 8px;
    background-color: #C5A059;
    border-radius: 50%;
}

.entry-content ol,
.wp-block-post-content ol {
    list-style: decimal;
    padding-left: 1.75rem;
    margin: 0 0 1.5rem 0;
}

.entry-content ol > li,
.wp-block-post-content ol > li {
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
    line-height: 1.7;
    color: #333;
    font-family: Lato, sans-serif;
}

.entry-content ol > li::marker,
.wp-block-post-content ol > li::marker {
    color: #C5A059;
    font-weight: 700;
}

/* Nested lists — tighter vertical rhythm */
.entry-content li > ul,
.entry-content li > ol,
.wp-block-post-content li > ul,
.wp-block-post-content li > ol {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

/* ===== In-content CTA buttons =====
   Two ways to render a brand-styled CTA inside post content:
     1. Explicit class — `<a class="cta-button" href="...">Book now</a>`
     2. Auto-promote — any paragraph whose only child is a Mangomint
        booking link is treated as a CTA and rendered as a centered button.
        (Restricted to mangomint.com to avoid false positives on inline
        attribution links.) */
.entry-content a.cta-button,
.wp-block-post-content a.cta-button,
.entry-content p:has(> a[href*="mangomint.com"]:only-child) > a,
.wp-block-post-content p:has(> a[href*="mangomint.com"]:only-child) > a {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #203A5C;
    color: #FFFFFF !important;
    border-radius: 100px;
    font-family: Lato, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    line-height: 1.2;
    text-decoration: none !important;
    box-shadow: 0 4px 15px rgba(32, 58, 92, 0.3);
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    /* Defeat the inline gold-underline animation set on .entry-content a */
    background-image: none !important;
    background-size: auto !important;
}

.entry-content a.cta-button:hover,
.wp-block-post-content a.cta-button:hover,
.entry-content p:has(> a[href*="mangomint.com"]:only-child) > a:hover,
.wp-block-post-content p:has(> a[href*="mangomint.com"]:only-child) > a:hover {
    background-color: #56413D;
    color: #FFFFFF !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(86, 65, 61, 0.4);
}

/* Center & give breathing room to standalone-CTA paragraphs */
.entry-content p.is-cta,
.wp-block-post-content p.is-cta,
.entry-content p:has(> a[href*="mangomint.com"]:only-child),
.wp-block-post-content p:has(> a[href*="mangomint.com"]:only-child) {
    text-align: center;
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
}
