/*
Theme Name: TechNews
Theme URI: http://seusite.com/technews
Author: Seu Nome
Author URI: http://seusite.com
Description: Um tema minimalista e otimizado para blogs de notícias e tecnologia, com SEO integrado, breadcrumbs, caixa de autor e formulário de contato próprio.
Version: 3.0
Requires at least: 5.5
Requires PHP: 7.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: technews
*/

/* ========================================
   RESET & BASE
   ======================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #3b82f6;
    --color-primary-dark: #2563eb;
    --color-primary-darker: #1d4ed8;
    --color-dark: #0f172a;
    --color-dark-secondary: #1e293b;
    --color-text: #334155;
    --color-text-light: #64748b;
    --color-text-muted: #94a3b8;
    --color-bg: #f8fafc;
    --color-white: #ffffff;
    --color-border: #e2e8f0;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --container-width: 1320px;
    --radius: 6px;
    --radius-lg: 12px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --transition: 0.2s ease;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--font-family);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--color-primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   LAYOUT
   ======================================== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.main-container {
    flex: 1;
    width: 100%;
    padding-top: 32px;
    padding-bottom: 32px;
}

/* ========================================
   HEADER
   ======================================== */
.site-header {
    background: var(--color-dark);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 2px solid var(--color-primary);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.site-branding {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.site-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.site-title a {
    color: #fff;
    text-decoration: none;
}

.site-title a:hover {
    color: var(--color-primary);
}

.site-description {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin: 0;
    display: none;
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-menu>li {
    position: relative;
}

.nav-menu a {
    display: block;
    padding: 8px 16px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius);
    transition: all var(--transition);
}

.nav-menu a:hover,
.nav-menu li.current-menu-item>a {
    color: #fff;
    background: rgba(59, 130, 246, 0.15);
}

/* Dropdowns */
.nav-menu ul {
    list-style: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-dark-secondary);
    min-width: 200px;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all var(--transition);
    padding: 8px 0;
}

.nav-menu li:hover>ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu ul a {
    padding: 8px 16px;
    border-radius: 0;
    font-size: 0.825rem;
}

.nav-menu ul a:hover {
    background: rgba(59, 130, 246, 0.1);
    color: var(--color-primary);
}

/* Header Search */
.header-search {
    margin-left: 24px;
}

.header-search form {
    display: flex;
    align-items: center;
}

.search-input {
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius) 0 0 var(--radius);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 0.85rem;
    width: 200px;
    transition: all var(--transition);
    font-family: var(--font-family);
}

.search-input::placeholder {
    color: var(--color-text-muted);
}

.search-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-primary);
}

.search-btn {
    padding: 8px 16px;
    background: var(--color-primary);
    color: #fff;
    border: 1px solid var(--color-primary);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.85rem;
    font-family: var(--font-family);
    transition: background var(--transition);
}

.search-btn:hover {
    background: var(--color-primary-dark);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    margin: 5px 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   MAIN CONTENT
   ======================================== */
.main-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 48px;
    width: 100%;
}

.site-main {
    min-width: 0;
}

.site-sidebar {
    min-width: 0;
}

/* ========================================
   POSTS (Index/Archive)
   ======================================== */
.post {
    background: var(--color-white);
    padding: 0;
    margin-bottom: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    overflow: hidden;
    transition: box-shadow var(--transition);
}

.post:hover {
    box-shadow: var(--shadow-md);
}

