/* ==========================================================================
   NeroVox AI - Modern Tech Theme Enhancements & AdSense Layout
   ========================================================================== */

:root {
    --nero-primary: #4f46e5;
    --nero-primary-dark: #3730a3;
    --nero-accent: #06b6d4;
    --nero-dark: #0f172a;
    --nero-dark-card: #1e293b;
    --nero-text: #1e293b;
    --nero-text-muted: #64748b;
    --nero-bg-light: #f8fafc;
    --nero-border: #e2e8f0;
    --nero-radius: 12px;
    --nero-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    color: var(--nero-text);
    background-color: #fcfcfd;
}

/* Reading Progress Bar */
#nerovox-progress-bar-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 999999;
}

#nerovox-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #4f46e5, #06b6d4, #10b981);
    transition: width 0.1s ease-out;
}

/* Article Meta Badge */
.nerovox-article-meta-badge {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 15px 0 25px 0;
    padding: 12px 18px;
    background: #f1f5f9;
    border-radius: 8px;
    font-size: 13px;
    color: var(--nero-text-muted);
    border-left: 4px solid var(--nero-primary);
}

.nerovox-badge-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Table of Contents (Sumário) */
.nerovox-toc-container {
    background: #f8fafc;
    border: 1px solid var(--nero-border);
    border-radius: var(--nero-radius);
    padding: 20px 24px;
    margin: 25px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.nerovox-toc-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 16px;
    color: var(--nero-dark);
    margin-bottom: 12px;
    border-bottom: 1px solid var(--nero-border);
    padding-bottom: 8px;
}

