/* Single Post Styles - Premium Layout */

:root {
    --single-content-width: 900px;
    --single-sidebar-width: 70px;
    --single-gap: 40px;
}

/* Barra de Progresso */
#reading-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 9999;
}

#reading-progress-bar {
    height: 4px;
    background: var(--primary-orange);
    width: 0%;
    transition: width 0.1s;
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
}

/* Layout Principal */
.single-post-article {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 30px;
}

.single-post-container {
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

/* Sticky Sidebar (Social) */
.share-sidebar {
    position: fixed;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    height: fit-content;
    z-index: 100;
}

.share-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    color: var(--color-text-light);
    margin-bottom: 10px;
}

.share-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
}

.share-btn::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
    filter: blur(8px);
    z-index: -1;
}

.share-btn:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    color: white;
}

.share-btn:hover::before {
    opacity: 0.5;
}

.share-btn.facebook {
    background: #3b5998;
}

.share-btn.twitter {
    background: #000000;
}

/* X brand */
.share-btn.whatsapp {
    background: #25D366;
}

.share-btn.email {
    background: #666;
}

/* Breadcrumbs */
.breadcrumbs {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 30px;
    padding-bottom: 20px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    animation: fadeIn 0.6s ease-out;
}

.breadcrumbs a {
    color: var(--color-text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumbs a:hover {
    color: var(--primary-orange);
}

.breadcrumb-separator {
    color: var(--color-text-light);
    margin: 0 4px;
}

.breadcrumb-current {
    color: #ffffff;
    font-weight: 500;
}

/* Header do Post */
.post-header {
    margin-bottom: 40px;
    text-align: center;
}

.post-meta-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    font-family: 'Roboto', sans-serif;
}

.post-category-badge {
    background: var(--primary-orange);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-category-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(255, 107, 53, 0.6);
    color: white;
}

.post-date-top {
    color: var(--color-text-light);
    font-size: 0.9rem;
}

.post-title {
    font-size: 3.2rem;
    line-height: 1.2;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    letter-spacing: -1px;
    animation: fadeInUp 0.6s ease-out;
    transition: color 0.3s ease;
}

.post-title:hover {
    color: var(--primary-orange);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.post-subtitle {
    font-size: 1.35rem;
    line-height: 1.4;
    color: var(--color-text-light);
    font-weight: 400;
    margin-bottom: 30px;
}

/* Autor Meta Box */
.post-author-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.author-avatar-small img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.author-details {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.author-name {
    font-size: 1rem;
    color: #ffffff;
}

.meta-extras {
    font-size: 0.85rem;
    color: var(--color-text-light);
    display: flex;
    align-items: center;
    gap: 10px;
}

.meta-separator {
    color: var(--color-text-light);
}

.meta-comments {
    color: var(--primary-orange);
    font-weight: 600;
    transition: color 0.3s ease;
}

.meta-comments:hover {
    color: #ffffff;
}

/* Imagem Destacada */
.post-featured-image {
    margin-bottom: 50px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    animation: fadeIn 0.8s ease-out 0.2s both;
}

.post-featured-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.02) 100%);
    z-index: 1;
    pointer-events: none;
}

.post-featured-image img {
    width: 100%;
    max-height: 600px;
    object-fit: contain;
    background: rgba(0, 0, 0, 0.4);
    display: block;
    transition: transform 0.6s ease;
}

.post-featured-image:hover img {
    transform: scale(1.03);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.post-featured-caption {
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--color-text-light);
    font-size: 0.85rem;
    text-align: center;
    font-style: italic;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
}

/* Conteúdo */
.post-content {
    font-size: 1.25rem;
    line-height: 1.9;
    color: var(--color-text);
    font-family: var(--font-outfit);
    animation: fadeIn 0.8s ease-out 0.4s both;
}

.post-content>p:first-of-type::first-letter {
    font-size: 4.5rem;
    line-height: 0.85;
    float: left;
    margin: 8px 15px 0 0;
    font-weight: 700;
    color: var(--primary-orange);
    font-family: var(--font-outfit);
}

.post-content p {
    margin-bottom: 1.8rem;
    text-align: justify;
}

.post-content h2 {
    font-family: var(--font-outfit);
    font-size: 2.2rem;
    font-weight: 700;
    margin-top: 3.5rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
    position: relative;
    padding-left: 20px;
    transition: color 0.3s ease;
}

.post-content h2:hover {
    color: var(--primary-orange);
}

.post-content h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--primary-orange);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
}

.post-content h3 {
    font-family: var(--font-outfit);
    font-size: 1.75rem;
    font-weight: 600;
    margin-top: 2.8rem;
    margin-bottom: 1.2rem;
    color: #ffffff;
    transition: color 0.3s ease;
}

.post-content h3:hover {
    color: var(--primary-orange);
}

.post-content ul,
.post-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.post-content li {
    margin-bottom: 0.8rem;
    line-height: 1.8;
}

.post-content a {
    color: var(--primary-orange);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color 0.3s ease, text-decoration-color 0.3s ease;
}

.post-content a:hover {
    color: #ffffff;
    text-decoration-color: var(--primary-orange);
}