.post-thumbnail {
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post:hover .post-thumbnail img {
    transform: scale(1.03);
}

.post-thumbnail a {
    display: block;
    height: 100%;
}

.post-body {
    padding: 24px;
}

.post-title {
    font-size: 1.35rem;
    margin: 0 0 12px 0;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.post-title a {
    color: var(--color-dark-secondary);
    text-decoration: none;
}

.post-title a:hover {
    color: var(--color-primary);
}

.post-meta {
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.post-meta a {
    color: var(--color-primary);
    font-weight: 500;
}

.post-excerpt {
    color: var(--color-text);
    margin-bottom: 16px;
    font-size: 0.925rem;
    line-height: 1.7;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: var(--color-primary);
    color: #fff;
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.825rem;
    transition: background var(--transition);
}

.read-more:hover {
    background: var(--color-primary-dark);
    color: #fff;
}

/* ========================================
   PAGINATION
   ======================================== */
.posts-navigation,
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
}

.posts-navigation a,
.pagination a {
    padding: 10px 18px;
    background: var(--color-white);
    color: var(--color-primary);
    text-decoration: none;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    font-weight: 500;
    font-size: 0.875rem;
    transition: all var(--transition);
}

.posts-navigation a:hover,
.pagination a:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

/* ========================================
   SINGLE POST
   ======================================== */
.single-post {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
}

.single-post>.post-thumbnail {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    overflow: hidden;
}

.single-post .post-thumbnail {
    aspect-ratio: 21 / 9;
}

.single-post .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.single-post .post-meta {
    padding: 24px 32px 0;
    margin-bottom: 0;
    flex-wrap: wrap;
    gap: 12px;
}

.single-post .post-content {
    padding: 24px 32px 32px;
    font-size: 1rem;
    line-height: 1.85;
}

.single-post .post-content h2,
.single-post .post-content h3,
.single-post .post-content h4 {
    margin: 1.5em 0 0.5em;
    color: var(--color-dark-secondary);
}

.single-post .post-content p {
    margin-bottom: 1.25em;
}

.single-post .post-content img {
    border-radius: var(--radius);
    margin: 1.5em 0;
}

.single-post .post-content blockquote {
    border-left: 3px solid var(--color-primary);
    padding: 16px 24px;
    margin: 1.5em 0;
    background: var(--color-bg);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: var(--color-text-light);
}

.post-categories,
.post-tags {
    padding: 0 32px 24px;
    font-size: 0.825rem;
    color: var(--color-text-light);
}

.post-categories a,
.post-tags a {
    color: var(--color-primary);
    font-weight: 500;
}

/* Post Navigation */
.post-navigation {
    margin-top: 32px;
}

.nav-previous a,
.nav-next a {
    display: block;
    padding: 16px 20px;
    text-decoration: none;
    color: var(--color-dark-secondary);
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 0.875rem;
    transition: all var(--transition);
}

.nav-previous a:hover,
.nav-next a:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.nav-next {
    text-align: right;
}

/* ========================================
   SIDEBAR & WIDGETS
   ======================================== */
.widget {
    background: var(--color-white);
    padding: 24px;
    margin-bottom: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
}

.widget-title {
    font-size: 0.9rem;
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-primary);
    color: var(--color-dark-secondary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.widget_search input[type="search"],
.widget_search input[type="text"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 0.875rem;
    margin-bottom: 8px;
    font-family: var(--font-family);
    transition: border-color var(--transition);
}

.widget_search input[type="search"]:focus,
.widget_search input[type="text"]:focus {
    outline: none;
    border-color: var(--color-primary);
}

.widget_search button,
.widget_search input[type="submit"] {
    width: 100%;
    padding: 10px;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-family);
    transition: background var(--transition);
}

.widget_search button:hover,
.widget_search input[type="submit"]:hover {
    background: var(--color-primary-dark);
}

/* Recent Posts Widget */
.recent-posts-list {
    list-style: none;
}

.recent-posts-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border);
}

.recent-posts-list li:first-child {
    padding-top: 0;
}

