/*
Theme Name: Quantoma Theme
Theme URI: https://www.quantoma.ai/blog
Author: Quantoma Team
Author URI: https://www.quantoma.ai
Description: Tema customizado para o blog da Quantoma - identidade visual consistente com a plataforma principal
Version: 2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: quantoma-theme
*/

/* Reset e base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #000000;
    color: #d1d5db;
    line-height: 1.6;
    min-height: 100vh;
}

/* Header */
.site-header {
    background: #000000;
    border-bottom: 1px solid #374151;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo img {
    height: 48px;
    width: auto;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.language-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lang-btn {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 0.25rem 0.5rem;
    text-decoration: none;
}

.lang-btn:hover,
.lang-btn.active {
    color: #ffffff;
}

.lang-separator {
    color: #6b7280;
    font-size: 0.875rem;
}

.open-app-btn {
    background: #3b82f6;
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: background-color 0.3s ease;
}

.open-app-btn:hover {
    background: #2563eb;
    color: #ffffff;
}

/* Hero CTA Section */
.blog-hero-cta {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    border-bottom: 1px solid #374151;
    padding: 4rem 0;
    text-align: center;
}

.blog-hero-cta-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.blog-hero-cta h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
}

.blog-hero-cta p {
    font-size: 1.25rem;
    color: #d1d5db;
    margin-bottom: 2rem;
}

.hero-cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}

.hero-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

/* Main Content */
.site-main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.posts-container-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .posts-container-wrapper {
        grid-template-columns: 3fr 1fr;
    }
}

/* Posts Container */
.posts-container {
    background: #111827;
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid #374151;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #374151;
}

/* Featured Posts Section */
.featured-posts-section {
    margin-bottom: 3rem;
}

.featured-posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .featured-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .featured-posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.featured-post-card {
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.featured-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    border-color: #3b82f6;
}

.featured-post-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.featured-post-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #374151;
}

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

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

.featured-post-content {
    padding: 1.5rem;
}

.featured-post-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0.75rem 0;
    line-height: 1.4;
}

.featured-post-excerpt {
    color: #9ca3af;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.featured-post-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    font-size: 0.75rem;
    color: #6b7280;
}

.post-date {
    color: #9ca3af;
}

.post-reading-time {
    color: #6b7280;
}

/* Regular Posts Grid */
.regular-posts-section {
    margin-top: 2rem;
}

.posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.post-card {
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    border-color: #3b82f6;
}

.post-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.post-card-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #374151;
    position: relative;
}

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

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

.new-badge-overlay {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: #10b981;
    color: #ffffff;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.post-card-content {
    padding: 1.5rem;
}

