/* ==================================================
   ESTILOS BLOG: Single Post Template
   Hechizos de Amor - Floristería
   
   Ubicación: /css/global/templates/blog/single-post.css
   Se auto-carga via load-global-styles.php
   ================================================== */


/* ─── BREADCRUMB ─── */

.hda-blog-breadcrumb {
    max-width: 52rem;
    margin: 0 auto;
    padding: 1rem 1.5rem;
}

.hda-blog-breadcrumb__inner {
    font-family: 'Founders Grotesk Official', sans-serif;
    font-size: 0.8rem;
    font-weight: 400;
}

.hda-blog-breadcrumb a {
    color: #9A8B84;
    text-decoration: none;
    transition: color 0.2s;
}

.hda-blog-breadcrumb a:hover {
    color: #960946;
}

.hda-blog-breadcrumb__sep {
    color: #9A8B84;
    margin: 0 0.4rem;
}

.hda-blog-breadcrumb__current {
    color: #6B5B54;
}


/* ─── HERO ─── */

.hda-blog-hero {
    position: relative;
    width: 100%;
    height: 32rem;
    overflow: hidden;
    background: #3D0E1E;
}

.hda-blog-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.hda-blog-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(61,14,30,0.2) 0%, rgba(61,14,30,0.85) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 2rem 3.5rem;
}

.hda-blog-hero__content {
    max-width: 52rem;
    margin: 0 auto;
    width: 100%;
    text-align: center;
}

.hda-blog-hero__badge {
    display: inline-block;
    font-family: 'Founders Grotesk Official', sans-serif;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #E8D5B0;
    border: 1px solid rgba(201,169,110,0.4);
    padding: 0.4rem 1.3rem;
    border-radius: 2rem;
    margin-bottom: 1.2rem;
    text-decoration: none;
    transition: all 0.2s;
}

.hda-blog-hero__badge:hover {
    background: rgba(201,169,110,0.1);
    color: #E8D5B0;
}

.hda-blog-hero__title {
    font-family: 'Qalogre Fit', Georgia, serif;
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 400;
    color: #FFFFFF;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hda-blog-hero__meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.3rem;
    font-family: 'Founders Grotesk Official', sans-serif;
    font-size: 0.85rem;
    font-weight: 300;
    color: rgba(255,255,255,0.7);
}

.hda-blog-hero__meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.hda-blog-hero__meta-item svg {
    opacity: 0.7;
}


/* ─── CONTENT AREA ─── */

.hda-blog-content {
    max-width: 52rem;
    margin: 0 auto;
    padding: 3rem 1.5rem 0;
}

.hda-blog-content__inner {
    font-family: 'Founders Grotesk Official', sans-serif;
    font-size: 1.06rem;
    font-weight: 400;
    line-height: 1.85;
    color: #2D1B14;
}

/* ─── Headings from Gutenberg ─── */

.hda-blog-content__inner h2 {
    font-family: 'Qalogre Fit', Georgia, serif;
    font-size: 1.75rem;
    font-weight: 400;
    color: #960946;
    margin: 2.8rem 0 1rem;
    padding-top: 0.8rem;
    line-height: 1.3;
}

.hda-blog-content__inner h3 {
    font-family: 'Qalogre Fit', Georgia, serif;
    font-size: 1.4rem;
    font-weight: 400;
    color: #2D1B14;
    margin: 2rem 0 0.8rem;
    line-height: 1.35;
}

/* ─── Paragraphs ─── */

.hda-blog-content__inner p {
    margin-bottom: 1.2rem;
    color: #2D1B14;
    font-family: 'Founders Grotesk Official', sans-serif;
    font-weight: 400;
    text-align: left;
    width: auto !important;
}

/* ─── Links in content ─── */

.hda-blog-content__inner a {
    color: #960946;
    text-decoration: underline;
    text-decoration-color: #F3DBD7;
    text-underline-offset: 3px;
    transition: text-decoration-color 0.2s;
}

.hda-blog-content__inner a:hover {
    text-decoration-color: #960946;
}

/* ─── Images from Gutenberg ─── */

.hda-blog-content__inner .wp-block-image {
    margin: 2rem 0;
}

.hda-blog-content__inner .wp-block-image img {
    border-radius: 1rem;
    width: 100%;
    height: auto;
    max-height: 28rem;
    object-fit: cover;
}

.hda-blog-content__inner .wp-block-image figcaption {
    font-size: 0.82rem;
    color: #9A8B84;
    text-align: center;
    padding: 0.6rem 0;
    font-style: italic;
}

/* ─── Lists from Gutenberg ─── */