.recent-posts-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.recent-posts-list a {
    color: var(--color-dark-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    display: block;
    margin-bottom: 4px;
}

.recent-posts-list a:hover {
    color: var(--color-primary);
}

.post-date-small {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* WP Block Latest Posts */
.wp-block-latest-posts__list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.wp-block-latest-posts__list li {
    padding: 10px 0 !important;
    margin: 0 !important;
    border-bottom: 1px solid var(--color-border);
}

.wp-block-latest-posts__list li:last-child {
    border-bottom: none;
    padding-bottom: 0 !important;
}

.wp-block-latest-posts__post-title {
    display: block !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
    color: var(--color-dark-secondary) !important;
    text-decoration: none !important;
}

.wp-block-latest-posts__post-title:hover {
    color: var(--color-primary) !important;
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
    background: var(--color-dark);
    color: var(--color-text-muted);
    padding: 48px 0;
    margin-top: 64px;
    border-top: 2px solid var(--color-primary);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copy {
    font-size: 0.85rem;
}

.footer-nav .nav-menu {
    gap: 0;
}

.footer-nav .nav-menu a {
    color: var(--color-text-muted);
    font-size: 0.825rem;
    padding: 4px 12px;
}

.footer-nav .nav-menu a:hover {
    color: #fff;
    background: transparent;
}

/* ========================================
   404 PAGE
   ======================================== */
.error-404 {
    text-align: center;
    padding: 80px 24px;
}

.error-404 .error-code {
    font-size: 8rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 16px;
    letter-spacing: -0.04em;
}

.error-404 h1 {
    font-size: 1.75rem;
    color: var(--color-dark-secondary);
    margin-bottom: 12px;
    font-weight: 700;
}

.error-404 p {
    color: var(--color-text-light);
    font-size: 1rem;
    margin-bottom: 32px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.error-404 .btn-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--color-primary);
    color: #fff;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9rem;
    transition: background var(--transition);
}

.error-404 .btn-home:hover {
    background: var(--color-primary-dark);
    color: #fff;
}

/* ========================================
   SEARCH RESULTS
   ======================================== */
.search-results-header {
    margin-bottom: 32px;
}

.search-results-header h1 {
    font-size: 1.5rem;
    color: var(--color-dark-secondary);
    font-weight: 700;
}

.search-results-header h1 span {
    color: var(--color-primary);
}

/* ========================================
   ARCHIVE HEADER
   ======================================== */
.archive-header {
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--color-border);
}

.archive-header h1 {
    font-size: 1.5rem;
    color: var(--color-dark-secondary);
    font-weight: 700;
}

.archive-header .archive-description {
    color: var(--color-text-light);
    font-size: 0.9rem;
    margin-top: 8px;
}

/* ========================================
   PAGE TEMPLATE
   ======================================== */
.page-content {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    padding: 40px;
}

.page-content h1 {
    font-size: 2rem;
    margin-bottom: 24px;
    color: var(--color-dark-secondary);
    font-weight: 700;
}

.page-content .entry-content {
    font-size: 1rem;
    line-height: 1.85;
}

/* ========================================
   TERMS PAGE
   ======================================== */
.terms-page {
    max-width: 1060px;
    margin: 0 auto;
}

.terms-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 32px;
    padding: 40px 0 36px;
    border-bottom: 1px solid var(--color-border);
}