.post-content blockquote {
    border-left: 5px solid var(--primary-orange);
    padding: 30px 40px;
    margin: 50px 0;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-style: italic;
    font-size: 1.35rem;
    color: var(--color-text);
    position: relative;
    border-radius: 0 20px 20px 0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.post-content blockquote::before {
    content: '"';
    font-size: 5rem;
    color: rgba(255, 107, 53, 0.1);
    position: absolute;
    top: -5px;
    left: 20px;
    font-family: var(--font-outfit);
    font-weight: 700;
}

.post-content blockquote::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--primary-orange);
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    margin: 30px 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* Tags */
.post-tags {
    margin-top: 60px;
    margin-bottom: 40px;
    padding: 30px;
    background: var(--card-bg);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.tags-label {
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tags-label::before {
    content: '🏷️';
    font-size: 1.2rem;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-link {
    background: rgba(255, 107, 53, 0.1);
    color: var(--primary-orange);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 107, 53, 0.3);
    font-weight: 500;
}

.tag-link:hover {
    background: var(--primary-orange);
    color: white;
    border-color: var(--primary-orange);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

/* Author Bio Box (Bottom) */
.author-bio-box {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-bottom: 60px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.author-bio-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 50px rgba(255, 107, 53, 0.2);
    border-color: var(--primary-orange);
}

.author-bio-avatar {
    position: relative;
}

.author-bio-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.author-bio-avatar::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: var(--primary-orange);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
}

.author-bio-box:hover .author-bio-avatar::after {
    opacity: 1;
}

.author-role {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--primary-orange);
    font-weight: 700;
    margin-bottom: 5px;
}

.author-bio-content h3 {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    color: #ffffff;
}

.author-bio-content p {
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: 15px;
}

.author-link a {
    color: var(--primary-orange);
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: transparent;
    border-radius: 8px;
    border: 2px solid var(--primary-orange);
    transition: all 0.3s ease;
    margin-top: 10px;
}

.author-link a:hover {
    background: var(--primary-orange);
    color: #fff;
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

.author-link a i {
    transition: transform 0.3s ease;
}

.author-link a:hover i {
    transform: translateX(3px);
}

/* Related Posts */
.related-posts-section {
    grid-column: 1 / -1;
    background: transparent;
    padding: 60px 0;
    border-top: 2px solid rgba(255, 255, 255, 0.05);
    margin-top: 60px;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    font-weight: 700;
    color: #ffffff;
    transition: color 0.3s ease;
}

.section-title h2:hover {
    color: var(--primary-orange);
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-orange);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.related-card {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.4s ease;
}

.related-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 0 50px rgba(255, 107, 53, 0.2);
    border-color: var(--primary-orange);
}

.related-thumb {
    border-radius: 0;
    overflow: hidden;
    aspect-ratio: 16/9;
    position: relative;
}

.related-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.related-card:hover .related-thumb::after {
    opacity: 1;
}

.related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related-card:hover .related-thumb img {
    transform: scale(1.08);
}

.related-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
}

.related-cat {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--primary-orange);
    font-weight: 700;
}

.related-info h4 {
    font-size: 1.1rem;
    line-height: 1.4;
    color: #ffffff;
    font-weight: 600;
    transition: color 0.3s ease;
}

.related-card:hover .related-info h4 {
    color: var(--primary-orange);
}

/* Mobile Share */
.share-mobile {
    margin: 40px 0;
    text-align: center;
    padding: 20px;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
}

.share-mobile h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #ffffff;
}

.share-buttons-row {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* Smooth Scroll Reveal */
.post-content>*,
.author-bio-box,
.post-tags {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.post-content>p:nth-child(1) {
    animation-delay: 0.1s;
}

.post-content>p:nth-child(2) {
    animation-delay: 0.2s;
}

.post-content>p:nth-child(3) {
    animation-delay: 0.3s;
}

/* Desktop Layout - Centered (No Grid) */
@media (min-width: 993px) {
    .single-post-article {
        display: block;
    }
}

/* Responsive */
@media (max-width: 1200px) {
    .share-sidebar {
        display: none !important;
    }

    .share-mobile {
        display: block !important;
    }
}

@media (max-width: 992px) {
    .single-post-article {
        padding: 20px 15px;
    }

    .share-sidebar {
        display: none;
    }

    .post-title {
        font-size: 2.2rem;
        letter-spacing: -0.5px;
    }

    .post-content {
        font-size: 1.1rem;
    }

    .post-content>p:first-of-type::first-letter {
        font-size: 3.5rem;
        margin: 5px 12px 0 0;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .author-bio-box {
        padding: 30px;
    }
}

@media (max-width: 600px) {
    .post-title {
        font-size: 1.8rem;
    }

    .post-subtitle {
        font-size: 1.1rem;
    }

    .post-content {
        font-size: 1.05rem;
        text-align: left;
    }

    .post-content>p:first-of-type::first-letter {
        font-size: 3rem;
        margin: 3px 10px 0 0;
    }

    .post-content h2 {
        font-size: 1.6rem;
        padding-left: 15px;
    }

    .post-content h2::before {
        width: 3px;
    }

    .post-content h3 {
        font-size: 1.35rem;
    }

    .author-bio-box {
        flex-direction: column;
        text-align: center;
        align-items: center;
        padding: 25px 20px;
    }

    .related-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .post-tags {
        padding: 20px;
    }

    .breadcrumbs {
        font-size: 0.85rem;
    }
}