/* Post Individual Styles - Design Elegante e Sofisticado */

/* Header do Post */
.post-hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: white;
}

.post-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/blog/gallery/header-blog.jpg') center/cover;
    z-index: -2;
}

.post-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.45) 0%, rgba(31, 58, 95, 0.22) 60%, rgba(247, 148, 29, 0.1) 100%);
    z-index: -1;
}

.post-hero::before {
    background: url('../images/blog/gallery/header-blog.jpg') center/cover;
}

.post-hero::after,
.post-hero::before {
    mix-blend-mode: normal;
}

.post-hero::after {
    box-shadow: inset 0 -60px 90px rgba(17, 24, 39, 0.25);
}

.post-hero-content {
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

/* Breadcrumb Elegante */
.post-breadcrumb {
    position: absolute;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 10px 25px;
    z-index: 3;
}

.post-breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.post-breadcrumb a:hover {
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.post-breadcrumb .separator {
    margin: 0 12px;
    opacity: 0.6;
}

/* Título Principal */
.post-main-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
    letter-spacing: -0.5px;
}

/* Meta Informações Elegantes */
.post-meta-elegant {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 20px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.meta-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.meta-item i {
    color: var(--accent-color);
    font-size: 1.1rem;
}

/* Container Principal do Artigo */
.post-article {
    max-width: 800px;
    margin: 0 auto;
    padding: 80px 20px;
    background: var(--bg-white);
    position: relative;
}

.post-article::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 10% 0%, rgba(47, 93, 155, 0.05), transparent 50%);
    opacity: 0.6;
    pointer-events: none;
}

/* Imagem de Destaque */
.post-featured-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 60px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.post-featured-image:hover {
    transform: scale(1.02);
}

/* Conteúdo do Artigo */
.post-content-area {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-dark);
    font-family: 'Georgia', serif;
}

.post-content-area h1,
.post-content-area h2,
.post-content-area h3,
.post-content-area h4,
.post-content-area h5,
.post-content-area h6 {
    color: var(--primary-color);
    font-weight: 700;
    margin: 50px 0 25px;
    line-height: 1.3;
}

.post-content-area h2 {
    font-size: 2.2rem;
    position: relative;
    padding-bottom: 15px;
}

.post-content-area h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-light), var(--accent-color));
    border-radius: 2px;
}

.post-content-area h3 {
    font-size: 1.8rem;
    color: var(--text-light);
}

.post-content-area p {
    margin-bottom: 25px;
    text-align: justify;
}

.post-content-area ul,
.post-content-area ol {
    margin-bottom: 25px;
    padding-left: 30px;
}

.post-content-area li {
    margin-bottom: 10px;
}

.post-content-area blockquote {
    background: var(--gradient-light);
    border-left: 5px solid var(--accent-color);
    padding: 30px 40px;
    margin: 40px 0;
    font-style: italic;
    border-radius: 0 15px 15px 0;
    font-size: 1.1rem;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.post-content-area blockquote::before {
    content: '"';
    font-size: 4rem;
    color: var(--accent-color);
    position: absolute;
    top: -10px;
    left: 20px;
    opacity: 0.3;
}

.post-content-area img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    margin: 30px 0;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

/* Seção de Ações Elegante */
.post-actions-section {
    background: var(--gradient-light);
    border-radius: 20px;
    padding: 40px;
    margin: 60px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.post-actions-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(247, 148, 29, 0.08), transparent 50%);
    opacity: 0.65;
    pointer-events: none;
}

/* Botão Voltar Elegante */
.back-to-blog-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--gradient-accent);
    color: var(--nexus-cta-text);
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(247, 148, 29, 0.35);
}

.back-to-blog-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(247, 148, 29, 0.45);
    gap: 16px;
    color: var(--nexus-cta-text);
    text-decoration: none;
}

.back-to-blog-btn i {
    transition: transform 0.3s ease;
}

.back-to-blog-btn:hover i {
    transform: translateX(-3px);
}

/* Botões de Compartilhamento Elegantes */
.share-section {
    text-align: center;
}

.share-label {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 15px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.social-share-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    position: relative;
    overflow: hidden;
}

.social-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1), rgba(255,255,255,0.3));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-btn:hover::before {
    opacity: 1;
}

.social-btn.facebook {
    background: linear-gradient(135deg, #3b5998 0%, #2d4373 100%);
}

.social-btn.twitter {
    background: linear-gradient(135deg, #1da1f2 0%, #0d8bd9 100%);
}

.social-btn.linkedin {
    background: linear-gradient(135deg, #0077b5 0%, #005885 100%);
}

.social-btn.whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #1ebe57 100%);
}

.social-btn:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Posts Relacionados Elegantes */
.related-posts-section {
    background: var(--gradient-light);
    padding: 80px 20px;
    margin: 60px auto 0;
    max-width: 1200px;
    border-radius: 25px;
}

.related-posts-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 50px;
    font-weight: 700;
    position: relative;
}

.related-posts-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-light), var(--accent-color));
    border-radius: 2px;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.related-post-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.related-post-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-light), var(--accent-color));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.related-post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(31, 58, 95, 0.06), rgba(247, 148, 29, 0.06));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.related-post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: inherit;
}

.related-post-card:hover::before {
    opacity: 1;
}

.related-post-card:hover::after {
    opacity: 1;
}

.related-post-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

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

.related-post-card:hover .related-post-image img {
    transform: scale(1.1);
}

.related-post-content {
    padding: 25px;
    position: relative;
    z-index: 2;
}

.related-post-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-post-date {
    font-size: 0.9rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

.related-post-date i {
    color: var(--accent-color);
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsividade */
@media (max-width: 768px) {
    .post-hero {
        height: 60vh;
        min-height: 400px;
    }
    
    .post-breadcrumb {
        top: 80px;
        padding: 8px 20px;
        font-size: 0.9rem;
    }
    
    .post-main-title {
        font-size: 2.5rem;
    }
    
    .post-meta-elegant {
        gap: 20px;
        flex-direction: column;
        align-items: center;
    }
    
    .meta-item {
        padding: 10px 18px;
        font-size: 0.9rem;
    }
    
    .post-article {
        padding: 60px 20px;
    }
    
    .post-content-area {
        font-size: 1.05rem;
    }
    
    .post-content-area h2 {
        font-size: 1.8rem;
    }
    
    .post-actions-section {
        flex-direction: column;
        gap: 30px;
        padding: 30px 20px;
    }
    
    .social-share-buttons {
        flex-wrap: wrap;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .related-posts-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .post-main-title {
        font-size: 2rem;
    }
    
    .post-content-area {
        font-size: 1rem;
    }
    
    .post-content-area blockquote {
        padding: 20px 25px;
        font-size: 1rem;
    }
    
    .back-to-blog-btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
    
    .social-btn {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}
