/* ============================================
   BLOG DETAIL - RE/MAX Metropolitana
   Estilos para páginas single de posts (detalle del blog)
   Basados en la guía oficial de estilos
   ============================================ */

/* Variables de la guía de estilos RE/MAX */
:root {
    --remax-blue: #003DA5;
    --remax-blue-dark: #002764;
    --remax-red: #E11B22;
    --remax-red-dark: #DC1C2E;
    --success-green: #00AB4A;
    --info-cyan: #0EA5E9;
    --text-dark: #0f172a;
    --text-gray: #475569;
    --text-gray-light: #64748b;
    --bg-white: #FFFFFF;
    --bg-light: #F8F9FA;
    --border-color: #e5e7eb;
    --border-radius-sm: 6px;
    --border-radius-md: 10px;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* ============================================
   LAYOUT GENERAL
   ============================================ */
.single.single-post #content,
.single.single-post .site-content,
.single.single-post main {
    padding-left: 16px;
    padding-right: 16px;
}

.single.single-post article.post {
    max-width: 860px;
    margin: 24px auto 60px;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
}

/* ============================================
   BREADCRUMBS
   ============================================ */
.mt-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0 24px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    padding: 12px 0;
}

.mt-breadcrumb__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.2s ease;
}

.mt-breadcrumb__link:hover {
    color: var(--remax-blue);
}

.mt-breadcrumb__link svg {
    flex-shrink: 0;
}

.mt-breadcrumb__separator {
    color: var(--text-gray-light);
    font-weight: 300;
    user-select: none;
}

.mt-breadcrumb__current {
    color: var(--text-dark);
    font-weight: 600;
    max-width: 400px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .mt-breadcrumb__current {
        max-width: 200px;
    }
}

/* ============================================
   CATEGORÍAS DEL POST
   ============================================ */
.mt-post-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 16px 0;
}

.mt-post-category {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--bg-light);
    color: var(--text-gray);
    text-decoration: none;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.mt-post-category:hover {
    background: var(--remax-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 61, 165, 0.2);
}

/* ============================================
   TÍTULO Y META
   ============================================ */
.single.single-post .entry-title {
    margin: 0 0 16px 0;
    font-size: 36px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-dark);
}

@media (max-width: 768px) {
    .single.single-post .entry-title { font-size: 28px; }
}

.single.single-post .entry-title a {
    color: inherit;
    text-decoration: none;
}

.single.single-post .mt-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    align-items: center;
    color: var(--text-gray-light);
    font-size: 14px;
    margin: 0 0 28px 0;
    padding: 16px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.mt-post-meta__date,
.mt-post-meta__author,
.mt-post-meta__reading {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.mt-post-meta__date svg,
.mt-post-meta__author svg,
.mt-post-meta__reading svg {
    color: var(--text-gray-light);
    flex-shrink: 0;
}

.single.single-post .mt-post-meta a {
    color: var(--remax-blue);
    text-decoration: none;
}

.single.single-post .mt-post-meta a:hover {
    text-decoration: underline;
}

/* ============================================
   IMAGEN DESTACADA
   ============================================ */
.mt-post-featured-image {
    margin: 0 0 32px 0;
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.mt-post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   CONTENIDO
   ============================================ */
.single.single-post .entry-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-gray);
}

.single.single-post .entry-content p {
    margin: 0 0 16px 0;
}

.single.single-post .entry-content a {
    color: var(--info-cyan);
    text-decoration: none;
    font-weight: 600;
}

.single.single-post .entry-content a:hover {
    text-decoration: underline;
}

/* Subtítulos dentro del contenido */
.single.single-post .entry-content h2,
.single.single-post .entry-content h3,
.single.single-post .entry-content h4 {
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.3;
    margin: 28px 0 12px;
}

.single.single-post .entry-content h2 { font-size: 28px; border-bottom: 3px solid var(--remax-blue); padding-bottom: 8px; }
.single.single-post .entry-content h3 { font-size: 22px; }
.single.single-post .entry-content h4 { font-size: 18px; }

/* Listas */
.single.single-post .entry-content ul,
.single.single-post .entry-content ol {
    padding-left: 24px;
    margin: 0 0 16px 0;
}

.single.single-post .entry-content li { margin: 6px 0; }

/* Citas */
.single.single-post blockquote {
    margin: 20px 0;
    padding: 16px 20px;
    background: #f8fafc;
    border-left: 4px solid var(--remax-blue);
    border-radius: var(--border-radius-md);
    color: #0c4a6e;
}

/* Código */
.single.single-post pre,
.single.single-post code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
}

