/**
 * Blog Detalhe Styles
 * Estilos para página de post individual
 *
 * @package SeedDigital
 * @since 1.0.0
 */

/* ============================================
   Site Main Inner (Container Principal)
   ============================================ */
.site-main-inner {
    padding: 0;
    min-height: auto;
}

.site-main-inner .site-container {
    max-width: 1384px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   Single Post Container
   ============================================ */
.single-post {
    margin: 0 auto;
    width: 100%;
}

/* ============================================
   Meta Header (Data, Autor, Categoria)
   ============================================ */
.single-post__meta-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 32px;
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    color: #4B4B4B;
    flex-wrap: wrap;
}

.single-post__date {
    display: flex;
    align-items: center;
}

.single-post__author {
    display: flex;
    align-items: center;
}

.single-post__category-link {
    display: flex;
    align-items: center;
}

.single-post__category-link a {
    color: #0BA5EC;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

.single-post__category-link a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* ============================================
   Post Thumbnail
   ============================================ */
.single-post__thumbnail {
    margin-bottom: 48px;
    border-radius: 12px;
    overflow: hidden;
}

.single-post__img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* ============================================
   Post Content
   ============================================ */
.single-post__content {
    font-family: 'Be Vietnam', sans-serif;
    font-size: 18px;
    line-height: 1.8;
    color: #1B1A1A;
    margin-bottom: 60px;
}

.single-post__content p {
    margin-bottom: 24px;
}

.single-post__content h2 {
    font-family: 'Be Vietnam', sans-serif;
    font-size: 36px;
    font-weight: 600;
    line-height: 1.3;
    color: #1B1A1A;
    margin: 48px 0 24px 0;
}

.single-post__content h3 {
    font-family: 'Be Vietnam', sans-serif;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.3;
    color: #1B1A1A;
    margin: 36px 0 20px 0;
}

.single-post__content ul,
.single-post__content ol {
    margin: 24px 0;
    padding-left: 32px;
}

.single-post__content li {
    margin-bottom: 12px;
}

.single-post__content a {
    color: #0BA5EC;
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

.single-post__content a:hover {
    opacity: 0.8;
}

.single-post__content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 32px 0;
}

.single-post__content blockquote {
    border-left: 4px solid #0BA5EC;
    padding-left: 24px;
    margin: 32px 0;
    font-style: italic;
    color: #4B4B4B;
}

/* ============================================
   Post Footer
   ============================================ */
.single-post__footer {
    border-top: 1px solid #EAEAEA;
    padding-top: 40px;
    margin-top: 60px;
}

.single-post__tags {
    margin-bottom: 40px;
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
}

.tags-label {
    font-weight: 600;
    color: #1B1A1A;
    margin-right: 8px;
}

.single-post__tags a {
    display: inline-block;
    padding: 6px 12px;
    background: #F6F6F6;
    color: #4B4B4B;
    text-decoration: none;
    border-radius: 4px;
    margin-right: 8px;
    margin-bottom: 8px;
    transition: background 0.3s ease;
}

.single-post__tags a:hover {
    background: #0BA5EC;
    color: #FFFFFF;
}

/* ============================================
   Post Navigation
   ============================================ */
.single-post__navigation {
    margin-top: 40px;
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    border-top: 1px solid #EAEAEA;
    padding-top: 40px;
}

.nav-previous,
.nav-next {
    flex: 1;
}

.nav-previous a,
.nav-next a {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: #1B1A1A;
    transition: opacity 0.3s ease;
    padding: 16px;
    border-radius: 8px;
    background: #F6F6F6;
}

.nav-previous a:hover,
.nav-next a:hover {
    opacity: 0.8;
    background: #EAEAEA;
}

.nav-arrow {
    font-size: 24px;
    color: #0BA5EC;
}

.nav-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-subtitle {
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #4B4B4B;
}

.nav-title {
    font-family: 'Be Vietnam', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #1B1A1A;
}

.nav-next {
    text-align: right;
}

.nav-next a {
    flex-direction: row-reverse;
}

/* ============================================
   Related Posts
   ============================================ */
.single-post__related {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 1px solid #EAEAEA;
}

.related-posts__title {
    font-family: 'Be Vietnam', sans-serif;
    font-size: 36px;
    font-weight: 600;
    color: #1B1A1A;
    margin-bottom: 40px;
}

.related-posts__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.related-post {
    background: #F6F6F6;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-post:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.related-post__thumbnail {
    display: block;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.related-post__thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-post:hover .related-post__thumbnail img {
    transform: scale(1.05);
}

.related-post__content {
    padding: 24px;
}

.related-post__title {
    font-family: 'Be Vietnam', sans-serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 12px 0;
}

.related-post__title a {
    color: #1B1A1A;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-post__title a:hover {
    color: #0BA5EC;
}

.related-post__excerpt {
    font-family: 'Be Vietnam', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #4B4B4B;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .single-post {
        padding: 40px 20px;
    }

    .single-post__title {
        font-size: 32px;
    }

    .single-post__content {
        font-size: 16px;
    }

    .single-post__content h2 {
        font-size: 28px;
    }

    .single-post__content h3 {
        font-size: 24px;
    }

    .post-navigation {
        flex-direction: column;
    }

    .nav-next {
        text-align: left;
    }

    .nav-next a {
        flex-direction: row;
    }

    .related-posts__grid {
        grid-template-columns: 1fr;
    }

    .related-posts__title {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .single-post {
        padding: 32px 16px;
    }

    .single-post__meta-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        font-size: 14px;
    }

    .single-post__content {
        font-size: 15px;
    }
}

