/* ===== BLOG DETAILS PAGE STYLES ===== */
/* Nota: Navbar y Footer están en common.css */

:root {
    --havana-gold: #BB9C4B;
    --havana-red: #da291c;
    --havana-black: #000000;
    --havana-white: #ffffff;
}

/* ===== HERO SECTION ===== */
.hero-section {
    height: 50vh;
    min-height: 400px;
    width: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    position: relative;
    padding-left: 10%;
    padding-bottom: 40px;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-title-box {
    background-color: var(--havana-black);
    padding: 0;
    z-index: 2;
    position: relative;
}

.hero-title-box h1 {
    color: var(--havana-white);
    margin: 0;
    text-transform: uppercase;
    line-height: 1 !important;
    font-size: clamp(32px, 5vw, 64px);
    font-weight: 900;
    font-family: 'Druk Text', sans-serif;
    font-style: italic;
}

.hero-title-box h1,
.hero-title-box h1 span,
.hero-title-box h1 *,
section.hero-section .hero-title-box h1,
section.hero-section .hero-title-box h1 span,
section.hero-section .hero-title-box h1 * {
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ===== POST WRAPPER ===== */
.post-wrapper {
    padding: 80px 10%;
    background: var(--havana-white, #FFFFFF);
}

.post-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 80px;
    align-items: flex-start;
}

.post-main-content {
    flex: 1;
}

.post-header {
    margin-bottom: 50px;
}

.post-category {
    color: var(--havana-gold, #BB9C4B);
    font-family: 'Druk Wide', sans-serif;
    font-size: 48px;
    font-weight: 900;
    margin: 0 0 10px 0;
    text-transform: uppercase;
}

.post-title {
    color: var(--havana-black, #000000);
    font-family: 'Druk Text', sans-serif;
    font-size: 40px;
    font-weight: 900;
    font-style: italic;
    margin: 0;
    text-transform: uppercase;
    line-height: 1.1;
}

.post-body {
    margin-top: 30px;
}

.post-body p {
    font-family: 'Rotis Sans Serif', sans-serif;
    font-size: 24px;
    line-height: 1.2;
    color: var(--havana-black, #000000);
    margin-bottom: 30px;
}

.featured-image {
    width: 100%;
    margin: 60px 0;
}

.featured-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* ===== CONTENT TEXT STYLING ===== */
.post-description.content-text {
    max-width: 100%;
}

.post-description.content-text p {
    font-family: 'Rotis Sans Serif', sans-serif;
    font-size: 24px;
    line-height: 1.6;
    color: var(--havana-black);
    margin-bottom: 1.5rem;
}

/* Estilos para H1-H6 dentro de post-description - Sin enlace (black-title) */
.post-description.content-text h1:not(:has(a)),
.post-description.content-text h2:not(:has(a)),
.post-description.content-text h3:not(:has(a)),
.post-description.content-text h4:not(:has(a)),
.post-description.content-text h5:not(:has(a)),
.post-description.content-text h6:not(:has(a)) {
    font-size: 64px;
    font-weight: 900;
    font-style: italic;
    line-height: 1.1;
    color: var(--havana-black);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-family: 'Druk Text', sans-serif;
}

/* Estilos para H1-H6 dentro de post-description - Con enlace (red-title) */
.post-description.content-text h1:has(a),
.post-description.content-text h2:has(a),
.post-description.content-text h3:has(a),
.post-description.content-text h4:has(a),
.post-description.content-text h5:has(a),
.post-description.content-text h6:has(a) {
    font-size: 64px;
    font-weight: 900;
    font-style: italic;
    line-height: 1.1;
    color: var(--havana-red);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-family: 'Druk Text', sans-serif;
}

/* Estilos para enlaces dentro de H1-H6 en post-description */
.post-description.content-text h1 a,
.post-description.content-text h2 a,
.post-description.content-text h3 a,
.post-description.content-text h4 a,
.post-description.content-text h5 a,
.post-description.content-text h6 a {
    font-size: 64px !important;
    font-weight: 900 !important;
    font-style: italic !important;
    line-height: 1.1 !important;
    color: var(--havana-red) !important;
    text-decoration: none !important;
    font-family: 'Druk Text', sans-serif !important;
}

.post-description.content-text h1 a:hover,
.post-description.content-text h2 a:hover,
.post-description.content-text h3 a:hover,
.post-description.content-text h4 a:hover,
.post-description.content-text h5 a:hover,
.post-description.content-text h6 a:hover {
    color: var(--havana-red) !important;
    text-decoration: none !important;
}

/* ===== RELATED POSTS SECTION ===== */
.related-posts-section {
    padding: 100px 10%;
    background: #FFFFFF;
    border-top: 1px solid #ddd;
}

.related-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Blog Grid (reutilizado de blog.css) */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.blog-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    text-decoration: none;
}

.card-image-wrapper {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background-color: var(--havana-black);
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .card-image-wrapper img {
    transform: scale(1.05);
}

.card-content {
    background-color: var(--havana-gold);
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    color: var(--havana-black);
    font-size: 24px;
    font-weight: 900;
    font-family: 'Druk Text', sans-serif;
    font-style: italic;
    text-transform: uppercase;
    margin: 0 0 10px 0;
    line-height: 1.2;
}

.card-description {
    color: var(--havana-black);
    font-size: 16px;
    line-height: 1.4;
    font-family: 'Rotis Sans Serif', sans-serif;
    margin: 0;
    flex: 1;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
    .post-container {
        flex-direction: column;
        gap: 60px;
    }
}

@media (max-width: 768px) {
    .post-wrapper {
        padding: 50px 5%;
    }

    .post-category {
        font-size: 32px;
    }

    .post-title {
        font-size: 32px;
    }

    .related-posts-section {
        padding: 60px 5%;
    }

    .post-description.content-text h1:not(:has(a)),
    .post-description.content-text h2:not(:has(a)),
    .post-description.content-text h3:not(:has(a)),
    .post-description.content-text h4:not(:has(a)),
    .post-description.content-text h5:not(:has(a)),
    .post-description.content-text h6:not(:has(a)),
    .post-description.content-text h1:has(a),
    .post-description.content-text h2:has(a),
    .post-description.content-text h3:has(a),
    .post-description.content-text h4:has(a),
    .post-description.content-text h5:has(a),
    .post-description.content-text h6:has(a) {
        font-size: 48px;
    }

    .post-description.content-text h1 a,
    .post-description.content-text h2 a,
    .post-description.content-text h3 a,
    .post-description.content-text h4 a,
    .post-description.content-text h5 a,
    .post-description.content-text h6 a {
        font-size: 48px !important;
    }
}
