/* Blog Post Specific Styles */

/* Breadcrumbs */
.breadcrumbs {
    background: #f8f9fa;
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 2rem;
}

.breadcrumbs ul {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.breadcrumbs li {
    color: #666;
}

/* Separadores são renderizados pelo componente breadcrumbs
   (li literais); o ::after duplicava as barras. */

.breadcrumbs a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs .active {
    color: #333;
}

/* Grid Layout */
.blog-post-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
    align-items: start;
}

.blog-post-content {
    min-width: 0;
}

/* Post Single */
.post-single {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 3rem;
}

.post-single-header {
    padding: 3rem;
    text-align: center;
    background: white;
}

.post-single-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.category-badge {
    background: var(--primary-color);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
}

.category-badge:hover {
    background: var(--primary-color-dark, #2980b9);
}

.meta-separator {
    color: #ddd;
}

.reading-time {
    color: #666;
}

.post-single-header h1 {
    font-size: 2.5rem;
    margin: 1rem 0;
    color: var(--text-color);
    line-height: 1.2;
}

.post-single-author {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    color: #666;
    font-size: 0.95rem;
}

.post-single-image-wrapper {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
}

.post-single-image {
    width: 100%;
    height: auto;
    display: block;
}

.post-single-content {
    padding: 3rem;
    max-width: 800px;
    margin: 0 auto;
}

.post-single-content p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #444;
    font-size: 1.05rem;
}

.post-single-content h2 {
    margin: 2.5rem 0 1rem;
    color: var(--primary-color);
    font-size: 1.8rem;
}

.post-single-content h3 {
    margin: 2rem 0 1rem;
    color: #333;
    font-size: 1.4rem;
}

.post-single-content ul,
.post-single-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    line-height: 1.8;
}

.post-single-content li {
    margin-bottom: 0.5rem;
    color: #444;
}

.post-single-content img {
    max-width: 100%;
    height: auto;
    margin: 2rem 0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.post-single-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #666;
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
}

.post-single-content code {
    background: #f4f4f4;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9em;
}

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

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

/* Tags Section */
.post-tags {
    padding: 0 3rem 3rem;
    max-width: 800px;
    margin: 0 auto;
}

.post-tags h3 {
    margin-bottom: 1rem;
    color: #666;
    font-size: 1rem;
    font-weight: normal;
}

.tags-list {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background: #f0f0f0;
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    text-decoration: none;
    color: #666;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.tag:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Share Section */
.share-section {
    padding: 2rem 3rem;
    background: #f8f9fa;
    text-align: center;
    border-top: 1px solid #e9ecef;
}

.share-section h3 {
    margin-bottom: 1.5rem;
    color: #333;
    font-size: 1.2rem;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-button {
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.share-button svg {
    width: 20px;
    height: 20px;
}

.share-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.share-facebook {
    background: #1877f2;
}

.share-twitter {
    background: #1da1f2;
}

.share-whatsapp {
    background: #25d366;
}

.share-linkedin {
    background: #0077b5;
}

/* Related Posts */
.related-posts {
    margin-bottom: 3rem;
}

.related-posts h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
    font-size: 1.8rem;
}

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

.related-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.related-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

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

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

.related-content {
    padding: 1.5rem;
}

.related-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    line-height: 1.3;
}

.related-content h3 a {
    color: var(--text-color);
    text-decoration: none;
}

.related-content h3 a:hover {
    color: var(--primary-color);
}

.related-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: #666;
}

.related-meta .category {
    background: var(--primary-color);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 15px;
    font-size: 0.8rem;
}

/* Sidebar Widgets */
.search-widget .search-input-wrapper {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 25px;
    overflow: hidden;
}

.search-widget .search-input {
    flex: 1;
    padding: 0.7rem 1rem;
    border: none;
    outline: none;
    font-size: 0.95rem;
}

.search-widget .search-submit {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.search-widget .search-submit:hover {
    background: var(--primary-color-dark, #2980b9);
}

.posts-list {
    list-style: none;
    padding: 0;
}

.posts-list li {
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.posts-list li:last-child {
    border-bottom: none;
}

.posts-list a {
    text-decoration: none;
    color: var(--text-color);
    display: block;
}

.posts-list h4 {
    margin-bottom: 0.3rem;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.3;
    transition: color 0.3s;
}

.posts-list a:hover h4 {
    color: var(--primary-color);
}

.posts-list time {
    color: #999;
    font-size: 0.85rem;
}

.views-count {
    color: #666;
    font-size: 0.85rem;
}

/* Tags Cloud */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-cloud-item {
    background: #f0f0f0;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    text-decoration: none;
    color: #666;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.tag-cloud-item:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Newsletter Widget */
.newsletter-widget {
    background: #f8f9fa;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.newsletter-form input {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.95rem;
}

.newsletter-form .btn-primary {
    width: 100%;
}

/* Responsive */
@media (max-width: 1024px) {
    .blog-post-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-sidebar {
        margin-top: 3rem;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .post-single-header {
        padding: 2rem 1.5rem;
    }
    
    .post-single-header h1 {
        font-size: 1.8rem;
    }
    
    .post-single-content {
        padding: 2rem 1.5rem;
    }
    
    .post-single-meta {
        flex-wrap: wrap;
        font-size: 0.85rem;
    }
    
    .share-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .share-button {
        width: 200px;
        justify-content: center;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-sidebar {
        grid-template-columns: 1fr;
    }
}