/**
 * Single Post Styles
 * Estilização elegante para páginas de post individuais
 */

/* Container principal do post */
.single-post .site-main {
    padding-top: 2rem;
    padding-bottom: 3rem;
}

/* Cabeçalho do post */
.single-post .page-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-left: 4px solid #c36;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.single-post .page-header .entry-title {
    color: #333;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    letter-spacing: -0.5px;
}

@media (max-width: 767px) {
    .single-post .page-header {
        padding: 1.5rem;
    }
    
    .single-post .page-header .entry-title {
        font-size: 1.75rem;
    }
}

/* Meta informações do post */
.single-post .entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 1rem 0;
    margin-bottom: 2rem;
    border-bottom: 2px solid #f0f0f0;
    font-size: 0.9rem;
    color: #666;
}

.single-post .entry-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.single-post .entry-meta .meta-item svg,
.single-post .entry-meta .meta-item i {
    color: #c36;
}

.single-post .entry-meta a {
    color: #c36;
    text-decoration: none;
    transition: color 0.3s;
}

.single-post .entry-meta a:hover {
    color: #336;
}

/* Conteúdo do post */
.single-post .page-content {
    background: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    line-height: 1.8;
    font-size: 1.1rem;
    color: #444;
}

.single-post .page-content p {
    margin-bottom: 1.5rem;
}

.single-post .page-content h2,
.single-post .page-content h3,
.single-post .page-content h4 {
    color: #333;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.single-post .page-content h2 {
    font-size: 2rem;
    border-bottom: 3px solid #c36;
    padding-bottom: 0.5rem;
}

.single-post .page-content h3 {
    font-size: 1.5rem;
    color: #c36;
}

.single-post .page-content h4 {
    font-size: 1.25rem;
}

/* Links no conteúdo */
.single-post .page-content a {
    color: #c36;
    text-decoration: underline;
    text-decoration-color: rgba(204, 51, 102, 0.3);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    transition: all 0.3s;
}

.single-post .page-content a:hover {
    color: #336;
    text-decoration-color: #336;
}

/* Imagens no conteúdo */
.single-post .page-content img {
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
    transition: transform 0.3s;
}

.single-post .page-content img:hover {
    transform: scale(1.02);
}

/* Blockquotes */
.single-post .page-content blockquote {
    border-left: 4px solid #c36;
    background: #f8f9fa;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #555;
}

.single-post .page-content blockquote p:last-child {
    margin-bottom: 0;
}

/* Listas */
.single-post .page-content ul,
.single-post .page-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.single-post .page-content ul li,
.single-post .page-content ol li {
    margin-bottom: 0.75rem;
    line-height: 1.8;
}

.single-post .page-content ul li::marker {
    color: #c36;
}

/* Código */
.single-post .page-content code {
    background: #f4f4f4;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9em;
    color: #c36;
}

.single-post .page-content pre {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 2rem 0;
}

.single-post .page-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

/* Tags do post */
.single-post .post-tags {
    margin-top: 3rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 8px;
    border-top: 2px solid #c36;
}

.single-post .post-tags .tag-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.single-post .post-tags .tag-links::before {
    content: "🏷️";
    font-size: 1.2rem;
}

.single-post .post-tags a {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #fff;
    border: 2px solid #c36;
    border-radius: 20px;
    color: #c36;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s;
}

.single-post .post-tags a:hover {
    background: #c36;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(204, 51, 102, 0.3);
}

/* Paginação de páginas */
.single-post .page-content .wp-link-pages {
    margin: 3rem 0 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.single-post .page-content .wp-link-pages a,
.single-post .page-content .wp-link-pages > span {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0.25rem;
    border: 2px solid #c36;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s;
}

.single-post .page-content .wp-link-pages a {
    background: #fff;
    color: #c36;
}

.single-post .page-content .wp-link-pages a:hover {
    background: #c36;
    color: #fff;
}

.single-post .page-content .wp-link-pages > span {
    background: #c36;
    color: #fff;
}

/* Área de comentários */
.single-post #comments {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 3px solid #f0f0f0;
}

.single-post #comments .comments-title {
    font-size: 2rem;
    color: #333;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid #c36;
}

/* Formulário de comentários */
.single-post #comments .comment-form {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.single-post #comments .comment-form-comment {
    margin-bottom: 1.5rem;
}

.single-post #comments .comment-form textarea {
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.single-post #comments .comment-form textarea:focus {
    border-color: #c36;
    outline: none;
}

.single-post #comments .form-submit .submit {
    background-color: #c36;
    color: #fff;
    border: 2px solid #c36;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.single-post #comments .form-submit .submit:hover {
    background-color: #336;
    border-color: #336;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(51, 51, 102, 0.3);
}

/* Tabelas */
.single-post .page-content table {
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.single-post .page-content table thead {
    background: linear-gradient(135deg, #c36 0%, #92003b 100%);
    color: #fff;
}

.single-post .page-content table thead th {
    padding: 1rem;
    font-weight: 600;
    border: none;
}

.single-post .page-content table tbody tr {
    transition: background-color 0.3s;
}

.single-post .page-content table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.single-post .page-content table tbody tr:hover {
    background-color: #e9ecef;
}

.single-post .page-content table td {
    padding: 0.75rem 1rem;
    border-color: #e0e0e0;
}

/* Responsividade */
@media (max-width: 767px) {
    .single-post .site-main {
        padding-top: 1rem;
        padding-bottom: 2rem;
    }
    
    .single-post .page-content {
        padding: 1.5rem;
        font-size: 1rem;
    }
    
    .single-post .page-content h2 {
        font-size: 1.5rem;
    }
    
    .single-post .page-content h3 {
        font-size: 1.25rem;
    }
    
    .single-post .entry-meta {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .single-post #comments .comment-form {
        padding: 1.5rem;
    }
}

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

.single-post .page-header,
.single-post .page-content,
.single-post .post-tags {
    animation: fadeIn 0.6s ease-out;
}

.single-post .page-content {
    animation-delay: 0.1s;
}

.single-post .post-tags {
    animation-delay: 0.2s;
}
