/**
 * Blog Styles - Alquimistas Mágicos
 * Estilos para o blog público (listagem e artigos)
 * Reutiliza variáveis do landing.css
 */

/* ===== BLOG HEADER / NAV ===== */
.blog-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 10, 18, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.blog-nav.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.blog-nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-white);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-weight: 600;
}

.blog-nav-brand img {
    height: 36px;
    width: auto;
}

.blog-nav-brand .brand-divider {
    width: 1px;
    height: 24px;
    background: var(--border);
    margin: 0 4px;
}

.blog-nav-brand .brand-blog {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.1rem;
}

.blog-nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    color: var(--text-muted);
}

.blog-nav-link:hover {
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.05);
}

.blog-nav-link.highlight {
    background: var(--gradient);
    color: var(--bg-dark);
    font-weight: 600;
}

.blog-nav-link.highlight:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-1px);
}

/* ===== BLOG HERO ===== */
.blog-hero {
    padding: 120px 0 60px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.blog-hero h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 12px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-hero p {
    color: var(--text-muted);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== BLOG GRID ===== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
    margin-bottom: 40px;
}

/* ===== ARTICLE CARD ===== */
.article-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-6px);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 30px rgba(212, 175, 55, 0.08);
}

.article-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: var(--bg-section);
}

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

.article-card:hover .article-card-image img {
    transform: scale(1.08);
}

.article-card-image .placeholder-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    background: linear-gradient(135deg, var(--bg-section), var(--bg-card));
}

.article-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--gradient);
    color: var(--bg-dark);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.article-card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--text-muted);
    font-size: 0.82rem;
}

.article-card-meta i {
    color: var(--accent);
}

.article-card-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 10px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.article-card-title a:hover {
    color: var(--accent);
}

.article-card-excerpt {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 16px;
}

.article-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.article-card-author {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.article-card-author i {
    color: var(--accent);
}

.article-card-readmore {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    transition: all 0.3s ease;
}

.article-card-readmore:hover {
    gap: 10px;
    color: var(--accent-light);
}

/* ===== PAGINATION ===== */
.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 40px 0 60px;
}

.blog-pagination a,
.blog-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    color: var(--text-muted);
    background: var(--bg-card);
}

.blog-pagination a:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(212, 175, 55, 0.08);
}

.blog-pagination .active {
    background: var(--gradient);
    color: var(--bg-dark);
    border-color: transparent;
    font-weight: 700;
}

.blog-pagination .disabled {
    opacity: 0.3;
    pointer-events: none;
}

/* ===== ARTIGO PAGE ===== */
.article-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 100px 24px 60px;
    position: relative;
    z-index: 2;
}

.article-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.article-breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.article-breadcrumb a:hover {
    color: var(--accent);
}

.article-breadcrumb .separator {
    color: var(--border);
}

.article-header {
    margin-bottom: 40px;
}

.article-header h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-white);
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.article-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-meta-item i {
    color: var(--accent);
}

.article-featured-image {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 36px;
    max-height: 450px;
}

.article-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== ARTICLE CONTENT ===== */
.article-content {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text-light);
}

.article-content h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-white);
    margin: 40px 0 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.article-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-white);
    margin: 32px 0 12px;
}

.article-content p {
    margin-bottom: 18px;
}

.article-content ul, .article-content ol {
    margin: 16px 0 24px 24px;
}

.article-content li {
    margin-bottom: 8px;
}

.article-content blockquote {
    border-left: 3px solid var(--accent);
    padding: 16px 24px;
    margin: 24px 0;
    background: rgba(212, 175, 55, 0.05);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: var(--text-light);
}

.article-content img {
    max-width: 100%;
    border-radius: 12px;
    margin: 24px 0;
}

.article-content a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.3s;
}

.article-content a:hover {
    color: var(--accent-light);
}

.article-content strong {
    color: var(--text-white);
}

.article-content code {
    background: rgba(255, 255, 255, 0.06);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.9em;
}

/* ===== ARTICLE TAGS ===== */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 40px 0;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.article-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.article-tag:hover {
    background: rgba(212, 175, 55, 0.15);
    border-color: var(--accent);
}

/* ===== SHARE BUTTONS ===== */
.article-share {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 32px 0;
}

.article-share-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.share-btn:hover {
    transform: translateY(-2px);
}

.share-btn.whatsapp:hover {
    background: #25D366;
    border-color: #25D366;
    color: #fff;
}

.share-btn.twitter:hover {
    background: #1DA1F2;
    border-color: #1DA1F2;
    color: #fff;
}

.share-btn.facebook:hover {
    background: #4267B2;
    border-color: #4267B2;
    color: #fff;
}

.share-btn.copy:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg-dark);
}

/* ===== LEAD CAPTURE CTA ===== */
.blog-lead-cta {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), rgba(212, 175, 55, 0.03));
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 20px;
    padding: 40px 36px;
    margin: 48px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-lead-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient);
}