.post-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.post-category.plataforma { background-color: #3b82f6; }
.post-category.ai { background-color: #8b5cf6; }
.post-category.mercados { background-color: #10b981; }
.post-category.guia { background-color: #f59e0b; }
.post-category.inspiracao { background-color: #ec4899; }

.post-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.post-excerpt {
    color: #9ca3af;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.post-card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.75rem;
    color: #6b7280;
}

.new-badge {
    background: #10b981;
    color: #ffffff;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.read-more {
    color: #3b82f6;
    font-weight: 500;
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
}

.read-more:hover {
    color: #60a5fa;
}

/* Paginação */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    text-decoration: none;
    color: #d1d5db;
    background: #1f2937;
    border: 1px solid #374151;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: #374151;
    color: #ffffff;
    border-color: #3b82f6;
}

.pagination .current {
    background: #3b82f6;
    color: #ffffff;
    border-color: #3b82f6;
}

/* No Posts */
.no-posts {
    text-align: center;
    padding: 3rem;
    color: #9ca3af;
}

/* Breadcrumbs */
.breadcrumbs {
    margin-bottom: 2rem;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    font-size: 0.875rem;
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
}

.breadcrumb-list a {
    color: #3b82f6;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-list a:hover {
    color: #60a5fa;
}

.breadcrumb-list span[aria-hidden="true"] {
    color: #6b7280;
    margin: 0 0.5rem;
}

.breadcrumb-list .current {
    color: #d1d5db;
}

/* Single Post Layout */
.single-post-wrapper {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.single-post-container {
    margin-bottom: 2rem;
}

.single-post-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .single-post-layout {
        grid-template-columns: 2fr 1fr;
    }
}

.single-post-content {
    background: #111827;
    border: 1px solid #374151;
    border-radius: 12px;
    padding: 2.5rem;
}

.post-header {
    text-align: left;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #374151;
}

.post-header .post-title {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin: 1rem 0;
    line-height: 1.3;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    color: #9ca3af;
    font-size: 0.875rem;
    margin-top: 1rem;
}

.meta-item {
    color: #9ca3af;
}

.meta-item strong {
    color: #d1d5db;
}

.meta-separator {
    color: #6b7280;
}

.post-featured-image {
    margin: 2rem 0;
    border-radius: 12px;
    overflow: hidden;
}

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

.post-content {
    line-height: 1.8;
    color: #d1d5db;
    font-size: 1rem;
}

.post-content h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #ffffff;
    margin: 2rem 0 1rem 0;
    line-height: 1.3;
}

.post-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin: 1.5rem 0 0.75rem 0;
    line-height: 1.3;
}

.post-content p {
    margin-bottom: 1.5rem;
    color: #d1d5db;
}

.post-content ul, .post-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
    color: #d1d5db;
}

.post-content li {
    margin-bottom: 0.5rem;
}

.post-content blockquote {
    border-left: 4px solid #3b82f6;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #9ca3af;
    background: #1f2937;
    padding: 1rem 1.5rem;
    border-radius: 8px;
}

.post-content a {
    color: #3b82f6;
    text-decoration: underline;
}

.post-content a:hover {
    color: #60a5fa;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

/* Post Tags */
.post-tags {
    margin: 2rem 0;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tags-label {
    color: #9ca3af;
    font-weight: 500;
    font-size: 0.875rem;
}

.tag-link {
    background: #1f2937;
    color: #3b82f6;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.875rem;
    border: 1px solid #374151;
    transition: all 0.3s ease;
}

.tag-link:hover {
    background: #374151;
    border-color: #3b82f6;
    color: #60a5fa;
}

/* Social Share */
.post-share {
    margin: 2rem 0;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.share-label {
    color: #9ca3af;
    font-weight: 500;
    font-size: 0.875rem;
}

.share-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.share-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #1f2937;
    border: 1px solid #374151;
    color: #9ca3af;
    text-decoration: none;
    transition: all 0.3s ease;
}

.share-button:hover {
    background: #374151;
    border-color: #3b82f6;
    color: #3b82f6;
    transform: translateY(-2px);
}

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

/* Post Navigation */
.post-navigation {
    margin: 2rem 0;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .post-navigation {
        grid-template-columns: 1fr 1fr;
    }
}

.nav-previous,
.nav-next {
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.nav-previous:hover,
.nav-next:hover {
    border-color: #3b82f6;
    background: #374151;
}

.nav-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.nav-direction {
    display: block;
    font-size: 0.75rem;
    color: #9ca3af;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.nav-title {
    display: block;
    color: #ffffff;
    font-weight: 500;
    font-size: 0.875rem;
    line-height: 1.4;
}

.post-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    text-align: center;
}

.back-to-blog {
    display: inline-block;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.back-to-blog:hover {
    color: #60a5fa;
}

/* Sidebar */
.site-sidebar {
    background: #111827;
    border: 1px solid #374151;
    border-radius: 12px;
    padding: 1.5rem;
    position: sticky;
    top: 2rem;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
}

.single-post-sidebar {
    position: sticky;
    top: 2rem;
    align-self: start;
}

.widget {
    margin-bottom: 2rem;
}

.widget:last-child {
    margin-bottom: 0;
}

.widget-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #374151;
}

/* Quantoma CTA Widget */
.quantoma-cta-widget {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    border: 1px solid #374151;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.quantoma-cta-content {
    text-align: center;
}

.quantoma-cta-text {
    color: #d1d5db;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.quantoma-cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.cta-button {
    display: block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    text-align: center;
    transition: all 0.3s ease;
}

.cta-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    border: none;
}

.cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.cta-secondary {
    background: transparent;
    color: #3b82f6;
    border: 1px solid #3b82f6;
}

.cta-secondary:hover {
    background: #1f2937;
    border-color: #60a5fa;
    color: #60a5fa;
}

.quantoma-plans-link {
    display: inline-block;
    color: #9ca3af;
    font-size: 0.75rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.quantoma-plans-link:hover {
    color: #3b82f6;
}

/* Related Posts Widget */
.related-posts-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.related-post-item {
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.related-post-item:hover {
    border-color: #3b82f6;
    transform: translateX(4px);
}

.related-post-link {
    display: flex;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
    padding: 0.75rem;
}

.related-post-image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background: #374151;
}

.related-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-post-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.related-post-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 0.25rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-post-date {
    font-size: 0.75rem;
    color: #6b7280;
}

/* Categories Widget */
.category-list {
    list-style: none;
    padding: 0;
}

.category-list li {
    margin-bottom: 0.5rem;
}

.category-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.category-link:hover {
    background: #374151;
    border-color: #3b82f6;
}

.category-color-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.category-name {
    flex: 1;
    color: #d1d5db;
    font-weight: 500;
    font-size: 0.875rem;
}

.category-count {
    background: #374151;
    color: #9ca3af;
    padding: 0.25rem 0.6rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.category-color-dot.plataforma { background-color: #3b82f6; }
.category-color-dot.ai { background-color: #8b5cf6; }
.category-color-dot.mercados { background-color: #10b981; }
.category-color-dot.guia { background-color: #f59e0b; }
.category-color-dot.inspiracao { background-color: #ec4899; }

/* Quantoma Bio Widget */
.quantoma-bio-widget {
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 12px;
    padding: 1.5rem;
}

.quantoma-bio-content p {
    color: #9ca3af;
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.quantoma-bio-link {
    display: inline-block;
    color: #3b82f6;
    font-size: 0.875rem;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.quantoma-bio-link:hover {
    color: #60a5fa;
}

/* Footer */
.site-footer {
    background: #000000;
    color: #d1d5db;
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
    border-top: 1px solid #374151;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .footer-top {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-logo img {
    height: 48px;
    width: auto;
}

.footer-auth-links {
    display: flex;
    gap: 1.5rem;
}

.footer-link {
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #ffffff;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.social-link {
    color: #9ca3af;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-link:hover {
    color: #ffffff;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    font-size: 0.875rem;
}

.legal-link {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal-link:hover {
    color: #ffffff;
}

.legal-separator {
    color: #6b7280;
}

.footer-email {
    color: #9ca3af;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 1.5rem;
    font-size: 0.875rem;
    color: #6b7280;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
}

/* Responsividade */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .header-actions {
        width: 100%;
        justify-content: center;
    }
    
    .site-logo img {
        height: 40px;
    }
    
    .blog-hero-cta h1 {
        font-size: 2rem;
    }
    
    .blog-hero-cta p {
        font-size: 1rem;
    }
    
    .hero-cta-button {
        padding: 0.875rem 1.5rem;
        font-size: 0.875rem;
    }
    
    .site-main {
        padding: 0 1rem;
    }
    
    .posts-container {
        padding: 1.5rem;
    }
    
    .single-post-content {
        padding: 1.5rem;
    }
    
    .post-header .post-title {
        font-size: 1.5rem;
    }
    
    .footer-top {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-auth-links {
        justify-content: center;
    }
    
    .footer-legal {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .legal-separator {
        display: none;
    }
}