.nerovox-toc-toggle {
    background: none;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    padding: 2px 10px;
    font-size: 12px;
    color: var(--nero-text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.nerovox-toc-toggle:hover {
    background: #e2e8f0;
    color: var(--nero-dark);
}

.nerovox-toc-list {
    margin: 0;
    padding-left: 20px;
    line-height: 1.8;
}

.nerovox-toc-list li a {
    color: var(--nero-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.nerovox-toc-list li a:hover {
    text-decoration: underline;
    color: var(--nero-primary-dark);
}

.nerovox-toc-level-3 {
    margin-left: 15px;
    font-size: 13px;
}

/* Social Share Bar */
.nerovox-share-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 25px 0;
    padding: 14px 0;
    border-top: 1px solid var(--nero-border);
    border-bottom: 1px solid var(--nero-border);
}

.nerovox-share-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--nero-text-muted);
    margin-right: 6px;
}

.nerovox-share-btn {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    color: #fff !important;
}

.nerovox-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-whatsapp { background: #25D366; }
.btn-linkedin { background: #0077b5; }
.btn-twitter { background: #000000; }
.btn-telegram { background: #229ED9; }
.btn-copy { background: #475569; }

/* Tech Tables & Code Blocks */
.nerovox-tech-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 14px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.nerovox-tech-table th {
    background: #1e293b;
    color: #fff;
    text-align: left;
    padding: 12px 16px;
    font-weight: 600;
}

.nerovox-tech-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--nero-border);
}

.nerovox-tech-table tr:nth-child(even) {
    background: #f8fafc;
}

.nerovox-code-block {
    background: #0f172a;
    color: #e2e8f0;
    padding: 18px;
    border-radius: 8px;
    margin: 20px 0;
    overflow-x: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    line-height: 1.6;
    border: 1px solid #1e293b;
}

.nerovox-code-block pre {
    margin: 0;
    background: transparent !important;
    color: inherit !important;
    padding: 0 !important;
}

.nerovox-content-box {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-left: 4px solid var(--nero-primary);
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
}

/* Author Box (E-E-A-T) */
.nerovox-author-box {
    display: flex;
    gap: 20px;
    align-items: center;
    background: #f8fafc;
    border: 1px solid var(--nero-border);
    border-radius: var(--nero-radius);
    padding: 24px;
    margin: 40px 0 25px 0;
}

.nerovox-avatar-placeholder {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f46e5, #06b6d4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3);
}

.nerovox-author-role {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--nero-primary);
}

.nerovox-author-name {
    margin: 4px 0 8px 0;
    font-size: 18px;
    color: var(--nero-dark);
}

.nerovox-author-desc {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: var(--nero-text-muted);
}

/* Newsletter Box */
.nerovox-newsletter-card {
    background: linear-gradient(135deg, #1e1b4b, #312e81);
    color: #fff;
    padding: 35px;
    border-radius: var(--nero-radius);
    margin: 35px 0;
    text-align: center;
    box-shadow: 0 15px 30px rgba(49, 46, 129, 0.25);
}

.nerovox-newsletter-icon {
    font-size: 36px;
    margin-bottom: 10px;
}

.nerovox-newsletter-card h3 {
    color: #fff !important;
    font-size: 22px;
    margin: 0 0 10px 0;
}

.nerovox-newsletter-card p {
    color: #c7d2fe;
    font-size: 14px;
    max-width: 600px;
    margin: 0 auto 20px auto;
}

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

.nerovox-newsletter-form input {
    flex: 1;
    padding: 12px 18px;
    border-radius: 8px;
    border: none;
    font-size: 14px;
    outline: none;
}

.nerovox-newsletter-form button {
    background: #06b6d4;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.nerovox-newsletter-form button:hover {
    background: #0891b2;
}

.nerovox-newsletter-notice {
    display: block;
    font-size: 11px;
    color: #94a3b8;
    margin-top: 10px;
}

/* AdSense Slots Styling & Demo Placeholders */
.nerovox-ad-container {
    margin: 25px auto;
    text-align: center;
    clear: both;
}

.nerovox-ad-slot-wrapper {
    margin: 30px auto;
    max-width: 100%;
    text-align: center;
}

.nerovox-ad-slot-label {
    font-size: 10px;
    letter-spacing: 1.5px;
    color: #94a3b8;
    text-transform: uppercase;
    margin-bottom: 6px;
    font-weight: 600;
}

.nerovox-ad-placeholder {
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
}

.nerovox-ad-placeholder:hover {
    border-color: var(--nero-primary);
    background: #f1f5f9;
}

.nerovox-ad-icon {
    font-size: 24px;
}

.nerovox-ad-text {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
}

.nerovox-ad-subtext {
    font-size: 11px;
    color: #94a3b8;
}

/* Cookie Banner (LGPD / GDPR / AdSense) */
.nerovox-cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 800px;
    margin: 0 auto;
    background: #1e293b;
    color: #f1f5f9;
    padding: 18px 24px;
    border-radius: var(--nero-radius);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    z-index: 999999;
    border: 1px solid #334155;
    animation: nerovoxFadeUp 0.4s ease-out;
}

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

.nerovox-cookie-content {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 13px;
    line-height: 1.5;
}

.nerovox-cookie-content p {
    margin: 0;
}

.nerovox-cookie-content a {
    color: #38bdf8;
    text-decoration: underline;
}

.nerovox-cookie-icon {
    font-size: 28px;
}

.nerovox-cookie-actions {
    display: flex;
    gap: 10px;
    white-space: nowrap;
}

.nerovox-cookie-btn-accept {
    background: #10b981;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 18px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s;
}

.nerovox-cookie-btn-accept:hover {
    background: #059669;
}

.nerovox-cookie-btn-pref {
    background: transparent;
    color: #cbd5e1;
    border: 1px solid #475569;
    border-radius: 6px;
    padding: 8px 14px;
    font-size: 13px;
    text-decoration: none;
}

/* Contact Grid */
.nerovox-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.nerovox-contact-card {
    background: #f8fafc;
    border: 1px solid var(--nero-border);
    border-radius: var(--nero-radius);
    padding: 20px;
    text-align: center;
}

.nerovox-contact-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 8px;
}

.nerovox-contact-card h4 {
    margin: 0 0 6px 0;
    color: var(--nero-dark);
}

.nerovox-contact-card p {
    margin: 0;
    font-size: 13px;
    color: var(--nero-text-muted);
}

@media (max-width: 768px) {
    .nerovox-cookie-banner {
        flex-direction: column;
        align-items: stretch;
    }
    .nerovox-cookie-actions {
        justify-content: flex-end;
    }
    .nerovox-newsletter-form {
        flex-direction: column;
    }
}