.terms-eyebrow,
.terms-sidebar-title {
    color: var(--color-primary);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.terms-hero h1 {
    margin: 8px 0 10px;
    color: var(--color-dark);
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.terms-hero p {
    max-width: 580px;
    color: var(--color-text-light);
    font-size: 1.05rem;
}

.terms-updated {
    min-width: 150px;
    padding-left: 24px;
    border-left: 1px solid var(--color-border);
    color: var(--color-text-light);
    font-size: 0.78rem;
}

.terms-updated span,
.terms-updated strong {
    display: block;
}

.terms-updated strong {
    margin-top: 5px;
    color: var(--color-dark-secondary);
    font-size: 0.9rem;
}

.terms-layout {
    display: grid;
    grid-template-columns: 190px minmax(0, 700px);
    justify-content: space-between;
    gap: 56px;
    padding: 44px 0 24px;
}

.terms-sidebar {
    align-self: start;
    position: sticky;
    top: 104px;
}

.terms-sidebar nav {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.terms-sidebar a {
    color: var(--color-text-light);
    font-size: 0.84rem;
    line-height: 1.35;
}

.terms-sidebar a:hover {
    color: var(--color-primary);
}

.terms-content {
    min-width: 0;
}

.terms-introduction {
    padding: 20px 24px;
    margin-bottom: 42px;
    border-left: 3px solid var(--color-primary);
    background: var(--color-white);
    color: var(--color-dark-secondary);
    font-size: 1.05rem;
    line-height: 1.75;
}

.terms-section {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 20px;
    padding: 0 0 34px;
    margin-bottom: 34px;
    border-bottom: 1px solid var(--color-border);
    scroll-margin-top: 104px;
}

.terms-section-last {
    margin-bottom: 0;
    border-bottom: 0;
}

.terms-section-number {
    color: var(--color-primary);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding-top: 5px;
}

.terms-section h2 {
    margin-bottom: 12px;
    color: var(--color-dark-secondary);
    font-size: 1.35rem;
    line-height: 1.3;
}

.terms-section p {
    margin-bottom: 14px;
    color: var(--color-text);
    line-height: 1.85;
}

.terms-section p:last-child {
    margin-bottom: 0;
}

.terms-section ul {
    margin: 0;
    padding-left: 20px;
    color: var(--color-text);
}

.terms-section li {
    margin-bottom: 10px;
    padding-left: 4px;
    line-height: 1.75;
}

.terms-section li:last-child {
    margin-bottom: 0;
}

.terms-section a {
    font-weight: 600;
}

.terms-footer-note {
    padding: 20px 0 10px 64px;
    color: var(--color-text-light);
    font-size: 0.82rem;
    font-style: italic;
}

/* ========================================
   ACESSIBILIDADE
   ======================================== */
.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link:focus {
    position: fixed !important;
    top: 8px;
    left: 8px;
    z-index: 999;
    width: auto;
    height: auto;
    clip: auto;
    padding: 10px 18px;
    color: var(--color-white);
    background: var(--color-dark);
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 600;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: 2px;
}

/* ========================================
   BREADCRUMBS
   ======================================== */
.breadcrumbs {
    margin-bottom: 20px;
    font-size: 0.85rem;
}

.breadcrumbs-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.breadcrumbs-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--color-text-light);
}

.breadcrumbs-item + .breadcrumbs-item::before {
    content: "/";
    color: var(--color-border);
}

.breadcrumbs-item a {
    color: var(--color-text-light);
    text-decoration: none;
    transition: color var(--transition);
}

.breadcrumbs-item a:hover {
    color: var(--color-primary);
}

.breadcrumbs-item [aria-current="page"] {
    color: var(--color-dark-secondary);
    font-weight: 600;
}

/* ========================================
   CABEÇALHO DE PÁGINA
   ======================================== */
.page-header {
    padding: 32px 0 24px;
}

.page-header__inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.page-header__eyebrow {
    display: block;
    margin-bottom: 8px;
    color: var(--color-primary);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.page-header__title {
    color: var(--color-dark);
    font-size: 2rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.page-header__subtitle {
    max-width: 64ch;
    margin-top: 12px;
    color: var(--color-text-light);
    line-height: 1.7;
}

.page-header__updated {
    flex-shrink: 0;
    padding-left: 20px;
    border-left: 2px solid var(--color-border);
    text-align: right;
}

.page-header__updated span {
    display: block;
    color: var(--color-text-muted);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.page-header__updated strong {
    color: var(--color-dark-secondary);
    font-size: 0.95rem;
}

/* ========================================
   TÍTULO DO POST INDIVIDUAL
   ======================================== */
.single-post-title {
    padding: 24px 32px 0;
    color: var(--color-dark);
    font-size: 2rem;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.post-meta-author a {
    font-weight: 600;
}

.post-meta-updated {
    color: var(--color-text-muted);
}

/* ========================================
   CAIXA DE AUTOR
   ======================================== */
.author-box {
    display: flex;
    gap: 20px;
    margin-top: 32px;
    padding: 28px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.author-box__avatar img {
    display: block;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
}

.author-box__content {
    min-width: 0;
}

.author-box__eyebrow {
    margin-bottom: 4px;
    color: var(--color-text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.author-box__name {
    margin-bottom: 4px;
    font-size: 1.2rem;
}

.author-box__name a {
    color: var(--color-dark-secondary);
    text-decoration: none;
}

.author-box__name a:hover {
    color: var(--color-primary);
}

.author-box__job {
    margin-bottom: 10px;
    color: var(--color-primary);
    font-size: 0.85rem;
    font-weight: 600;
}

.author-box__bio {
    margin-bottom: 14px;
    color: var(--color-text);
    font-size: 0.94rem;
    line-height: 1.75;
}

.author-box__links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin: 0 0 14px;
    padding: 0;
}

.author-box__links a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    color: var(--color-text);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition);
}

.author-box__links a:hover {
    color: var(--color-white);
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.author-box__archive {
    font-size: 0.85rem;
    font-weight: 600;
}

/* ========================================
   POSTS RELACIONADOS
   ======================================== */
.related-posts {
    margin-top: 40px;
}

.related-posts__title {
    margin-bottom: 20px;
    color: var(--color-dark-secondary);
    font-size: 1.3rem;
}

.related-posts__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.related-card {
    overflow: hidden;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: box-shadow var(--transition);
}

.related-card:hover {
    box-shadow: var(--shadow-md);
}

.related-card__image {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.related-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-card__body {
    padding: 16px;
}

.related-card__date {
    display: block;
    margin-bottom: 6px;
    color: var(--color-text-muted);
    font-size: 0.78rem;
}

.related-card__title {
    font-size: 1rem;
    line-height: 1.45;
}

.related-card__title a {
    color: var(--color-dark-secondary);
    text-decoration: none;
}

.related-card__title a:hover {
    color: var(--color-primary);
}

/* ========================================
   NAVEGAÇÃO ENTRE POSTS
   ======================================== */
.post-navigation .nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.post-navigation .nav-next {
    text-align: right;
}

.post-navigation a {
    display: block;
    padding: 16px 20px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    text-decoration: none;
    transition: border-color var(--transition);
}

.post-navigation a:hover {
    border-color: var(--color-primary);
}

.nav-direction {
    display: block;
    margin-bottom: 4px;
    color: var(--color-text-muted);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.nav-title {
    display: block;
    color: var(--color-dark-secondary);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
}

/* ========================================
   PAGINAÇÃO
   ======================================== */
.pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    color: var(--color-text);
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition);
}

.pagination .page-numbers:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.pagination .page-numbers.current {
    color: var(--color-white);
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.pagination .page-numbers.dots {
    border-color: transparent;
    background: transparent;
}

/* ========================================
   REDES SOCIAIS
   ======================================== */
.social-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    transition: all var(--transition);
}

.social-links--footer .social-link {
    color: var(--color-text-muted);
    background: rgba(255, 255, 255, 0.06);
}

.social-links--footer .social-link:hover {
    color: var(--color-white);
    background: var(--color-primary);
}

.social-links--contact .social-link {
    color: var(--color-text-light);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
}

.social-links--contact .social-link:hover {
    color: var(--color-white);
    background: var(--color-primary);
    border-color: var(--color-primary);
}

/* ========================================
   COMENTÁRIOS
   ======================================== */
.comments-area {
    margin-top: 40px;
    padding: 28px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

.comments-title,
.comment-reply-title {
    margin-bottom: 20px;
    color: var(--color-dark-secondary);
    font-size: 1.25rem;
}

.comment-list {
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
}

.comment-list ol.children {
    list-style: none;
    margin: 16px 0 0;
    padding-left: 24px;
    border-left: 2px solid var(--color-border);
}

.comment-body {
    padding: 16px 0;
    border-bottom: 1px solid var(--color-border);
}

.comment-author img {
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 8px;
}

.comment-meta {
    margin-bottom: 8px;
    color: var(--color-text-muted);
    font-size: 0.82rem;
}

.comment-notes,
.comment-form-cookies-consent label {
    color: var(--color-text-light);
    font-size: 0.85rem;
    line-height: 1.6;
}

.comment-form label {
    display: block;
    margin-bottom: 6px;
    color: var(--color-dark-secondary);
    font-size: 0.88rem;
    font-weight: 600;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 11px 14px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--color-text);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}

.comment-form textarea {
    min-height: 140px;
    resize: vertical;
}

.comment-form .btn-submit,
.comment-form input[type="submit"] {
    padding: 12px 28px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-white);
    background: var(--color-primary);
    border: 0;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background var(--transition);
}

.comment-form .btn-submit:hover,
.comment-form input[type="submit"]:hover {
    background: var(--color-primary-dark);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .site-sidebar {
        display: none;
    }

    .site-description {
        display: none;
    }

    .related-posts__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-inner {
        height: auto;
        padding: 16px 0;
        flex-wrap: wrap;
        gap: 12px;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        width: 100%;
        order: 3;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
    }

    .main-nav.active {
        max-height: 500px;
    }

    .nav-menu {
        flex-direction: column;
        gap: 0;
        padding-top: 12px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-menu a {
        padding: 10px 0;
        border-radius: 0;
    }

    .nav-menu ul {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        border: none;
        background: transparent;
        padding: 0 0 0 16px;
    }

    .header-search {
        width: 100%;
        margin-left: 0;
        order: 2;
    }

    .search-input {
        width: 100%;
        flex: 1;
    }

    .site-title {
        font-size: 1.25rem;
    }

    .post-body {
        padding: 16px;
    }

    .post-title {
        font-size: 1.15rem;
    }

    .single-post .post-meta {
        padding: 16px 20px 0;
    }

    .single-post .post-content {
        padding: 16px 20px 20px;
    }

    .post-categories,
    .post-tags {
        padding: 0 20px 16px;
    }

    .single-post-title {
        padding: 20px 20px 0;
        font-size: 1.5rem;
    }

    .page-header {
        padding: 24px 0 20px;
    }

    .page-header__inner {
        display: block;
    }

    .page-header__title {
        font-size: 1.6rem;
    }

    .page-header__updated {
        margin-top: 20px;
        padding-left: 0;
        border-left: 0;
        text-align: left;
    }

    .author-box {
        flex-direction: column;
        padding: 22px;
    }

    .related-posts__grid {
        grid-template-columns: 1fr;
    }

    .post-navigation .nav-links {
        grid-template-columns: 1fr;
    }

    .post-navigation .nav-next {
        text-align: left;
    }

    .footer-inner {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .error-404 .error-code {
        font-size: 5rem;
    }

    .page-content {
        padding: 24px;
    }

    .terms-hero {
        display: block;
        padding: 28px 0;
    }

    .terms-updated {
        margin-top: 24px;
        padding: 0;
        border-left: 0;
    }

    .terms-layout {
        display: block;
        padding-top: 28px;
    }

    .terms-sidebar {
        position: static;
        padding-bottom: 28px;
    }

    .terms-sidebar nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px 20px;
    }

    .terms-introduction {
        margin-bottom: 32px;
    }

    .terms-section {
        grid-template-columns: 32px 1fr;
        gap: 12px;
        padding-bottom: 28px;
        margin-bottom: 28px;
    }

    .terms-section h2 {
        font-size: 1.2rem;
    }

    .terms-footer-note {
        padding-left: 44px;
    }
}