:root {
    --bg-dark: rgb(15, 23, 42); /* Core dark mode */
    --card-dark: rgb(30, 41, 59);
    --primary: #6366f1; 
    --accent: #2563eb; 
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
}

body { background: var(--bg-dark); font-family: sans-serif; margin: 0; line-height: 1.5; padding-top: 70px; padding-bottom: 100px; }

.container { max-width: 900px; margin: 0 auto; padding: 0 1rem 1.5rem 1rem; }

/* Shared Header/Footer Styles */
nav.fixed-header { position: fixed; top: 0; width: 100%; height: 40px; background: var(--card-dark); backdrop-filter: blur(10px); display: flex; align-items: center; justify-content: center; z-index: 1000; }
footer.fixed-footer { position: fixed; bottom: 0; width: 100%; padding: 0.75rem 0 2rem 0; line-height: 0.75 !important; background: var(--card-dark); text-align: center; font-size: 0.8rem; color: var(--text-muted); }

header { border-bottom: 1px solid var(--card-dark); padding-bottom: 1rem; margin-bottom: 2rem; text-align: center; line-height: normal; }
h1 { font-size: 2.5rem; color: var(--text-main); }
h2 { font-size: 1.75rem; color: var(--primary); }
h3 { font-size: 1.25rem; color: var(--text-main); }
h4 { font-size: 1rem; color: var(--primary); }
p { color: var(--text-muted); font-weight: 400 !important; }
figcaption { color: var(--text-muted); font-weight: 400; }
a { color: var(--primary); text-decoration: none; font-weight: 600; }
a:hover { color: var(--accent); font-weight: 600; }

img { max-width: 90%; height: auto; display: block; margin-left: auto; margin-right: auto; border-radius: 10px;}

.grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .grid { grid-template-columns: 1fr 1fr; } }

.report-card { 
    background: var(--card-dark); padding: 1rem 1.5rem 0.25rem; border-radius: 12px; border: 1px solid #333; text-decoration: none; color: inherit; transition: 0.2s; position: relative; }
.report-card:hover { border-color: var(--accent); transform: translateY(-3px); }

.report-card a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit; /* Herda as cores do seu tema */
}

/* Badges via Pseudo-element */
h5 { display: inline-flex; margin-top: 0.25rem; margin-bottom: 0; }

/* 1. Badge Base */
[class*="badge-"] {
    position: relative;
    display: inline-flex;
    font-size: 0.75rem; 
    font-weight: 600; 
    text-transform: uppercase;
    border-radius: 8px; 
    padding: 0.3rem 0.6rem;
    background: var(--bg-dark); 
    color: var(--primary);
}

[class*="badge-"]::after {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
}

/* 2. Badge Icons */
.badge-free::after { content: "🟢";}
.badge-pro::after { content: "🔒"; }

/* Sobe as etiquetas "News", "How-To" de tags para spans claros */
.badge-free, .badge-pro {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    letter-spacing: 0.5px;
}

/* SEO Preview Section */
.preview-box { margin-bottom: 3rem; }
.toc-list { background: var(--card-dark); border-radius: 10px; padding: 0 1.5rem 0.25rem; border: 1px solid #333; margin: 2rem 0; }
ul { color: var(--text-muted); font-weight: 400 !important; }
li { color: var(--text-muted); font-weight: 400 !important; }
ol { color: var(--text-muted); font-weight: 400 !important; }
hr { height:0.5px; border-width:0;color: var(--card-dark);background-color: var(--card-dark); }

/* Lock Box */
#lockBox { text-align: center; padding: 1rem 1.5rem 2rem; background: var(--card-dark); border-radius: 12px; border: 1px solid #333; margin: 2rem 0; }
input { background: #000; border: 1px solid #444; color: #fff; padding: 12px; border-radius: 8px; width: 100%; max-width: 260px; text-align: center; margin-bottom: 1rem; }
button#unlockBtn { background: var(--primary); color: #fff; padding: 12px 30px; border: none; border-radius: 8px; font-weight: bold; cursor: pointer; transition: 0.2s; }
button#unlockBtn:hover { transform: scale(1.02); background: var(--accent); }

/* Decrypted Content */
#contentTarget { display: none; animation: fadeIn 0.8s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modern-table-container {
display: flex;
justify-content: center;
padding: 20px;
font-family: sans-serif;
}

.modern-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #f9f9f9;
    overflow: hidden;
    overflow-x: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.modern-table th, 
.modern-table td {
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    /* THIS ALIGNS YOUR CONTENT */
    text-align: center; 
    vertical-align: middle;
}

/* Align the first column to the left for better readability */
.modern-table td:first-child {
    text-align: left;
    font-weight: 600;
    background-color: #f1f1f1;
}

.modern-table thead {
    background-color: var(--card-dark);
    color: white;
}

.share-note {
    font-size: 0.9rem;
    color: var(--text-muted);
    border-top: 1px solid var(--glass);
}

.text-link-copy {
    background: none;
    border: none;
    color: var(--accent);
    text-decoration: underline;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    padding: 0;
}

.copy-feedback {
    display: none;
    font-size: 0.8rem;
    color: #10b981; /* Verde esmeralda para sucesso */
    margin-left: 10px;
    font-weight: 600;
}

#copyFeedback.visible {
    display: inline !important;
}

/* ==========================================================
— WCAG 2.1 AA (PHYGITAL LEDGER)
   ========================================================== */

/* 1. Fixed-header Contrast 11.5:1) */
nav.fixed-header a {
    color: var(--text-main) !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
}

.nav-brand-link {
    font-size: 1.1rem !important;
}

/* 2. Text Badges (Indigo 300) */
[class*="badge-"] {
    color: #a5b4fc !important; 
    border: 1px solid rgba(165, 180, 252, 0.2) !important; 
}

/* 3. Text Fixed-Footer (Slate 300) */
footer.fixed-footer {
    color: #cbd5e1 !important; 
}

footer.fixed-footer a {
    color: #818cf8 !important; /* Indigo 400 */
    text-decoration: underline !important;
    font-weight: 600 !important;
}

footer.fixed-footer a:hover {
    color: var(--text-main) !important;
}
