/*
Theme Name: Moubina
Theme URI: https://majormedia.marketing
Author: MajorMedia
Description: Moubina Immobilier.
Version: 1.0.0
Text Domain: moubina
*/

/* ========================================
   Blog Post Content Styles (WordPress Editor)
   ======================================== */

.blog-post-content {
    font-family: 'PP Neue Montreal', sans-serif;
    color: rgba(0, 0, 0, 0.65);
    font-size: 1rem;
    line-height: 1.75;
    font-weight: 500;
}

/* Paragraphs */
.blog-post-content p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.75;
}

@media (min-width: 640px) {
    .blog-post-content p {
        font-size: 1rem;
        margin-bottom: 1.25rem;
    }
}

@media (min-width: 768px) {
    .blog-post-content p {
        font-size: 1.125rem;
        margin-bottom: 1.5rem;
    }
}

/* Intro paragraph - first paragraph or with intro class */
.blog-post-content > p:first-of-type,
.blog-post-content .intro {
    color: var(--color-secondary, #1a1a2e);
    font-size: 1rem;
    line-height: 1.625;
    font-weight: 500;
    margin-bottom: 2rem;
}

@media (min-width: 640px) {
    .blog-post-content > p:first-of-type,
    .blog-post-content .intro {
        font-size: 1.125rem;
    }
}

@media (min-width: 768px) {
    .blog-post-content > p:first-of-type,
    .blog-post-content .intro {
        font-size: 1.25rem;
    }
}

@media (min-width: 1024px) {
    .blog-post-content > p:first-of-type,
    .blog-post-content .intro {
        font-size: 1.5rem;
    }
}

/* Headings */
.blog-post-content h1 {
    font-family: 'PP Neue Montreal', sans-serif;
    color: var(--color-secondary, #1a1a2e);
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.2;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .blog-post-content h1 {
        font-size: 1.875rem;
    }
}

@media (min-width: 768px) {
    .blog-post-content h1 {
        font-size: 2.25rem;
    }
}

@media (min-width: 1024px) {
    .blog-post-content h1 {
        font-size: 3rem;
    }
}

@media (min-width: 1280px) {
    .blog-post-content h1 {
        font-size: 3.75rem;
    }
}

.blog-post-content h2 {
    font-family: 'PP Neue Montreal', sans-serif;
    color: var(--color-secondary, #1a1a2e);
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.2;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .blog-post-content h2 {
        font-size: 1.875rem;
        margin-bottom: 1.75rem;
    }
}

@media (min-width: 768px) {
    .blog-post-content h2 {
        font-size: 2.25rem;
        margin-bottom: 2rem;
    }
}

@media (min-width: 1024px) {
    .blog-post-content h2 {
        font-size: 3rem;
    }
}

@media (min-width: 1280px) {
    .blog-post-content h2 {
        font-size: 3.75rem;
    }
}

.blog-post-content h3 {
    font-family: 'PP Neue Montreal', sans-serif;
    color: var(--color-secondary, #1a1a2e);
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.3;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

@media (min-width: 640px) {
    .blog-post-content h3 {
        font-size: 1.5rem;
    }
}

@media (min-width: 768px) {
    .blog-post-content h3 {
        font-size: 1.875rem;
    }
}

.blog-post-content h4 {
    font-family: 'PP Neue Montreal', sans-serif;
    color: var(--color-secondary, #1a1a2e);
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
    margin-top: 1.25rem;
    margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
    .blog-post-content h4 {
        font-size: 1.25rem;
    }
}

/* Bold text */
.blog-post-content strong,
.blog-post-content b {
    font-weight: 700;
    color: var(--color-secondary, #1a1a2e);
}

/* Italic text */
.blog-post-content em,
.blog-post-content i {
    font-style: italic;
}

/* Links */
.blog-post-content a {
    color: var(--color-primary, #c8956c);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

.blog-post-content a:hover {
    color: var(--color-secondary, #1a1a2e);
}

/* Lists */
.blog-post-content ul,
.blog-post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.blog-post-content ul {
    list-style-type: disc;
}

.blog-post-content ol {
    list-style-type: decimal;
}

.blog-post-content li {
    margin-bottom: 0.5rem;
    line-height: 1.75;
}

.blog-post-content li::marker {
    color: var(--color-primary, #c8956c);
}

/* Blockquote */
.blog-post-content blockquote {
    border-left: 4px solid var(--color-primary, #c8956c);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--color-secondary, #1a1a2e);
    font-size: 1.125rem;
}

@media (min-width: 768px) {
    .blog-post-content blockquote {
        font-size: 1.25rem;
        padding-left: 2rem;
        margin: 2rem 0;
    }
}

/* Images */
.blog-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    margin: 1.5rem 0;
}

@media (min-width: 640px) {
    .blog-post-content img {
        border-radius: 1rem;
        margin: 2rem 0;
    }
}

/* Image with caption */
.blog-post-content figure {
    margin: 1.5rem 0;
}

@media (min-width: 640px) {
    .blog-post-content figure {
        margin: 2rem 0;
    }
}

.blog-post-content figure img {
    margin: 0;
}

.blog-post-content figcaption {
    text-align: center;
    font-size: 0.875rem;
    color: rgba(0, 0, 0, 0.5);
    margin-top: 0.75rem;
}

/* Horizontal rule / separator */
.blog-post-content hr {
    border: none;
    border-top: 2px solid rgba(0, 0, 0, 0.05);
    margin: 2rem 0;
}

@media (min-width: 768px) {
    .blog-post-content hr {
        margin: 2.5rem 0;
    }
}

/* Code */
.blog-post-content code {
    background-color: rgba(0, 0, 0, 0.05);
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
    font-family: monospace;
}

.blog-post-content pre {
    background-color: rgba(0, 0, 0, 0.05);
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.blog-post-content pre code {
    background: none;
    padding: 0;
}

/* Tables */
.blog-post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.blog-post-content th,
.blog-post-content td {
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0.75rem 1rem;
    text-align: left;
}

.blog-post-content th {
    background-color: rgba(0, 0, 0, 0.03);
    font-weight: 600;
    color: var(--color-secondary, #1a1a2e);
}

/* Strategy/Tip box section */
.blog-post-content .strategy-box,
.blog-post-content .tip-box {
    background-color: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin: 1.5rem 0;
    position: relative;
}

@media (min-width: 640px) {
    .blog-post-content .strategy-box,
    .blog-post-content .tip-box {
        border-radius: 1rem;
        margin: 2rem 0;
    }
}

.blog-post-content .strategy-box img,
.blog-post-content .tip-box img {
    margin: 0;
    border-radius: 0;
}

/* Emoji pointer style */
.blog-post-content .pointer,
.blog-post-content p:has(> span:first-child:contains("👉")) {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

/* Section titles with emoji */
.blog-post-content .section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.65;
    margin-bottom: 0.75rem;
}

@media (min-width: 640px) {
    .blog-post-content .section-title {
        margin-bottom: 1rem;
    }
}

.blog-post-content .section-title span:first-child {
    font-size: 1.25rem;
}

@media (min-width: 640px) {
    .blog-post-content .section-title span:first-child {
        font-size: 1.5rem;
    }
}

/* WordPress specific alignments */
.blog-post-content .alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.blog-post-content .alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.blog-post-content .aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* WordPress caption */
.blog-post-content .wp-caption {
    max-width: 100%;
}

.blog-post-content .wp-caption-text {
    text-align: center;
    font-size: 0.875rem;
    color: rgba(0, 0, 0, 0.5);
    margin-top: 0.5rem;
}

/* Gallery */
.blog-post-content .wp-block-gallery {
    display: grid;
    gap: 1rem;
    margin: 1.5rem 0;
}

/* Video embeds */
.blog-post-content .wp-block-embed,
.blog-post-content iframe {
    max-width: 100%;
    margin: 1.5rem 0;
}

.blog-post-content .wp-block-embed__wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.blog-post-content .wp-block-embed__wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
}