.blog-lead-cta .cta-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.blog-lead-cta h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.blog-lead-cta p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
}

.blog-lead-form {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}

.blog-lead-form input {
    flex: 1;
    min-width: 200px;
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg-dark);
    color: var(--text-white);
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
}

.blog-lead-form input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.blog-lead-form input::placeholder {
    color: var(--text-muted);
}

.blog-lead-form button {
    padding: 14px 28px;
    border-radius: 12px;
    border: none;
    background: var(--gradient);
    color: var(--bg-dark);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.blog-lead-form button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.blog-lead-form button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.blog-lead-success {
    display: none;
    color: #4ade80;
    font-weight: 600;
    margin-top: 12px;
    font-size: 0.95rem;
}

.blog-lead-error {
    display: none;
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 8px;
}

/* ===== COMMENTS SECTION ===== */
.comments-section {
    margin-top: 48px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.comments-section h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.comments-section h3 .count {
    font-size: 0.85rem;
    background: rgba(212, 175, 55, 0.15);
    color: var(--accent);
    padding: 2px 10px;
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
}

.comment-form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 32px;
}

.comment-form h4 {
    font-size: 1rem;
    color: var(--text-white);
    margin-bottom: 16px;
}

.comment-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.comment-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.comment-form-group label {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
}

.comment-form-group input,
.comment-form-group textarea {
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-dark);
    color: var(--text-white);
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    transition: all 0.3s ease;
    resize: vertical;
}

.comment-form-group input:focus,
.comment-form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.comment-form-group textarea {
    min-height: 100px;
}

.comment-form .btn-submit-comment {
    margin-top: 12px;
    padding: 12px 24px;
    border-radius: 10px;
    border: none;
    background: var(--gradient);
    color: var(--bg-dark);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.comment-form .btn-submit-comment:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.comment-form-msg {
    margin-top: 10px;
    font-size: 0.88rem;
    display: none;
}

.comment-form-msg.success {
    color: #4ade80;
}

.comment-form-msg.error {
    color: #ef4444;
}

/* Comment List */
.comment-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px;
    transition: border-color 0.3s;
}

.comment-item:hover {
    border-color: rgba(212, 175, 55, 0.2);
}

.comment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.comment-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--bg-dark);
    text-transform: uppercase;
}

.comment-author-name {
    font-weight: 600;
    color: var(--text-white);
    font-size: 0.95rem;
}

.comment-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.comment-body {
    color: var(--text-light);
    font-size: 0.92rem;
    line-height: 1.7;
}

.no-comments {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.no-comments i {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 12px;
    display: block;
    opacity: 0.5;
}

/* ===== BLOG FOOTER ===== */
.blog-footer {
    background: linear-gradient(180deg, var(--bg-dark) 0%, #050508 100%);
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 2;
}

.blog-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient);
    opacity: 0.3;
}

.blog-footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.blog-footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.blog-footer-links a:hover {
    color: var(--accent);
}

.blog-footer p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 8px;
}

/* ===== LANDING PAGE BLOG SECTION ===== */
.blog-section {
    padding: 80px 0;
    position: relative;
    z-index: 2;
}

.blog-section .section-header {
    text-align: center;
    margin-bottom: 48px;
}

.blog-section .blog-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 36px;
}

.blog-section .blog-view-all {
    text-align: center;
}

.blog-section .blog-view-all a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 12px;
    border: 1px solid var(--accent);
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.blog-section .blog-view-all a:hover {
    background: var(--gradient);
    color: var(--bg-dark);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* ===== EMPTY STATE ===== */
.blog-empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}

.blog-empty i {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 16px;
    display: block;
    opacity: 0.4;
}

.blog-empty h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    color: var(--text-white);
    margin-bottom: 8px;
}

/* ===== RELATED ARTICLES ===== */
.related-articles {
    margin-top: 48px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.related-articles h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 24px;
    text-align: center;
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .blog-hero h1 {
        font-size: 2rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .article-container {
        padding: 80px 16px 40px;
    }
    
    .article-header h1 {
        font-size: 1.8rem;
    }
    
    .article-meta {
        gap: 12px;
    }
    
    .blog-lead-form {
        flex-direction: column;
    }
    
    .blog-lead-form input {
        min-width: auto;
    }
    
    .comment-form-row {
        grid-template-columns: 1fr;
    }
    
    .blog-nav-link span {
        display: none;
    }
    
    .blog-nav-brand .brand-blog {
        font-size: 0.95rem;
    }
    
    .article-share {
        flex-wrap: wrap;
    }
    
    .blog-section .blog-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .blog-hero {
        padding: 100px 0 40px;
    }
    
    .blog-hero h1 {
        font-size: 1.7rem;
    }
    
    .blog-lead-cta {
        padding: 28px 20px;
    }
    
    .blog-lead-cta h3 {
        font-size: 1.3rem;
    }
    
    .comment-form {
        padding: 20px;
    }
}