.hda-blog-content__inner ul,
.hda-blog-content__inner ol {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.hda-blog-content__inner li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

/* ─── Strong/Bold ─── */

.hda-blog-content__inner strong {
    font-weight: 600;
    color: #2D1B14;
}

/* ─── Blockquote (for tip boxes) ─── */

.hda-blog-content__inner blockquote,
.hda-blog-content__inner .wp-block-quote {
    background: #FFFFFF;
    border-left: 4px solid #C9A96E;
    border-radius: 0 0.75rem 0.75rem 0;
    padding: 1.3rem 1.5rem;
    margin: 1.5rem 0 2rem;
    box-shadow: 0 2px 12px rgba(45,27,20,0.04);
}

.hda-blog-content__inner blockquote p,
.hda-blog-content__inner .wp-block-quote p {
    font-size: 0.95rem;
    color: #6B5B54;
    line-height: 1.7;
    margin-bottom: 0;
}

.hda-blog-content__inner blockquote cite,
.hda-blog-content__inner .wp-block-quote cite {
    font-family: 'Qalogre Fit', Georgia, serif;
    font-size: 0.85rem;
    font-weight: 400;
    color: #C9A96E;
    font-style: normal;
}

/* ─── Tables from Gutenberg ─── */

.hda-blog-content__inner .wp-block-table {
    margin: 2rem 0;
    overflow-x: auto;
    border-radius: 1rem;
    border: 1px solid #E8DDD6;
    background: #FFFFFF;
    box-shadow: 0 2px 12px rgba(45,27,20,0.04);
}

.hda-blog-content__inner table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.hda-blog-content__inner thead {
    background: #960946;
}

.hda-blog-content__inner th {
    color: #FFFFFF;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-align: left;
    padding: 0.9rem 1.1rem;
    font-family: 'Founders Grotesk Official', sans-serif;
}

.hda-blog-content__inner td {
    padding: 0.8rem 1.1rem;
    border-bottom: 1px solid #E8DDD6;
    color: #2D1B14;
    vertical-align: top;
}

.hda-blog-content__inner tbody tr:last-child td {
    border-bottom: none;
}

.hda-blog-content__inner tbody tr:nth-child(even) {
    background: #FBF5F0;
}

.hda-blog-content__inner tbody tr:hover {
    background: #F3E8DE;
}

/* ─── Buttons from Gutenberg ─── */

.hda-blog-content__inner .wp-block-buttons {
    margin: 1.5rem 0 2rem;
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.hda-blog-content__inner .wp-block-button .wp-block-button__link {
    font-family: 'Founders Grotesk Official', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.85rem 2rem;
    border-radius: 3rem;
    text-decoration: none;
    transition: all 0.25s;
}

.hda-blog-content__inner .wp-block-button:first-child .wp-block-button__link {
    background: #960946;
    color: #FFFFFF;
}

.hda-blog-content__inner .wp-block-button:first-child .wp-block-button__link:hover {
    background: #7A1E3A;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(150,9,70,0.25);
}

.hda-blog-content__inner .wp-block-button.is-style-outline .wp-block-button__link {
    background: transparent;
    color: #960946;
    border: 1.5px solid #960946;
}

.hda-blog-content__inner .wp-block-button.is-style-outline .wp-block-button__link:hover {
    background: #960946;
    color: #FFFFFF;
}

/* ─── Separator ─── */

.hda-blog-content__inner hr,
.hda-blog-content__inner .wp-block-separator {
    border: none;
    border-top: 1px solid #E8DDD6;
    margin: 2.5rem 0;
}


/* ─── SHARE BAR ─── */

.hda-blog-share {
    max-width: 52rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.hda-blog-share__inner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.3rem 0;
    border-top: 1px solid #E8DDD6;
}

.hda-blog-share__label {
    font-family: 'Founders Grotesk Official', sans-serif;
    font-size: 0.8rem;
    color: #9A8B84;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hda-blog-share__btn {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    border: 1px solid #E8DDD6;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.hda-blog-share__btn:hover {
    background: #960946;
    border-color: #960946;
}

.hda-blog-share__btn svg {
    color: #6B5B54;
    transition: color 0.2s;
}

.hda-blog-share__btn:hover svg {
    color: #FFFFFF;
}


/* ─── AUTHOR BOX ─── */

.hda-blog-author {
    max-width: 52rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.hda-blog-author__inner {
    display: flex;
    gap: 1.3rem;
    align-items: center;
    padding: 1.8rem 0;
    border-top: 1px solid #E8DDD6;
    border-bottom: 1px solid #E8DDD6;
}

.hda-blog-author__avatar {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: #960946;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Qalogre Fit', Georgia, serif;
    font-size: 1.3rem;
    color: #FFFFFF;
    flex-shrink: 0;
}

.hda-blog-author__label {
    display: block;
    font-family: 'Founders Grotesk Official', sans-serif;
    font-size: 0.75rem;
    color: #9A8B84;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.1rem;
}

.hda-blog-author__name {
    display: block;
    font-family: 'Qalogre Fit', Georgia, serif;
    font-size: 1.1rem;
    color: #2D1B14;
    margin-bottom: 0.1rem;
}

.hda-blog-author__desc {
    font-family: 'Founders Grotesk Official', sans-serif;
    font-size: 0.85rem;
    font-weight: 300;
    color: #6B5B54;
    line-height: 1.5;
    margin: 0;
}


/* ─── CTA FINAL ─── */

.hda-blog-cta {
    max-width: 52rem;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
}

.hda-blog-cta__inner {
    background: #960946;
    border-radius: 1.2rem;
    padding: 3rem 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hda-blog-cta__inner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 20rem;
    height: 20rem;
    background: rgba(201,169,110,0.08);
    border-radius: 50%;
}

.hda-blog-cta__title {
    font-family: 'Qalogre Fit', Georgia, serif;
    font-size: 1.6rem;
    font-weight: 400;
    color: #FFFFFF;
    margin-bottom: 0.7rem;
    position: relative;
    z-index: 1;
}

.hda-blog-cta__text {
    font-family: 'Founders Grotesk Official', sans-serif;
    color: rgba(255,255,255,0.8);
    font-size: 1rem;
    font-weight: 300;
    max-width: 30rem;
    margin: 0 auto 1.8rem;
    position: relative;
    z-index: 1;
}

.hda-blog-cta__buttons {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.hda-blog-cta__btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    background: #C9A96E;
    color: #3D0E1E;
    font-family: 'Founders Grotesk Official', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 3rem;
    transition: all 0.25s;
}

.hda-blog-cta__btn-primary:hover {
    background: #E8D5B0;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    color: #3D0E1E;
}

.hda-blog-cta__btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    background: transparent;
    color: #FFFFFF;
    font-family: 'Founders Grotesk Official', sans-serif;
    font-size: 0.95rem;
    font-weight: 400;
    text-decoration: none;
    border-radius: 3rem;
    border: 1px solid rgba(255,255,255,0.3);
    transition: all 0.25s;
}

.hda-blog-cta__btn-secondary:hover {
    border-color: #FFFFFF;
    background: rgba(255,255,255,0.08);
    color: #FFFFFF;
}


/* ─── RELATED POSTS ─── */

.hda-blog-related {
    max-width: 52rem;
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
}

.hda-blog-related__title {
    font-family: 'Qalogre Fit', Georgia, serif;
    font-size: 1.4rem;
    font-weight: 400;
    color: #960946;
    margin-bottom: 1.3rem;
    text-align: center;
}

.hda-blog-related__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.hda-blog-related__card {
    background: #FFFFFF;
    border-radius: 0.9rem;
    overflow: hidden;
    border: 1px solid #E8DDD6;
    text-decoration: none;
    transition: all 0.3s;
}

.hda-blog-related__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(45,27,20,0.1);
}

.hda-blog-related__card-img {
    width: 100%;
    height: 12rem;
    object-fit: cover;
    display: block;
}

.hda-blog-related__card-body {
    padding: 0.9rem 1rem;
}

.hda-blog-related__card-date {
    font-family: 'Founders Grotesk Official', sans-serif;
    font-size: 0.75rem;
    color: #9A8B84;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hda-blog-related__card-title {
    font-family: 'Qalogre Fit', Georgia, serif;
    font-size: 1rem;
    font-weight: 400;
    color: #2D1B14;
    margin: 0.3rem 0 0;
    line-height: 1.3;
}


/* ==================================================
   ESTILOS MOBILE: Blog Post
   ================================================== */

@media screen and (max-width: 767px) {

    .hda-blog-hero {
        height: 24rem;
    }

    .hda-blog-hero__overlay {
        padding: 0 1.2rem 2rem;
    }

    .hda-blog-hero__title {
        font-size: 1.6rem;
    }

    .hda-blog-hero__meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .hda-blog-content__inner {
        font-size: 1rem;
    }

    .hda-blog-content__inner h2 {
        font-size: 1.5rem;
    }

    .hda-blog-content__inner .wp-block-image img {
        border-radius: 0.6rem;
        max-height: 18rem;
    }

    .hda-blog-content__inner th,
    .hda-blog-content__inner td {
        padding: 0.6rem 0.7rem;
        font-size: 0.8rem;
    }

    .hda-blog-related__grid {
        grid-template-columns: 1fr;
    }

    .hda-blog-related__card-img {
        height: 14rem;
    }

    .hda-blog-cta__inner {
        padding: 2.2rem 1.5rem;
    }

    .hda-blog-cta__buttons {
        flex-direction: column;
        align-items: center;
    }

    .hda-blog-author__inner {
        flex-direction: column;
        text-align: center;
    }
}


/* ==================================================
   ESTILOS TABLET: Blog Post
   ================================================== */

@media screen and (min-width: 768px) and (max-width: 1024px) {

    .hda-blog-hero {
        height: 28rem;
    }

    .hda-blog-hero__title {
        font-size: 2.2rem;
    }

    .hda-blog-related__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
