/* ========================================
   Post Individual - Estilos
   Editorial Magazine Aesthetic
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,900;1,400&family=Work+Sans:wght@300;400;500;600;700&display=swap');

/* Container Principal */
.single-post-container {
    background: linear-gradient(135deg, #fef9f0 0%, #fff3d8 50%, #fef5e7 100%);
    min-height: 100vh;
    padding-top: 0;
    position: relative;
    overflow: hidden;
}

.single-post-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 400px;
    background: 
        radial-gradient(circle at 20% 50%, rgba(135, 59, 75, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(82, 56, 39, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Breadcrumbs - REMOVIDO */

/* Article */
.single-post {
    background: white;
    margin: 0 auto 0;
    overflow: visible;
    position: relative;
    z-index: 1;
}

.single-post .container {
    max-width: 1100px;
    padding: 0;
}

/* Cabeçalho do Post */
.post-header {
    padding: 4rem 5rem 3rem;
    text-align: left;
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #fefbf7 100%);
    border-bottom: 1px solid rgba(135, 59, 75, 0.08);
}

.post-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 8px;
    height: 100%;
    background: linear-gradient(180deg, #873b4b 0%, #a85566 100%);
}

.post-title {
    font-family: Arial, sans-serif;
    font-size: 3.2rem;
    color: #1a1a1a;
    margin-bottom: 2rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
    max-width: 900px;
    position: relative;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Meta Informações */
.post-meta {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    color: #873b4b;
    font-size: 0.9rem;
    flex-wrap: wrap;
    font-family: 'Work Sans', sans-serif;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    animation: fadeIn 1s ease-out 0.3s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.post-date,
.post-author {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1.2rem;
    background: rgba(135, 59, 75, 0.05);
    border-radius: 30px;
    transition: all 0.3s ease;
}

.post-date:hover,
.post-author:hover {
    background: rgba(135, 59, 75, 0.1);
    transform: translateY(-2px);
}

.post-meta i {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Imagem Destacada */
.post-thumbnail {
    margin: 0;
    position: relative;
    overflow: hidden;
    height: 600px;
    animation: fadeIn 1.2s ease-out 0.5s both;
}

.post-thumbnail::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.02) 100%
    );
    pointer-events: none;
}

.post-featured-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease;
}

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

/* Conteúdo do Post */
.post-content {
    font-family: Arial, sans-serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #2a2a2a;
    padding: 4rem 5rem;
    max-width: 1000px;
    margin: 0 auto;
    animation: fadeIn 1.4s ease-out 0.7s both;
    text-align: justify;
}

.post-content p {
    margin-bottom: 1.8rem;
    font-weight: 400;
    text-align: justify;
    font-size: 1.1rem !important;
}

/* Normalizar spans e outros elementos inline */
.post-content span,
.post-content span[style] {
    font-size: inherit !important;
    font-family: inherit !important;
}

.post-content p:first-of-type {
    font-size: 1.1rem !important;
    line-height: 1.8;
    color: #1a1a1a;
    font-weight: 400;
    margin-bottom: 2.5rem;
}

.post-content h2 {
    font-family: Arial, sans-serif;
    font-size: 2rem;
    color: #1a1a1a;
    margin-top: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
    position: relative;
    padding-left: 2rem;
}

.post-content h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 5px;
    height: calc(100% - 1rem);
    background: linear-gradient(180deg, #873b4b 0%, #a85566 100%);
    border-radius: 3px;
}

.post-content h3 {
    font-family: Arial, sans-serif;
    font-size: 1.6rem;
    color: #2a2a2a;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.4;
}

.post-content h4 {
    font-family: Arial, sans-serif;
    font-size: 1.25rem;
    color: #873b4b;
    margin-top: 2rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-content ul,
.post-content ol {
    margin-bottom: 2rem;
    padding-left: 2.5rem;
}

.post-content li {
    margin-bottom: 0.8rem;
    line-height: 1.8;
}

.post-content ul li::marker {
    color: #873b4b;
    font-size: 1.2em;
}

.post-content blockquote {
    border-left: 5px solid #873b4b;
    padding: 2rem 2.5rem;
    margin: 3rem 0;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.3rem;
    color: #523827;
    background: linear-gradient(135deg, rgba(135, 59, 75, 0.03) 0%, rgba(135, 59, 75, 0.01) 100%);
    border-radius: 0 8px 8px 0;
    position: relative;
}

.post-content blockquote::before {
    content: '"';
    font-family: 'Playfair Display', serif;
    font-size: 5rem;
    color: rgba(135, 59, 75, 0.15);
    position: absolute;
    top: -1rem;
    left: 1rem;
    line-height: 1;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0;
    margin: 3rem 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.post-content img:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.post-content a {
    color: #873b4b;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid rgba(135, 59, 75, 0.3);
    transition: all 0.3s ease;
}

.post-content a:hover {
    color: #6d2c3a;
    border-bottom-color: #6d2c3a;
}

/* Paginação de Conteúdo */
.page-links {
    margin: 3rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(135, 59, 75, 0.03) 0%, rgba(135, 59, 75, 0.01) 100%);
    border-radius: 12px;
    text-align: center;
    border: 2px solid rgba(135, 59, 75, 0.1);
}

.page-links a {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    margin: 0 0.5rem;
    background: white;
    color: #873b4b;
    text-decoration: none;
    border-radius: 8px;
    border: 2px solid #873b4b;
    font-family: 'Work Sans', sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
}

.page-links a:hover {
    background: #873b4b;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(135, 59, 75, 0.3);
}


/* Rodapé do Post */
.post-footer {
    border-top: 3px solid rgba(135, 59, 75, 0.1);
    padding: 3rem 5rem 4rem;
    margin-top: 0;
    background: linear-gradient(135deg, #fefbf7 0%, #ffffff 100%);
}

/* Botão Voltar */
.back-to-news {
    margin-bottom: 3rem;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #873b4b 0%, #a85566 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-family: 'Work Sans', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(135, 59, 75, 0.25);
    position: relative;
    overflow: hidden;
}

.btn-back::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.btn-back:hover {
    transform: translateX(-8px) translateY(-2px);
    box-shadow: 0 8px 25px rgba(135, 59, 75, 0.35);
}

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

/* Navegação entre Posts - REMOVIDO */


/* ========================================
   Responsividade
   ======================================== */

/* Tablets (768px - 1024px) */
@media (max-width: 1024px) {
    .post-header,
    .post-content,
    .post-footer {
        padding-left: 3rem;
        padding-right: 3rem;
    }
    
    .post-title {
        font-size: 2.8rem;
    }
    
    .post-content {
        font-size: 1.1rem;
    }
    
    .post-content p,
    .post-content p:first-of-type {
        font-size: 1.1rem !important;
    }
    
    .post-content h2 {
        font-size: 2rem;
    }
    
    .post-thumbnail {
        height: 500px;
    }
}

/* Mobile (até 767px) */
@media (max-width: 767px) {
    .single-post-container {
        padding-top: 0;
    }
    
    .post-header,
    .post-content,
    .post-footer {
        padding-left: 2rem;
        padding-right: 2rem;
    }
    
    .post-header {
        padding-top: 3rem;
        padding-bottom: 2rem;
    }
    
    .post-header::before {
        width: 5px;
    }
    
    .post-title {
        font-size: 2.2rem;
    }
    
    .post-meta {
        gap: 1rem;
    }
    
    .post-thumbnail {
        height: 350px;
    }
    
    .post-content {
        font-size: 1.05rem;
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    
    .post-content p,
    .post-content p:first-of-type {
        font-size: 1.05rem !important;
    }
    
    .post-content h2 {
        font-size: 1.7rem;
        margin-top: 2.5rem;
        padding-left: 1.5rem;
    }
    
    .post-content h3 {
        font-size: 1.4rem;
    }
    
    .post-content blockquote {
        font-size: 1.15rem;
        padding: 1.5rem 1.8rem;
        margin: 2rem 0;
    }
    
    .post-footer {
        padding-top: 2.5rem;
        padding-bottom: 3rem;
    }
    
    .back-to-news {
        margin-bottom: 2.5rem;
    }
    
    .btn-back {
        padding: 0.9rem 1.8rem;
        font-size: 0.9rem;
    }
}

/* Mobile Pequeno (até 480px) */
@media (max-width: 480px) {
    .single-post-container {
        padding-top: 0;
    }
    
    .post-header,
    .post-content,
    .post-footer {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .post-header {
        padding-top: 2.5rem;
        padding-bottom: 1.5rem;
    }
    
    .post-title {
        font-size: 1.8rem;
    }
    
    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }
    
    .post-date,
    .post-author {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
    }
    
    .post-thumbnail {
        height: 280px;
    }
    
    .post-content {
        font-size: 1rem;
        line-height: 1.8;
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }
    
    .post-content p,
    .post-content p:first-of-type {
        font-size: 1rem !important;
    }
    
    .post-content h2 {
        font-size: 1.5rem;
        margin-top: 2rem;
        padding-left: 1.2rem;
    }
    
    .post-content h2::before {
        width: 4px;
    }
    
    .post-content h3 {
        font-size: 1.25rem;
    }
    
    .post-content h4 {
        font-size: 1.1rem;
    }
    
    .post-content blockquote {
        font-size: 1.05rem;
        padding: 1.2rem 1.5rem;
        margin: 1.5rem 0;
    }
    
    .post-content blockquote::before {
        font-size: 4rem;
        top: -0.5rem;
        left: 0.8rem;
    }
    
    .post-footer {
        padding-top: 2rem;
        padding-bottom: 2.5rem;
    }
    
    .back-to-news {
        margin-bottom: 2rem;
    }
    
    .btn-back {
        padding: 0.8rem 1.5rem;
        font-size: 0.85rem;
        gap: 0.6rem;
    }
}

/* Ajustes para telas muito pequenas */
@media (max-width: 360px) {
    .post-title {
        font-size: 1.6rem;
    }
    
    .post-header,
    .post-content,
    .post-footer {
        padding-left: 1.2rem;
        padding-right: 1.2rem;
    }
    
    .post-thumbnail {
        height: 240px;
    }
    
    .post-content {
        font-size: 0.95rem;
    }
    
    .post-content p,
    .post-content p:first-of-type {
        font-size: 0.95rem !important;
    }
    
    .post-content h2 {
        font-size: 1.35rem;
    }
}

/* ========================================
   Comentários (se habilitados)
   ======================================== */

.comments-area {
    margin-top: 0;
    padding: 4rem 5rem 5rem;
    border-top: 3px solid rgba(135, 59, 75, 0.1);
    background: linear-gradient(135deg, #ffffff 0%, #fefbf7 100%);
}

.comments-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #1a1a1a;
    margin-bottom: 3rem;
    font-weight: 700;
    position: relative;
    padding-left: 2rem;
}

.comments-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 5px;
    height: calc(100% - 1rem);
    background: linear-gradient(180deg, #873b4b 0%, #a85566 100%);
    border-radius: 3px;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin-bottom: 3rem;
}

.comment {
    margin-bottom: 2.5rem;
    padding: 2.5rem;
    background: white;
    border-radius: 16px;
    border: 2px solid rgba(135, 59, 75, 0.08);
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(135, 59, 75, 0.05);
}

.comment:hover {
    border-color: rgba(135, 59, 75, 0.2);
    box-shadow: 0 8px 25px rgba(135, 59, 75, 0.12);
    transform: translateY(-2px);
}

.comment-author {
    font-family: 'Work Sans', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: #873b4b;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.comment-author::before {
    content: '';
    width: 4px;
    height: 20px;
    background: linear-gradient(180deg, #873b4b 0%, #a85566 100%);
    border-radius: 2px;
}

.comment-metadata {
    font-family: 'Work Sans', sans-serif;
    font-size: 0.85rem;
    color: #8b7355;
    margin-bottom: 1rem;
    font-weight: 500;
}

.comment-metadata a {
    color: #8b7355;
    text-decoration: none;
    transition: color 0.3s ease;
}

.comment-metadata a:hover {
    color: #873b4b;
}

.comment-content {
    font-family: 'Work Sans', sans-serif;
    color: #2a2a2a;
    line-height: 1.8;
    font-size: 1.05rem;
}

.comment-content p {
    margin-bottom: 1rem;
}

.comment-content p:last-child {
    margin-bottom: 0;
}

.reply {
    margin-top: 1rem;
}

.comment-reply-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg, rgba(135, 59, 75, 0.05) 0%, rgba(135, 59, 75, 0.02) 100%);
    color: #873b4b;
    text-decoration: none;
    border-radius: 20px;
    font-family: 'Work Sans', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid rgba(135, 59, 75, 0.15);
    transition: all 0.3s ease;
}

.comment-reply-link:hover {
    background: linear-gradient(135deg, #873b4b 0%, #a85566 100%);
    color: white;
    border-color: #873b4b;
    transform: translateX(3px);
}

/* Formulário de Comentários */
.comment-respond {
    background: white;
    padding: 3rem;
    border-radius: 16px;
    border: 2px solid rgba(135, 59, 75, 0.08);
    box-shadow: 0 4px 20px rgba(135, 59, 75, 0.08);
}

.comment-reply-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #1a1a1a;
    margin-bottom: 2rem;
    font-weight: 700;
    position: relative;
    padding-left: 1.5rem;
}

.comment-reply-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.4rem;
    width: 4px;
    height: calc(100% - 0.8rem);
    background: linear-gradient(180deg, #873b4b 0%, #a85566 100%);
    border-radius: 2px;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.comment-form-comment {
    margin-bottom: 0;
}

.comment-form label {
    display: block;
    font-family: 'Work Sans', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: #523827;
    margin-bottom: 0.6rem;
    letter-spacing: 0.3px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 1rem 1.3rem;
    border: 2px solid rgba(135, 59, 75, 0.15);
    border-radius: 12px;
    font-family: 'Work Sans', sans-serif;
    font-size: 1rem;
    color: #2a2a2a;
    background: #fefbf7;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #873b4b;
    background: white;
    box-shadow: 0 0 0 4px rgba(135, 59, 75, 0.08);
}

.comment-form textarea {
    min-height: 180px;
    resize: vertical;
    line-height: 1.7;
}

.form-submit {
    margin-top: 1rem;
}

.form-submit input[type="submit"] {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #873b4b 0%, #a85566 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-family: 'Work Sans', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(135, 59, 75, 0.25);
}

.form-submit input[type="submit"]:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(135, 59, 75, 0.35);
}

.form-submit input[type="submit"]:active {
    transform: translateY(-1px);
}

.comment-notes,
.logged-in-as {
    font-family: 'Work Sans', sans-serif;
    font-size: 0.9rem;
    color: #8b7355;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.logged-in-as a {
    color: #873b4b;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid rgba(135, 59, 75, 0.3);
    transition: all 0.3s ease;
}

.logged-in-as a:hover {
    color: #6d2c3a;
    border-bottom-color: #6d2c3a;
}

.required {
    color: #873b4b;
    font-weight: 700;
}

@media (max-width: 767px) {
    .comments-area {
        padding: 3rem 2rem 3.5rem;
    }
    
    .comments-title {
        font-size: 2rem;
        padding-left: 1.5rem;
    }
    
    .comment {
        padding: 2rem;
    }
    
    .comment-respond {
        padding: 2rem;
    }
    
    .comment-reply-title {
        font-size: 1.7rem;
    }
}

@media (max-width: 480px) {
    .comments-area {
        padding: 2.5rem 1.5rem 3rem;
    }
    
    .comments-title {
        font-size: 1.7rem;
        padding-left: 1.2rem;
    }
    
    .comment {
        padding: 1.5rem;
    }
    
    .comment-author {
        font-size: 1.05rem;
    }
    
    .comment-content {
        font-size: 1rem;
    }
    
    .comment-respond {
        padding: 1.5rem;
    }
    
    .comment-reply-title {
        font-size: 1.5rem;
        padding-left: 1.2rem;
    }
    
    .comment-form input[type="text"],
    .comment-form input[type="email"],
    .comment-form input[type="url"],
    .comment-form textarea {
        padding: 0.9rem 1.1rem;
        font-size: 0.95rem;
    }
    
    .form-submit input[type="submit"] {
        padding: 0.9rem 2rem;
        font-size: 0.9rem;
        width: 100%;
        justify-content: center;
    }
}