.single.single-post pre {
    background: #0f172a;
    color: #e2e8f0;
    padding: 16px;
    border-radius: var(--border-radius-md);
    overflow-x: auto;
    margin: 16px 0;
}

.single.single-post code { background: #f1f5f9; padding: 2px 6px; border-radius: 6px; }

/* Tablas */
.single.single-post table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 15px;
}

.single.single-post th,
.single.single-post td {
    border: 1px solid var(--border-color);
    padding: 10px 12px;
    text-align: left;
}

.single.single-post thead th {
    background: var(--bg-light);
    color: var(--text-dark);
}

/* Imágenes y figuras */
.single.single-post .entry-content img,
.single.single-post .entry-content figure img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-lg);
    display: block;
}

.single.single-post .entry-content figure { margin: 0 0 16px 0; }
.single.single-post .entry-content figcaption {
    font-size: 13px;
    color: var(--text-gray-light);
    text-align: center;
    margin-top: 8px;
}

/* Alineaciones clásicas de WP */
.single.single-post .alignleft { float: left; margin: 6px 16px 12px 0; }
.single.single-post .alignright { float: right; margin: 6px 0 12px 16px; }
.single.single-post .aligncenter { display: block; margin-left: auto; margin-right: auto; }

@media (max-width: 768px) {
    .single.single-post .alignleft,
    .single.single-post .alignright { float: none; margin: 12px auto; }
}

/* Embeds responsivos */
.single.single-post .mt-responsive-embed,
.single.single-post .wp-block-embed__wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    background: #000;
    margin: 20px 0;
}

.single.single-post .mt-responsive-embed iframe,
.single.single-post .wp-block-embed__wrapper iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: 0;
}

/* ============================================
   TAGS Y COMPARTIR
   ============================================ */
.mt-post-tags {
    margin: 32px 0 24px 0;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
}

.mt-post-tags strong {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.single.single-post .mt-post-taxonomy {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
}

.single.single-post .mt-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.2s ease;
}

.single.single-post .mt-chip:hover {
    background: #eef2ff;
    border-color: var(--remax-blue);
    color: var(--remax-blue);
    transform: translateY(-2px);
}

.single.single-post .mt-chip svg {
    flex-shrink: 0;
}

/* Compartir en redes */
.mt-post-share {
    margin: 24px 0;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
}

.mt-post-share strong {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mt-post-share__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mt-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: var(--border-radius-md);
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    color: white;
}

.mt-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.mt-share-btn--facebook { background: #1877F2; }
.mt-share-btn--twitter { background: #1DA1F2; }
.mt-share-btn--linkedin { background: #0A66C2; }
.mt-share-btn--whatsapp { background: #25D366; }

@media (max-width: 640px) {
    .mt-share-btn {
        font-size: 0;
        padding: 10px;
        width: 44px;
        height: 44px;
        justify-content: center;
    }
    .mt-share-btn svg {
        margin: 0;
    }
}

/* ============================================
   NAVEGACIÓN ENTRE POSTS
   ============================================ */
.mt-post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 32px 0;
    padding: 24px 0;
    border-top: 2px solid var(--border-color);
}

.mt-post-nav__prev,
.mt-post-nav__next {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    text-decoration: none;
    transition: all 0.3s ease;
}

.mt-post-nav__prev {
    justify-content: flex-start;
}

.mt-post-nav__next {
    justify-content: flex-end;
    text-align: right;
}

.mt-post-nav__prev:hover,
.mt-post-nav__next:hover {
    border-color: var(--remax-blue);
    background: white;
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.mt-post-nav__prev svg,
.mt-post-nav__next svg {
    color: var(--remax-blue);
    flex-shrink: 0;
}

.mt-post-nav__label {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-gray-light);
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.mt-post-nav__title {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
}

@media (max-width: 768px) {
    .mt-post-navigation {
        grid-template-columns: 1fr;
    }
    
    .mt-post-nav__next {
        text-align: left;
        justify-content: flex-start;
    }
}

/* ============================================
   BOTÓN VOLVER AL BLOG
   ============================================ */
.mt-back-to-blog {
    margin: 32px 0;
    text-align: center;
}

.mt-btn-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--remax-blue);
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    border-radius: var(--border-radius-md);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 61, 165, 0.2);
}

.mt-btn-back:hover {
    background: var(--remax-blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 61, 165, 0.3);
}

.mt-btn-back svg {
    flex-shrink: 0;
}

/* ============================================
   UTILIDADES ESPECÍFICAS
   ============================================ */
.single.single-post .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}


