/* Reset e Variáveis CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #333;
    --primary-dark: #000;
    --primary-light: #666;
    --text-dark: #333;
    --text-medium: #555;
    --text-light: #777;
    --bg-light: #f8f8f8;
    --bg-white: #ffffff;
    --bg-dark: #0f172a;
    --border-color: #e0e0e0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease-in-out;
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.08);
    --book-cover-bg: #f7f8fb;
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --primary-color: #cbd5f5;
    --primary-dark: #f8fafc;
    --primary-light: #a5b4fc;
    --text-dark: #f3f4f6;
    --text-medium: #dbeafe;
    --text-light: rgba(226, 232, 240, 0.88);
    --bg-light: #1b1f2a;
    --bg-white: #111827;
    --bg-dark: #0b1220;
    --border-color: rgba(148, 163, 184, 0.35);
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.35);
    --shadow: 0 4px 18px rgba(15, 23, 42, 0.45);
    --shadow-lg: 0 10px 28px rgba(15, 23, 42, 0.55);
    --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.5);
    --book-cover-bg: rgba(255, 255, 255, 0.08);
}

body {
    font-family: 'Georgia', serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: var(--bg-white);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Botões Globais */
.btn-primary,
.btn-secondary,
.btn-outline,
.btn-disabled {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    text-decoration: none;
    min-height: 48px;
    line-height: 1;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary-dark);
    color: var(--bg-white);
    border-color: var(--primary-dark);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    box-shadow: var(--shadow);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--bg-white);
    color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-secondary:hover {
    background: var(--primary-dark);
    color: var(--bg-white);
    box-shadow: var(--shadow-sm);
}

.btn-outline {
    background: transparent;
    color: var(--primary-dark);
    border-color: var(--border-color);
}

.btn-outline:hover {
    border-color: var(--primary-dark);
    color: var(--primary-dark);
    box-shadow: var(--shadow-sm);
}

.btn-disabled {
    background: var(--bg-light);
    color: var(--text-light);
    cursor: not-allowed;
    border-color: var(--border-color);
}

.btn-primary:focus,
.btn-secondary:focus,
.btn-outline:focus {
    outline: 2px solid var(--primary-dark);
    outline-offset: 2px;
}

[data-theme="dark"] .btn-primary {
    background: var(--primary-dark);
    color: var(--bg-white);
    border-color: var(--primary-dark);
}

[data-theme="dark"] .btn-secondary {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--text-light);
}

[data-theme="dark"] .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--bg-white);
}

[data-theme="dark"] .btn-outline {
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-light);
}

[data-theme="dark"] .btn-outline:hover {
    border-color: var(--primary-dark);
    color: var(--primary-dark);
}

/* Utilidades */
.is-hidden {
    display: none !important;
}

.nav-link[aria-current="page"] {
    color: var(--primary-dark);
    font-weight: 600;
}

[data-theme="dark"] .nav-link[aria-current="page"] {
    color: var(--text-dark);
}

/* Top Controls Container */
.top-controls {
    position: fixed;
    top: 20px;
    left: 20px;
    right: 20px;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: nowrap;
    pointer-events: none; /* Container não bloqueia cliques */
}

.top-controls > * {
    pointer-events: auto;
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.top-controls .language-selector {
    margin-left: auto;
}

/* Dark Mode Toggle */
.dark-mode-toggle {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 44px !important;
    height: 44px !important;
    max-width: 44px !important;
    max-height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
    flex-grow: 0;
    position: relative;
    z-index: 1;
    margin: 0 !important;
    padding: 0 !important;
    vertical-align: middle;
}

.dark-mode-toggle:hover {
    border-color: var(--text-dark);
    box-shadow: var(--shadow);
    transform: scale(1.05);
}

.dark-mode-toggle .theme-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.dark-mode-toggle:hover .theme-icon {
    transform: rotate(15deg);
}

[data-theme="dark"] .dark-mode-toggle .theme-icon {
    content: "☀️";
}

[data-theme="dark"] .dark-mode-toggle {
    background: var(--bg-white);
    border-color: var(--border-color);
}

/* Language Selector */
.language-selector {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    align-items: center;
    margin: 0;
    padding: 0;
}

.language-selector .flag {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0.4rem 0.5rem;
    min-width: 44px !important;
    min-height: 44px !important;
    width: auto;
    height: 44px !important;
    cursor: pointer;
    transition: var(--transition);
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative;
    z-index: 1;
    margin: 0 !important;
    flex-shrink: 0;
    box-sizing: border-box;
    vertical-align: middle;
}

.language-selector .flag-icon {
    display: block;
    width: 24px;
    height: auto;
    border-radius: 2px;
}

.language-selector .flag:hover {
    border-color: var(--text-dark);
}

.language-selector .flag.active {
    border-color: var(--text-dark);
    background: var(--bg-light);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
    padding: 1.5rem 0;
}

.nav-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.logo {
    display: none; /* Logo removido do menu */
}

.logo a {
    display: none;
}

.logo a:hover {
    display: none;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-dark);
    transition: var(--transition);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 400;
    font-size: 1rem;
    transition: var(--transition);
    padding: 0.5rem 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    padding: 8rem 0 4rem;
    text-align: center;
    background: var(--bg-white);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-medium);
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
}

/* Section Styles */
section {
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-medium);
}

/* Articles Section (Home Highlights) */
.articles {
    background: var(--bg-white);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.article-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.5rem;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.article-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-4px);
}

.article-card-body h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
}

.article-card-body p {
    color: var(--text-medium);
    line-height: 1.6;
}

.article-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.article-date {
    font-size: 0.9rem;
    color: var(--text-light);
}

.article-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.article-topic {
    background: rgba(0,0,0,0.05);
    color: var(--primary-dark);
    border-radius: 999px;
    padding: 0.25rem 0.65rem;
    font-size: 0.75rem;
    text-decoration: none;
    transition: var(--transition);
}

.article-topic:hover {
    background: rgba(0,0,0,0.08);
}

.article-card-footer {
    display: flex;
    justify-content: flex-start;
}

.article-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
    color: var(--primary-dark);
    text-decoration: none;
    transition: var(--transition);
}

.article-link:hover {
    color: var(--primary-color);
}

[data-theme="dark"] .article-card {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.08);
}

[data-theme="dark"] .article-topic {
    background: rgba(147, 197, 253, 0.16);
    color: rgba(241, 245, 249, 0.95);
    border: 1px solid rgba(147, 197, 253, 0.35);
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.25);
}

[data-theme="dark"] .article-topic:hover {
    background: rgba(147, 197, 253, 0.28);
}

[data-theme="dark"] .article-date {
    color: rgba(226, 232, 240, 0.85);
}

[data-theme="dark"] .article-link {
    color: #93c5fd;
}

[data-theme="dark"] .articles-filter-chip {
    background: rgba(59, 130, 246, 0.18);
    color: rgba(241, 245, 249, 0.95);
    border: 1px solid rgba(59, 130, 246, 0.28);
}

[data-theme="dark"] .articles-filter-chip.active,
[data-theme="dark"] .articles-filter-chip:hover {
    background: rgba(59, 130, 246, 0.32);
    color: rgba(15, 23, 42, 0.95);
    border-color: rgba(147, 197, 253, 0.45);
}

/* Página de Artigos */
.articles-page {
    background: var(--bg-white);
    color: var(--text-dark);
}

.articles-hero {
    padding: 7rem 0 3rem;
    background: linear-gradient(135deg, rgba(0,0,0,0.03), transparent);
}

.articles-hero-content {
    max-width: 720px;
    margin-bottom: 2rem;
}

.articles-kicker {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-light);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 1rem;
}

.articles-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.articles-subtitle {
    font-size: 1.1rem;
    color: var(--text-medium);
    line-height: 1.7;
}

.articles-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.articles-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.articles-filter-chip {
    background: rgba(0,0,0,0.05);
    color: var(--primary-dark);
    border: none;
    border-radius: 999px;
    padding: 0.45rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.articles-filter-chip.active,
.articles-filter-chip:hover {
    background: var(--primary-dark);
    color: var(--bg-white);
}

.articles-count {
    font-size: 0.9rem;
    color: var(--text-medium);
}

.articles-section {
    padding: 3rem 0 5rem;
}

.articles-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.8rem;
}

.articles-list-card {
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1.75rem;
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    transition: var(--transition);
}

.articles-list-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.articles-list-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.articles-list-date {
    font-size: 0.85rem;
    color: var(--text-light);
}

.articles-list-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.article-topic-chip,
.articles-list-topics .article-topic-chip {
    background: rgba(0,0,0,0.05);
    color: var(--primary-dark);
    border-radius: 999px;
    padding: 0.25rem 0.6rem;
    font-size: 0.75rem;
    text-decoration: none;
    transition: var(--transition);
}

.article-topic-chip:hover,
.articles-list-topics .article-topic-chip:hover {
    background: rgba(0,0,0,0.08);
}

.articles-list-title {
    font-size: 1.35rem;
    color: var(--primary-dark);
}

.articles-list-summary {
    color: var(--text-medium);
    line-height: 1.6;
}

.articles-list-link {
    align-self: flex-start;
    font-weight: 600;
    color: var(--primary-dark);
    text-decoration: none;
    transition: var(--transition);
}

.articles-list-link:hover {
    color: var(--primary-color);
}

.articles-empty,
.articles-error {
    border: 1px dashed var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-medium);
}

.articles-empty-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.articles-empty.is-hidden,
.articles-error.is-hidden {
    display: none;
}

[data-theme="dark"] .articles-hero {
    background: linear-gradient(135deg, rgba(255,255,255,0.06), transparent);
}

[data-theme="dark"] .articles-filter-chip {
    background: rgba(255,255,255,0.08);
    color: var(--bg-white);
}

[data-theme="dark"] .articles-filter-chip.active,
[data-theme="dark"] .articles-filter-chip:hover {
    background: rgba(255,255,255,0.2);
    color: var(--primary-dark);
}

[data-theme="dark"] .articles-list-card {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.08);
}

[data-theme="dark"] .article-topic-chip,
[data-theme="dark"] .articles-list-topics .article-topic-chip {
    background: rgba(255,255,255,0.1);
    color: var(--bg-white);
}

/* Página de artigo individual */
.article-page {
    background: var(--bg-white);
    padding: 6rem 0 4rem;
}

.article-full {
    max-width: 820px;
    margin: 0 auto;
}

.article-loading,
.article-error {
    text-align: center;
    padding: 2rem 1rem;
}

.article-loading-skeleton {
    width: 100%;
    height: 200px;
    border-radius: 20px;
    background: linear-gradient(90deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.02) 50%, rgba(0,0,0,0.05) 100%);
    margin-bottom: 1.5rem;
    animation: shimmer 1.6s infinite;
}

.article-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.article-back {
    font-weight: 600;
    color: var(--primary-dark);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.article-back:hover {
    color: var(--primary-color);
}

.article-header-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.article-meta-item {
    font-size: 0.9rem;
    color: var(--text-light);
}

.article-topics-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.article-title {
    font-size: clamp(2.1rem, 5vw, 3rem);
    color: var(--primary-dark);
    line-height: 1.2;
}

.article-excerpt {
    font-size: 1.1rem;
    color: var(--text-medium);
}

.article-body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    line-height: 1.75;
    color: var(--text-dark);
}

.article-body p {
    font-size: 1.05rem;
}

.article-list {
    padding-left: 1.5rem;
    list-style: disc;
}

.article-footer {
    margin-top: 3rem;
}

[data-theme="dark"] .article-page {
    background: var(--bg-white);
}

[data-theme="dark"] .article-back {
    color: #93c5fd;
}

[data-theme="dark"] .article-body {
    color: var(--text-light);
}

[data-theme="dark"] .article-body blockquote {
    background: rgba(255, 255, 255, 0.06);
    border-left-color: rgba(148, 197, 255, 0.8);
    color: rgba(226, 232, 240, 0.9);
}

[data-theme="dark"] .article-body pre {
    background: rgba(15, 23, 42, 0.75);
    color: rgba(226, 232, 240, 0.92);
    box-shadow: var(--shadow-xs);
}

[data-theme="dark"] .article-body code {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(226, 232, 240, 0.92);
}

[data-theme="dark"] .article-body th {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-light);
}

[data-theme="dark"] .article-body td {
    border-color: rgba(148, 163, 184, 0.35);
}

[data-theme="dark"] .article-body img {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

/* Ajustes para modo noturno - melhorar visibilidade */
[data-theme="dark"] .article-link {
    color: #60a5fa; /* Azul claro e visível */
}

[data-theme="dark"] .article-link:visited {
    color: #a78bfa; /* Roxo claro e visível */
}

[data-theme="dark"] .article-link:hover {
    color: #93c5fd; /* Azul mais claro no hover */
    text-decoration: underline;
}

/* Article Page Styles */
.article-page {
    padding: 6rem 0 4rem;
    min-height: 80vh;
}

.article-full {
    max-width: 800px;
    margin: 0 auto;
}

.article-loading,
.article-error {
    text-align: center;
    padding: 3rem;
    color: var(--text-medium);
}

.article-header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.article-back {
    display: inline-block;
    color: var(--text-medium);
    text-decoration: none;
    font-size: 0.9375rem;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.article-back:hover {
    color: var(--primary-dark);
}

.article-meta {
    display: block;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.article-excerpt {
    font-size: 1.25rem;
    color: var(--text-medium);
    line-height: 1.6;
}

.article-body {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.article-body > *:not(:last-child) {
    margin-bottom: 1.5rem;
}

.article-body p {
    margin: 0;
}

.article-body ul,
.article-body ol {
    margin: 0 0 1.5rem 1.5rem;
    padding-left: 1.25rem;
}

.article-body ul {
    list-style: disc;
}

.article-body ol {
    list-style: decimal;
}

.article-body li {
    margin-bottom: 0.6rem;
}

.article-body blockquote {
    margin: 1.75rem 0;
    padding: 1.25rem 1.5rem;
    border-left: 4px solid var(--primary-color);
    background: rgba(15, 23, 42, 0.04);
    border-radius: 12px;
    color: var(--text-medium);
    font-style: italic;
}

.article-body blockquote p {
    margin: 0;
}

.article-body pre {
    background: rgba(15, 23, 42, 0.06);
    border-radius: 14px;
    padding: 1.25rem;
    overflow-x: auto;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-dark);
}

.article-body code {
    background: rgba(15, 23, 42, 0.06);
    border-radius: 6px;
    padding: 0.15rem 0.4rem;
    font-size: 0.95rem;
}

.article-body pre code {
    background: transparent;
    padding: 0;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    display: block;
    margin: 2rem auto;
    box-shadow: var(--shadow-sm);
}

.article-body figure {
    margin: 2rem 0;
    text-align: center;
}

.article-body figcaption {
    margin-top: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-light);
}

.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.95rem;
}

.article-body th,
.article-body td {
    border: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    text-align: left;
}

.article-body th {
    background: rgba(15, 23, 42, 0.05);
    font-weight: 600;
    color: var(--primary-dark);
}

.article-body hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 2.5rem 0;
}

.article-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

/* Responsive Article Page */
@media (max-width: 480px) {
    .article-page {
        padding: 4rem 0 2rem;
    }

    .article-title {
        font-size: 1.75rem;
    }

    .article-excerpt {
        font-size: 1rem;
    }

    .article-body {
        font-size: 1rem;
    }

    .article-back {
        font-size: 0.875rem;
    }
}

@media (min-width: 1921px) {
    .article-full {
        max-width: 1000px;
    }

    .article-title {
        font-size: 3.5rem;
    }

    .article-excerpt {
        font-size: 1.5rem;
    }

    .article-body {
        font-size: 1.25rem;
    }
}

/* Books Section (Home) */
.books {
    background: var(--bg-light);
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.75rem;
}

.book-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 1.5rem;
    gap: 1.5rem;
    align-items: center;
}

.book-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.book-card-picture {
    width: 100%;
    max-width: 240px;
    min-width: 200px;
    margin: 0 auto;
    display: block;
    background: var(--book-cover-bg, rgba(0, 0, 0, 0.02));
    padding: 1.25rem;
    border-radius: 20px;
    box-shadow: var(--shadow-xs);
}

.book-card-picture img {
    width: 100%;
    max-height: 360px;
    height: auto;
    display: block;
    border-radius: 16px;
    object-fit: cover;
}

.book-card-body {
    width: 100%;
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    color: var(--text-dark);
}

.book-card-body h3 {
    font-size: 1.25rem;
    color: var(--primary-dark);
}

.book-card-body p {
    color: var(--text-medium);
    line-height: 1.6;
}

.book-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.book-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.book-topic-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(0,0,0,0.05);
    color: var(--primary-dark);
    border-radius: 999px;
    padding: 0.25rem 0.6rem;
    font-size: 0.75rem;
}

.books-cta-row {
    text-align: center;
    margin-top: 2rem;
}

[data-theme="dark"] .books {
    background: var(--bg-white);
}

[data-theme="dark"] .book-card {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.08);
}

[data-theme="dark"] .book-card-body {
    color: rgba(226, 232, 240, 0.92);
}

[data-theme="dark"] .book-card-body h3 {
    color: rgba(248, 250, 252, 1) !important;
    text-shadow: 0 1px 2px rgba(15, 15, 15, 0.65);
}

[data-theme="dark"] .book-card-body p {
    color: rgba(203, 213, 225, 0.92) !important;
}

[data-theme="dark"] .book-card-body strong {
    color: rgba(248, 250, 252, 0.96);
}

[data-theme="dark"] .book-card-footer {
    color: rgba(226, 232, 240, 0.92);
}

[data-theme="dark"] a.book-card {
    color: rgba(248, 250, 252, 0.95);
}

[data-theme="dark"] a.book-card:hover {
    color: rgba(248, 250, 252, 0.98);
}

[data-theme="dark"] .book-topic-chip {
    background: rgba(147, 197, 253, 0.16);
    color: rgba(241, 245, 249, 0.95);
    border: 1px solid rgba(147, 197, 253, 0.35);
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.25);
}

[data-theme="dark"] .book-topic-chip:hover {
    background: rgba(147, 197, 253, 0.28);
}

/* Books Listing Page */
.books-page {
    background: var(--bg-white);
}

.books-hero {
    padding: 7rem 0 3.5rem;
    background: linear-gradient(135deg, rgba(0,0,0,0.03), transparent);
}

.books-hero-content {
    max-width: 720px;
    margin-bottom: 2rem;
}

.books-kicker {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-light);
    display: inline-flex;
    gap: 0.35rem;
    margin-bottom: 1rem;
}

.books-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.books-subtitle {
    font-size: 1.1rem;
    color: var(--text-medium);
    line-height: 1.7;
}

.books-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.books-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

[data-theme="dark"] .books-kicker {
    color: rgba(165, 180, 252, 0.85);
    text-shadow: 0 1px 3px rgba(15, 23, 42, 0.6);
}

[data-theme="dark"] .books-title {
    color: rgba(248, 250, 252, 0.98);
    text-shadow: 0 2px 6px rgba(15, 23, 42, 0.6);
}

[data-theme="dark"] .books-subtitle {
    color: rgba(226, 232, 240, 0.88);
}

[data-theme="dark"] .books-count {
    color: rgba(203, 213, 225, 0.85);
}

[data-theme="dark"] .books-filter-chip {
    background: rgba(148, 163, 184, 0.18);
    color: rgba(241, 245, 249, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.35);
}

[data-theme="dark"] .books-filter-chip.active,
[data-theme="dark"] .books-filter-chip:hover {
    background: rgba(59, 130, 246, 0.35);
    color: rgba(248, 250, 252, 0.98);
    border-color: rgba(147, 197, 253, 0.55);
    box-shadow: 0 5px 16px rgba(37, 99, 235, 0.35);
}

.books-filter-chip {
    background: rgba(0,0,0,0.05);
    color: var(--primary-dark);
    border: none;
    border-radius: 999px;
    padding: 0.45rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.books-filter-chip.active,
.books-filter-chip:hover {
    background: var(--primary-dark);
    color: var(--bg-white);
}

.books-count {
    font-size: 0.9rem;
    color: var(--text-medium);
}

.books-section {
    padding: 3rem 0 5rem;
}

.books-error,
.books-empty {
    border: 1px dashed var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-medium);
}

.books-error.is-hidden,
.books-empty.is-hidden {
    display: none;
}

.books-empty-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.books-list-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    column-gap: 1.5rem;
    row-gap: 2rem;
}

.books-list-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    flex: 0 1 240px;
    max-width: 240px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
}

.books-list-cover picture {
    display: block;
    width: 100%;
    max-width: 240px;
    min-width: 200px;
    margin: 0 auto;
    border-radius: 20px;
    background: var(--book-cover-bg, rgba(0, 0, 0, 0.02));
    padding: 1.25rem;
    box-shadow: var(--shadow-xs);
}

.books-list-cover img {
    display: block;
    width: 100%;
    max-height: 360px;
    height: auto;
    border-radius: 16px;
    object-fit: cover;
}

.books-list-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;
}

.books-list-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.books-list-head h2 {
    font-size: 1.35rem;
    color: var(--primary-dark);
    margin-bottom: 0.35rem;
}

.books-list-head p {
    color: var(--text-medium);
    line-height: 1.6;
}

.books-list-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.books-list-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.books-list-link {
    font-weight: 600;
    color: var(--primary-dark);
    text-decoration: none;
}

.books-list-link:hover {
    color: var(--primary-color);
}

/* Book detail page */
.book-page {
    background: var(--bg-white);
    padding: 6rem 0 4rem;
}

.book-container {
    max-width: 960px;
    margin: 0 auto;
}

.book-loading,
.book-error {
    text-align: center;
    padding: 2rem 1rem;
}

.book-loading-skeleton {
    width: 100%;
    height: 220px;
    border-radius: 20px;
    background: linear-gradient(90deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.02) 50%, rgba(0,0,0,0.05) 100%);
    margin-bottom: 1.5rem;
    animation: shimmer 1.6s infinite;
}

.book-error.is-hidden {
    display: none;
}

.book-hero {
    margin-bottom: 3rem;
}

.book-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    color: var(--primary-dark);
    text-decoration: none;
    margin-bottom: 1.5rem;
}

.book-back:hover {
    color: var(--primary-color);
}

.book-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 320px) 1fr;
    gap: 2rem;
    align-items: flex-start;
}

.book-cover-large {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.75rem;
    border-radius: 20px;
    background: var(--book-cover-bg, rgba(0, 0, 0, 0.02));
    box-shadow: var(--shadow);
}

.book-cover-large img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 14px;
    object-fit: contain;
    box-shadow: none;
}

.book-hero-copy {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.book-hero-copy h1 {
    font-size: clamp(2.1rem, 4vw, 3rem);
    color: var(--primary-dark);
}

.book-summary {
    color: var(--text-medium);
    line-height: 1.6;
}

.book-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.book-price-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(0,0,0,0.05);
    color: var(--primary-dark);
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    font-weight: 600;
}

.book-topics-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.book-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.book-content {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    line-height: 1.75;
    color: var(--text-dark);
}

.book-section p {
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

.book-list,
.book-feature-list {
    padding-left: 1.25rem;
    list-style: disc;
}

.book-feature-list li {
    margin-bottom: 0.65rem;
}

.book-details {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
}

.book-details li {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.95rem;
    color: var(--text-medium);
}

.book-details li strong {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary-dark);
}

[data-theme="dark"] .books-page,
[data-theme="dark"] .book-page {
    background: var(--bg-dark);
}

[data-theme="dark"] .books-hero {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(15, 23, 42, 0.55));
}

[data-theme="dark"] .books-list-card,
[data-theme="dark"] .book-card,
[data-theme="dark"] .book-container,
[data-theme="dark"] .book-hero-copy {
    color: var(--text-light);
}
[data-theme="dark"] .book-hero-copy h1 {
    color: rgba(248, 250, 252, 1);
    text-shadow: 0 2px 4px rgba(15, 15, 15, 0.5);
}
[data-theme="dark"] .book-summary {
    color: rgba(226, 232, 240, 0.9);
}
[data-theme="dark"] .book-back {
    color: rgba(165, 180, 252, 0.85);
}
[data-theme="dark"] .book-back:hover {
    color: rgba(99, 102, 241, 0.95);
}

[data-theme="dark"] .books-list-card,
[data-theme="dark"] .book-card {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.08);
}
[data-theme="dark"] .books-list-head h2 {
    color: rgba(248, 250, 252, 1);
    text-shadow: 0 1px 2px rgba(15, 15, 15, 0.6);
}
[data-theme="dark"] .books-list-head p {
    color: rgba(226, 232, 240, 0.88);
}

[data-theme="dark"] .books-list-link {
    color: rgba(165, 180, 252, 0.95);
    text-shadow: 0 1px 3px rgba(15, 23, 42, 0.55);
}

[data-theme="dark"] .books-list-link:hover {
    color: rgba(147, 197, 253, 1);
}

[data-theme="dark"] .book-cover-large {
    background: var(--book-cover-bg, rgba(255,255,255,0.06));
    box-shadow: var(--shadow);
}

[data-theme="dark"] .book-price-tag {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(37, 99, 235, 0.28));
    color: rgba(248, 250, 252, 0.98);
    border: 1px solid rgba(147, 197, 253, 0.45);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

[data-theme="dark"] .book-price-tag::before {
    content: 'R$';
    font-weight: 600;
    margin-right: 0.15rem;
    opacity: 0.95;
}

[data-theme="dark"] .book-content {
    color: var(--text-light);
}

/* Newsletter Section */
.newsletter {
    background: var(--bg-white);
}

.newsletter-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-input {
    flex: 1;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    font-family: 'Georgia', serif;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn-submit {
    padding: 0.875rem 2rem;
    background: var(--primary-dark);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-family: 'Georgia', serif;
    cursor: pointer;
    transition: var(--transition);
}

/* Modo escuro - garantir contraste */
[data-theme="dark"] .btn-submit {
    background: #ffffff !important;
    color: #000000 !important;
}

.btn-submit:hover {
    background: var(--primary-color);
}

[data-theme="dark"] .btn-submit:hover {
    background: #e0e0e0 !important;
    color: #000000 !important;
}

.form-privacy {
    font-size: 0.875rem;
    color: var(--text-light);
    text-align: center;
}

.newsletter-message {
    padding: 0.875rem 1rem;
    border-radius: 4px;
    margin-top: 1rem;
    text-align: center;
    font-size: 0.9375rem;
    animation: fadeIn 0.3s ease-in;
}

.newsletter-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.newsletter-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* About Section */
.about {
    background: var(--bg-light);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.manifesto-section,
.mission-section,
.vision-section,
.values-section {
    margin-bottom: 3rem;
}

.manifesto-section h3,
.mission-section h3,
.vision-section h3,
.values-section h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.mtp-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-medium);
    margin-bottom: 0.5rem;
}

.mtp-text {
    font-size: 1.125rem;
    font-style: italic;
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 3px solid var(--primary-color);
}

.mission-section p,
.vision-section p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.values-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.values-list li {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.values-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.values-list li strong {
    color: var(--primary-dark);
    font-weight: 600;
}

.about-content p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-medium);
}

/* Footer */
.footer {
    padding: 3rem 0;
    background: var(--bg-white);
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-logo {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

/* Social Media Links */
.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.social-link {
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-white);
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.social-link svg,
.social-link img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    transition: var(--transition);
}

/* Garantir que ícones SVG sempre sejam visíveis */
.social-link svg {
    fill: currentColor;
    color: inherit;
}

/* Modo escuro - garantir contraste para todos os ícones */
[data-theme="dark"] .social-link svg {
    fill: currentColor;
    opacity: 1;
}

/* Forçar ícones pretos a ficarem brancos no modo escuro */
[data-theme="dark"] .social-link.tiktok:not(:hover) svg,
[data-theme="dark"] .social-link.twitter:not(:hover) svg,
[data-theme="dark"] .social-link.threads:not(:hover) svg {
    fill: #ffffff !important;
    stroke: #ffffff !important;
    opacity: 1 !important;
}

/* Garantir que SVGs não tenham stroke invisível */
.social-link.tiktok svg path,
.social-link.twitter svg path {
    stroke: none;
}

[data-theme="dark"] .social-link.tiktok svg path,
[data-theme="dark"] .social-link.twitter svg path {
    stroke: #ffffff !important;
    fill: #ffffff !important;
}

/* Cores características de cada rede social */
.social-link.instagram {
    color: #E4405F;
    border-color: #E4405F;
}

.social-link.instagram svg {
    fill: #E4405F;
}

[data-theme="dark"] .social-link.instagram:not(:hover) svg {
    fill: var(--text-medium);
}

.social-link.instagram:hover {
    background: #E4405F;
    color: white;
}

.social-link.instagram:hover svg {
    fill: white;
}

.social-link.instagram:hover img {
    filter: brightness(0) invert(1);
}

.social-link.tiktok {
    color: #000000;
    border-color: #000000;
}

.social-link.tiktok svg {
    fill: #000000;
    stroke: none;
}

/* Modo escuro - ícone branco para contraste */
[data-theme="dark"] .social-link.tiktok:not(:hover) {
    border-color: rgba(255, 255, 255, 0.5);
}

[data-theme="dark"] .social-link.tiktok:not(:hover) svg {
    fill: #ffffff !important;
    stroke: #ffffff !important;
    opacity: 1 !important;
}

.social-link.tiktok:hover {
    background: #000000;
    color: white;
}

.social-link.tiktok:hover svg {
    fill: white !important;
    stroke: white !important;
}

.social-link.tiktok:hover img {
    filter: brightness(0) invert(1);
}

.social-link.twitter {
    color: #000000;
    border-color: #000000;
}

.social-link.twitter svg {
    fill: #000000;
    stroke: none;
}

/* Modo escuro - ícone branco para contraste */
[data-theme="dark"] .social-link.twitter:not(:hover) {
    border-color: rgba(255, 255, 255, 0.5);
}

[data-theme="dark"] .social-link.twitter:not(:hover) svg {
    fill: #ffffff !important;
    stroke: #ffffff !important;
    opacity: 1 !important;
}

.social-link.twitter:hover {
    background: #000000;
    color: white;
}

.social-link.twitter:hover svg {
    fill: white !important;
    stroke: white !important;
}

.social-link.twitter:hover img {
    filter: brightness(0) invert(1);
}

.social-link.youtube {
    color: #FF0000;
    border-color: #FF0000;
}

.social-link.youtube svg {
    fill: #FF0000;
}

[data-theme="dark"] .social-link.youtube:not(:hover) svg {
    fill: var(--text-medium);
}

.social-link.youtube:hover {
    background: #FF0000;
    color: white;
}

.social-link.youtube:hover svg {
    fill: white;
}

.social-link.youtube:hover img {
    filter: brightness(0) invert(1);
}

.social-link.facebook {
    color: #1877F2;
    border-color: #1877F2;
}

.social-link.facebook svg {
    fill: #1877F2;
}

[data-theme="dark"] .social-link.facebook:not(:hover) svg {
    fill: var(--text-medium);
}

.social-link.facebook:hover {
    background: #1877F2;
    color: white;
}

.social-link.facebook:hover svg {
    fill: white;
}

.social-link.facebook:hover img {
    filter: brightness(0) invert(1);
}

.social-link.threads {
    color: #000000;
    border-color: #000000;
}

.social-link.threads i {
    color: #000000;
    transition: var(--transition);
}

/* Modo escuro - ícone branco para contraste */
[data-theme="dark"] .social-link.threads:not(:hover) {
    border-color: rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] .social-link.threads:not(:hover) i {
    color: #ffffff !important;
}

.social-link.threads:hover {
    background: #000000;
    color: white;
}

.social-link.threads:hover i {
    color: white !important;
}

.footer-text {
    font-size: 0.875rem;
    color: var(--text-medium);
}

/* Comments Section */
.comments-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
}

.comments-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 2rem;
}

/* Login Prompt */
.login-prompt {
    text-align: center;
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.btn-google-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    background: white;
    border: 1px solid #dadce0;
    border-radius: 4px;
    font-size: 1rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 500;
    color: #3c4043;
    cursor: pointer !important;
    transition: var(--transition);
    box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
    min-width: 240px;
    position: relative;
    z-index: 10;
    pointer-events: auto !important;
    user-select: none;
}

.btn-google-login:hover {
    box-shadow: 0 1px 3px 0 rgba(60, 64, 67, 0.3), 0 4px 8px 3px rgba(60, 64, 67, 0.15);
    transform: translateY(-1px);
    background: #f8f9fa;
}

.btn-google-login:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
}

.btn-google-login svg {
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.btn-google-login:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

[data-theme="dark"] .btn-google-login {
    background: #1f1f1f;
    border-color: #5f6368;
    color: #e8eaed;
}

[data-theme="dark"] .btn-google-login:hover {
    background: #2d2d2d;
    border-color: #80868b;
}

/* User Info */
.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
    background: var(--bg-light);
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.btn-logout {
    margin-left: auto;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.875rem;
    font-family: 'Georgia', serif;
    color: var(--text-medium);
    cursor: pointer;
    transition: var(--transition);
}

.btn-logout:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Comment Form */
.comment-form {
    margin-bottom: 2rem;
}

.comment-input {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    font-family: 'Georgia', serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-white);
    resize: vertical;
    transition: var(--transition);
    margin-bottom: 1rem;
}

.comment-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .comment-input {
    background: var(--bg-dark);
    color: var(--text-light);
    border-color: var(--border-color);
}

.btn-submit-comment {
    padding: 0.875rem 2rem;
    background: var(--primary-dark);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-family: 'Georgia', serif;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.btn-submit-comment:hover {
    background: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

/* Ajustes para modo noturno */
[data-theme="dark"] .btn-submit-comment {
    background: #4a5568;
    color: #ffffff;
    border: 1px solid #4a5568;
}

[data-theme="dark"] .btn-submit-comment:hover {
    background: #2d3748;
    color: #ffffff;
    border-color: #2d3748;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.comment-message {
    margin-top: 1rem;
    padding: 0.875rem 1rem;
    border-radius: 4px;
    font-size: 0.9375rem;
    text-align: center;
}

.comment-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.comment-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

[data-theme="dark"] .comment-message.success {
    background: rgba(40, 167, 69, 0.2);
    color: #90ee90;
    border-color: rgba(40, 167, 69, 0.3);
}

[data-theme="dark"] .comment-message.error {
    background: rgba(220, 53, 69, 0.2);
    color: #ff6b6b;
    border-color: rgba(220, 53, 69, 0.3);
}

/* Comments List */
.comments-list {
    margin-top: 2rem;
}

.no-comments {
    text-align: center;
    padding: 2rem;
    color: var(--text-medium);
    font-style: italic;
}

.comment-item {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: var(--transition);
}

.comment-item:hover {
    box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .comment-item {
    background: var(--bg-dark);
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-author-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.comment-author-info strong {
    color: var(--primary-dark);
    font-size: 1rem;
}

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

.comment-text {
    color: var(--text-dark);
    line-height: 1.7;
    margin: 0;
    white-space: pre-wrap;
}

[data-theme="dark"] .comment-text {
    color: var(--text-light);
}

/* Comment Actions - Like/Dislike */
.comment-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.btn-like,
.btn-dislike {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-white);
    color: var(--text-dark);
    font-size: 0.9375rem;
    font-family: 'Georgia', serif;
    cursor: pointer;
    transition: var(--transition);
}

.btn-like:hover {
    background: #e3f2fd;
    border-color: #2196f3;
    transform: translateY(-1px);
}

.btn-dislike:hover {
    background: #ffebee;
    border-color: #f44336;
    transform: translateY(-1px);
}

.btn-like.active {
    background: #2196f3;
    border-color: #2196f3;
    color: white;
}

.btn-dislike.active {
    background: #f44336;
    border-color: #f44336;
    color: white;
}

.like-icon,
.dislike-icon {
    font-size: 1.2rem;
    line-height: 1;
}

.like-count,
.dislike-count {
    font-weight: 500;
    min-width: 1.5rem;
    text-align: center;
}

/* Modo noturno - Like/Dislike */
[data-theme="dark"] .btn-like,
[data-theme="dark"] .btn-dislike {
    background: var(--bg-dark);
    color: var(--text-light);
    border-color: var(--border-color);
}

[data-theme="dark"] .btn-like:hover {
    background: rgba(33, 150, 243, 0.2);
    border-color: #2196f3;
    color: #64b5f6;
}

[data-theme="dark"] .btn-dislike:hover {
    background: rgba(244, 67, 54, 0.2);
    border-color: #f44336;
    color: #ef5350;
}

[data-theme="dark"] .btn-like.active {
    background: #2196f3;
    border-color: #2196f3;
    color: white;
}

[data-theme="dark"] .btn-dislike.active {
    background: #f44336;
    border-color: #f44336;
    color: white;
}

/* Paginação de Comentários */
.comments-pagination {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.pagination-info {
    text-align: center;
    color: var(--text-medium);
    font-size: 0.9375rem;
    margin-bottom: 1rem;
}

.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-pagination {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-white);
    color: var(--text-dark);
    font-size: 0.9375rem;
    font-family: 'Georgia', serif;
    cursor: pointer;
    transition: var(--transition);
    min-width: 2.5rem;
}

.btn-pagination:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

.btn-pagination.active {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
    font-weight: 600;
}

.pagination-ellipsis {
    color: var(--text-medium);
    padding: 0 0.5rem;
}

/* Modo noturno - Paginação */
[data-theme="dark"] .btn-pagination {
    background: var(--bg-dark);
    color: var(--text-light);
    border-color: var(--border-color);
}

[data-theme="dark"] .btn-pagination:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

[data-theme="dark"] .btn-pagination.active {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
}

/* Responsive Comments */
@media (max-width: 480px) {
    .comments-title {
        font-size: 1.5rem;
    }
    
    .btn-google-login {
        width: 100%;
        justify-content: center;
    }
    
    .user-info {
        flex-wrap: wrap;
    }
    
    .btn-logout {
        width: 100%;
        margin-left: 0;
        margin-top: 0.5rem;
    }
    
    .comment-item {
        padding: 1rem;
    }
}

/* ============================================
   RESPONSIVE DESIGN - PC, TV e Smartphones
   ============================================ */

/* Smartphones (portrait) - até 480px */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .top-controls {
        top: 10px;
        left: 10px;
        gap: 0.5rem;
        flex-wrap: nowrap;
        min-width: fit-content;
    }

    .dark-mode-toggle {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
        max-width: 40px !important;
        max-height: 40px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .dark-mode-toggle .theme-icon {
        font-size: 1.25rem;
    }

    .language-selector {
        gap: 0.25rem;
        flex-shrink: 0;
        display: flex !important;
        align-items: center !important;
    }

    .language-selector .flag {
        min-width: 40px !important;
        min-height: 40px !important;
        height: 40px !important;
        flex-shrink: 0;
        padding: 0.3rem 0.4rem;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .language-selector .flag-icon {
        width: 20px;
        height: auto;
    }

    .language-selector .flag .fi {
        font-size: 1.25rem;
    }

    .navbar {
        padding: 1rem 0;
    }

    .logo {
        font-size: 1.25rem;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--bg-white);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        transform: translateX(-100%);
        transition: var(--transition);
        z-index: 1000;
        padding: 2rem;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-menu li {
        font-size: 1.25rem;
    }

    .hero {
        padding: 5rem 0 2rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 0.9375rem;
        line-height: 1.6;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-subtitle {
        font-size: 0.9375rem;
    }

    .articles-grid,
    .books-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .book-card-picture,
    .books-list-cover picture {
        max-width: 200px;
        min-width: 0;
        padding: 1rem;
    }

    .form-group {
        flex-direction: column;
        gap: 0.75rem;
    }

    .form-input {
        width: 100%;
        padding: 0.75rem;
        font-size: 0.9375rem;
    }

    .btn-submit {
        width: 100%;
        padding: 0.75rem;
    }

    .social-links {
        gap: 1rem;
    }

    .social-link {
        width: 40px;
        height: 40px;
    }

    .social-link svg,
    .social-link img {
        width: 20px;
        height: 20px;
    }

    .footer {
        padding: 2rem 0;
    }

    .account-hero {
        padding: 5.5rem 0 3rem;
    }

    .account-hero-grid {
        grid-template-columns: 1fr;
    }

    .account-card,
    .account-hero-card,
    .purchase-card,
    .account-support {
        border-radius: 20px;
        padding: 1.5rem;
    }

    .account-purchases-grid {
        grid-template-columns: 1fr;
    }

    .account-user-actions,
    .purchase-card-actions,
    .account-support-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .account-filter {
        width: 100%;
        justify-content: space-between;
    }
}

/* Smartphones (landscape) e Tablets pequenos - 481px a 768px */
@media (min-width: 481px) and (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .language-selector {
        top: 15px;
        right: 15px;
    }

    .navbar {
        padding: 1.25rem 0;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--bg-white);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        transform: translateX(-100%);
        transition: var(--transition);
        z-index: 1000;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .hero {
        padding: 6rem 0 3rem;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        font-size: 1.0625rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .articles-grid,
    .books-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .book-cover {
        max-width: 200px !important;
        max-height: 300px !important;
    }

    .form-group {
        flex-direction: column;
    }

    .form-input {
        width: 100%;
    }
}

/* Tablets - 769px a 1024px */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        max-width: 900px;
        padding: 0 30px;
    }

    .nav-menu {
        gap: 1.5rem;
    }

    .hero {
        padding: 8rem 0 4rem;
    }

    .hero-title {
        font-size: 2.75rem;
    }

    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .books-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop/PC - 1025px a 1920px */
@media (min-width: 1025px) {
    .container {
        max-width: 1200px;
    }

    .hero {
        padding: 10rem 0 5rem;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .articles-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .books-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .nav-menu {
        gap: 2rem;
    }

    .language-selector {
        display: flex !important;
        align-items: center !important;
    }

    .account-hero-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .account-purchases-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .account-support {
        padding: 2.5rem 3rem;
    }
}

/* TV e Telas Grandes - acima de 1920px */
@media (min-width: 1921px) {
    .container {
        max-width: 1400px;
    }

    .hero-title {
        font-size: 4.5rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 3rem;
    }

    .section-subtitle {
        font-size: 1.25rem;
    }

    .articles-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }

    .books-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }

    .nav-menu {
        gap: 3rem;
        font-size: 1.125rem;
    }

    .social-link {
        width: 56px;
        height: 56px;
    }

    .social-link svg,
    .social-link img {
        width: 28px;
        height: 28px;
    }

    .top-controls {
        top: 25px;
        left: 25px;
        gap: 1rem;
    }

    .dark-mode-toggle {
        width: 52px !important;
        height: 52px !important;
        min-width: 52px !important;
        min-height: 52px !important;
        max-width: 52px !important;
        max-height: 52px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .dark-mode-toggle .theme-icon {
        font-size: 1.75rem;
    }

    .language-selector {
        display: flex !important;
        align-items: center !important;
    }

    .language-selector .flag {
        padding: 0.5rem 0.75rem;
        height: 52px !important;
        min-height: 52px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .language-selector .flag .fi {
        font-size: 1.75rem;
    }

    .language-selector .flag-icon {
        width: 32px;
        height: auto;
    }

    /* Melhorar legibilidade em telas grandes */
    body {
        font-size: 1.125rem;
        line-height: 1.8;
    }

    .form-input,
    .btn-submit {
        font-size: 1.125rem;
        padding: 1rem 1.5rem;
    }
}

/* Orientação Landscape para tablets e smartphones */
@media (orientation: landscape) and (max-height: 600px) {
    .hero {
        padding: 4rem 0 2rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .language-selector {
        top: 10px;
        right: 10px;
    }
}

/* Acessibilidade - Melhor contraste e tamanhos em telas touch */
@media (hover: none) and (pointer: coarse) {
    /* Dispositivos touch (smartphones, tablets) */
    .nav-link,
    .social-link,
    .flag,
    .btn-submit {
        min-height: 44px; /* Tamanho mínimo recomendado para touch */
        min-width: 44px;
    }

    .social-link {
        width: 48px;
        height: 48px;
    }
}

/* Impressão */
@media print {
    .language-selector,
    .navbar,
    .mobile-menu-toggle,
    .social-links,
    .newsletter {
        display: none;
    }

    .hero {
        padding: 2rem 0;
    }

    .section {
        page-break-inside: avoid;
    }
}

/* Utilidades de Acessibilidade */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: min(420px, 92vw);
    background: var(--bg-white);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1.75rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    transform: translateY(120%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.4s ease, opacity 0.3s ease;
    z-index: 1100;
}

.cookie-consent.is-visible {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.cookie-consent__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.cookie-consent__title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
}

.cookie-consent__description {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-medium);
}

.cookie-consent__actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cookie-consent__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.cookie-consent__button {
    flex: 1 1 120px;
    border-radius: 999px;
    padding: 0.65rem 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transition);
}

.cookie-consent__button.primary {
    background: var(--primary-dark);
    color: var(--bg-white);
    border-color: var(--primary-dark);
}

.cookie-consent__button.primary:hover {
    box-shadow: var(--shadow);
    transform: translateY(-1px);
}

.cookie-consent__button.secondary {
    background: transparent;
    color: var(--text-dark);
    border-color: var(--border-color);
}

.cookie-consent__button.secondary:hover {
    border-color: var(--text-dark);
    color: var(--text-dark);
}

.cookie-consent__button.ghost {
    background: transparent;
    color: var(--text-medium);
    border-color: transparent;
}

.cookie-consent__button.ghost:hover {
    color: var(--text-dark);
}

.cookie-consent__details {
    font-size: 0.85rem;
    color: var(--text-medium);
    line-height: 1.4;
}

.cookie-consent__details a {
    color: inherit;
    text-decoration: underline;
}

.cookie-consent__close {
    background: transparent;
    border: none;
    color: var(--text-medium);
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.cookie-consent__close span[aria-hidden="true"] {
    font-size: 1.25rem;
    line-height: 1;
}

.cookie-consent__close:hover {
    background: var(--bg-light);
    color: var(--text-dark);
}

.cookie-consent__body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cookie-preferences {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: clamp(220px, 35vh, 320px);
    overflow-y: auto;
    padding-right: 0.25rem;
}

.cookie-preference {
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 0.85rem 1rem;
    background: var(--bg-light);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.cookie-preference:hover {
    border-color: var(--primary-dark);
    box-shadow: var(--shadow-xs);
}

.cookie-preference__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cookie-preference__titles {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.cookie-preference__title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.cookie-preference__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.06);
    color: var(--text-dark);
}

.cookie-preference__badge.optional {
    background: rgba(0, 0, 0, 0.08);
}

.cookie-preference__description {
    margin-top: 0.65rem;
    font-size: 0.9rem;
    line-height: 1.45;
    color: var(--text-medium);
}

.cookie-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.cookie-switch input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-switch__track {
    width: 46px;
    height: 26px;
    border-radius: 999px;
    background: var(--border-color);
    position: relative;
    transition: background 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    padding: 3px;
}

.cookie-switch__track::after {
    content: "";
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bg-white);
    box-shadow: var(--shadow-xs);
    transform: translateX(0);
    transition: transform 0.3s ease, background 0.3s ease;
}

.cookie-switch input:checked + .cookie-switch__track {
    background: var(--primary-dark);
}

.cookie-switch input:checked + .cookie-switch__track::after {
    transform: translateX(20px);
}

.cookie-switch input:focus-visible + .cookie-switch__track {
    outline: 2px solid var(--primary-dark);
    outline-offset: 2px;
}

.cookie-switch input[disabled] + .cookie-switch__track {
    background: rgba(0, 0, 0, 0.12);
    cursor: not-allowed;
}

.cookie-switch input[disabled] + .cookie-switch__track::after {
    background: rgba(255, 255, 255, 0.9);
}

.footer-text-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.cookie-manage-trigger {
    background: none;
    border: none;
    color: inherit;
    text-decoration: underline;
    font: inherit;
    cursor: pointer;
    padding: 0;
    transition: color 0.3s ease;
}

.cookie-manage-trigger:hover {
    color: var(--text-dark);
}

[data-theme="dark"] .cookie-consent {
    background: var(--bg-white);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow);
}

[data-theme="dark"] .cookie-preference {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.16);
}

[data-theme="dark"] .cookie-preference:hover {
    border-color: var(--primary-dark);
    box-shadow: var(--shadow-xs);
}

[data-theme="dark"] .cookie-preference__title {
    color: var(--text-dark);
}

[data-theme="dark"] .cookie-consent__description,
[data-theme="dark"] .cookie-consent__details {
    color: var(--text-light);
}

[data-theme="dark"] .cookie-preference__description {
    color: var(--text-light);
}

[data-theme="dark"] .cookie-preference__badge {
    background: rgba(255, 255, 255, 0.14);
    color: var(--text-dark);
}

[data-theme="dark"] .cookie-switch__track {
    background: rgba(255, 255, 255, 0.16);
}

[data-theme="dark"] .cookie-switch input:checked + .cookie-switch__track {
    background: var(--primary-dark);
}

[data-theme="dark"] .cookie-switch input[disabled] + .cookie-switch__track {
    background: rgba(255, 255, 255, 0.18);
}

[data-theme="dark"] .cookie-consent__button.secondary {
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-dark);
}

[data-theme="dark"] .cookie-consent__button.secondary:hover {
    border-color: var(--primary-dark);
}

[data-theme="dark"] .cookie-consent__button.ghost {
    color: var(--text-light);
}

[data-theme="dark"] .cookie-consent__button.ghost:hover {
    color: var(--primary-dark);
}

[data-theme="dark"] .cookie-consent__close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-dark);
}

@media (max-width: 680px) {
    .cookie-consent {
        right: 16px;
        left: 16px;
        width: auto;
        bottom: 16px;
        border-radius: 16px;
        padding: 1.25rem;
    }
    
    .cookie-preferences {
        max-height: none;
    }
    
    .cookie-consent__buttons {
        flex-direction: column;
    }
    
    .cookie-consent__button {
        width: 100%;
        flex: 1 1 auto;
    }
    
    .footer-text-wrapper {
        flex-direction: column;
        gap: 0.25rem;
    }
}

/* Página Minha Conta */
.account-page {
    background: var(--bg-white);
    color: var(--text-dark);
}

.account-section {
    padding: 4rem 0;
}

.account-hero {
    padding: 7rem 0 4rem;
    background: linear-gradient(135deg, rgba(0,0,0,0.02), transparent);
}

[data-theme="dark"] .account-hero {
    background: linear-gradient(135deg, rgba(255,255,255,0.04), transparent);
}

.account-hero-grid {
    display: grid;
    gap: 2.5rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    align-items: stretch;
}

.account-hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary-light);
    margin-bottom: 1rem;
}

.account-hero-title {
    font-size: clamp(2.25rem, 4vw, 3.5rem);
    margin-bottom: 1rem;
}

.account-hero-description {
    font-size: 1.125rem;
    color: var(--text-medium);
    margin-bottom: 1.75rem;
    line-height: 1.7;
}

.account-hero-benefits {
    list-style: none;
    display: grid;
    gap: 0.75rem;
    padding: 0;
    margin: 0;
}

.account-hero-benefits li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    color: var(--text-medium);
}

.account-hero-benefits li::before {
    content: '\2713';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0,0,0,0.05);
    color: var(--primary-dark);
    font-size: 0.85rem;
}

[data-theme="dark"] .account-hero-benefits li::before {
    background: rgba(255,255,255,0.08);
    color: var(--bg-white);
}

.account-hero-card {
    background: var(--bg-white);
    border-radius: 24px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

[data-theme="dark"] .account-hero-card {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.08);
    box-shadow: var(--shadow);
}

.account-hero-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-medium);
}

.account-hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(0,0,0,0.15);
}

.account-hero-dot.is-online {
    background: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}

.account-hero-status .is-online {
    color: #10b981;
}

.account-hero-card-title {
    font-size: 1.5rem;
}

.account-hero-card-text,
.account-hero-footer {
    color: var(--text-medium);
    line-height: 1.6;
}

.account-card {
    background: var(--bg-white);
    border-radius: 24px;
    border: 1px solid var(--border-color);
    padding: clamp(1.5rem, 4vw, 2rem);
    box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .account-card {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.08);
    box-shadow: var(--shadow);
}

.account-alert {
    border-radius: 16px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    display: none;
}

.account-alert[hidden] {
    display: none !important;
}

.account-alert[data-type="success"] {
    display: block;
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
}

.account-alert[data-type="error"] {
    display: block;
    background: rgba(239, 68, 68, 0.12);
    color: #b91c1c;
}

.account-user-header {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.account-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0,0,0,0.08), rgba(0,0,0,0.02));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-dark);
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

[data-theme="dark"] .account-avatar {
    background: rgba(255,255,255,0.08);
    color: var(--bg-white);
}

.account-avatar.has-image {
    color: transparent;
}

.account-user-name {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.account-user-email {
    color: var(--text-medium);
    margin-bottom: 0.75rem;
    word-break: break-word;
}

.account-user-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.account-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(0,0,0,0.05);
    color: var(--text-medium);
    font-size: 0.85rem;
}

[data-theme="dark"] .account-chip {
    background: rgba(255,255,255,0.08);
    color: var(--text-light);
}

.account-user-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.account-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    text-transform: uppercase;
    font-size: 0.825rem;
    letter-spacing: 0.08em;
    color: var(--primary-light);
    margin-bottom: 0.75rem;
}

.account-section-tools {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.account-filter {
    display: inline-flex;
    gap: 0.5rem;
    background: rgba(0,0,0,0.04);
    border-radius: 999px;
    padding: 0.4rem;
}

.account-filter-btn {
    border-radius: 999px;
    background: transparent;
    border: none;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-medium);
    cursor: pointer;
    transition: var(--transition);
}

.account-filter-btn.active {
    background: var(--bg-white);
    color: var(--primary-dark);
    box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .account-filter {
    background: rgba(255,255,255,0.05);
}

[data-theme="dark"] .account-filter-btn.active {
    background: rgba(255,255,255,0.12);
    color: var(--bg-white);
}

.account-loading {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

.account-skeleton {
    height: 152px;
    border-radius: 24px;
    background: linear-gradient(90deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.02) 50%, rgba(0,0,0,0.05) 100%);
    animation: shimmer 1.6s infinite;
}

@keyframes shimmer {
    0% { background-position: -200px 0; }
    100% { background-position: 200px 0; }
}

.account-empty,
.account-error {
    margin-top: 2.5rem;
    text-align: center;
    border-radius: 24px;
    border: 1px dashed var(--border-color);
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    color: var(--text-medium);
}

.account-empty-icon,
.account-error-icon {
    font-size: 3rem;
}

.account-purchases-grid {
    margin-top: 2.5rem;
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}

.purchase-card {
    border-radius: 24px;
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .purchase-card {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.08);
}

.purchase-card-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    align-items: start;
}

.purchase-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: rgba(0,0,0,0.06);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

[data-theme="dark"] .purchase-card-icon {
    background: rgba(255,255,255,0.1);
}

.purchase-card-title h3 {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
}

.purchase-card-title .purchase-card-type {
    font-size: 0.9rem;
    color: var(--text-medium);
}

.purchase-status {
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.purchase-status.status-paid {
    background: rgba(16, 185, 129, 0.15);
    color: #047857;
}

.purchase-status.status-processing {
    background: rgba(245, 158, 11, 0.15);
    color: #b45309;
}

.purchase-status.status-pending {
    background: rgba(234, 179, 8, 0.15);
    color: #92400e;
}

.purchase-status.status-refunded {
    background: rgba(59, 130, 246, 0.15);
    color: #1d4ed8;
}

.purchase-status.status-failed {
    background: rgba(239, 68, 68, 0.15);
    color: #b91c1c;
}

.purchase-card-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
}

.purchase-card-meta dt {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-medium);
}

.purchase-card-meta dd {
    margin: 0.35rem 0 0;
    font-weight: 600;
}

.purchase-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.purchase-card-bonuses {
    border-top: 1px dashed var(--border-color);
    padding-top: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.purchase-card-bonus-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
}

.purchase-card-bonus-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.purchase-card-bonus-item {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.purchase-card-bonus-badge {
    background: rgba(59, 130, 246, 0.12);
    color: rgba(37, 99, 235, 0.9);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 0.25rem 0.75rem;
}

.purchase-card-bonus-link {
    color: var(--primary-dark);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.purchase-card-bonus-link:hover,
.purchase-card-bonus-link:focus {
    text-decoration: underline;
}

[data-theme="dark"] .purchase-card-bonuses {
    border-color: rgba(148, 163, 184, 0.25);
}

[data-theme="dark"] .purchase-card-bonus-title {
    color: rgba(248, 250, 252, 0.92);
}

[data-theme="dark"] .purchase-card-bonus-badge {
    background: rgba(59, 130, 246, 0.28);
    color: rgba(219, 234, 254, 0.95);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.45);
}

[data-theme="dark"] .purchase-card-bonus-link {
    color: rgba(165, 180, 252, 0.95);
    text-shadow: 0 1px 3px rgba(15, 23, 42, 0.55);
}

[data-theme="dark"] .purchase-card-bonus-link:hover,
[data-theme="dark"] .purchase-card-bonus-link:focus {
    color: rgba(147, 197, 253, 1);
}

.account-support {
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(0,0,0,0.05), rgba(0,0,0,0.01));
    padding: clamp(1.75rem, 4vw, 2.5rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    border: 1px solid rgba(0,0,0,0.05);
}

.account-support-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

[data-theme="dark"] .account-support {
    background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
    border-color: rgba(255,255,255,0.08);
}

@media (max-width: 480px) {
    .books-grid {
        gap: 1.25rem;
    }
}

@media (max-width: 768px) {
    .books-list-card {
        grid-template-columns: 1fr;
    }

    .book-hero-grid {
        grid-template-columns: 1fr;
    }
}

/* Tablets - 769px a 1024px */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        max-width: 900px;
        padding: 0 30px;
    }

    .books-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .books-list-card {
        grid-template-columns: minmax(0, 200px) 1fr;
    }
}

/* TV e Telas Grandes - acima de 1920px */
@media (min-width: 1921px) {
    .container {
        max-width: 1400px;
    }
}

[data-theme="dark"] .navbar {
    background: rgba(18, 18, 18, 0.92);
    backdrop-filter: blur(12px);
}

[data-theme="dark"] .nav-link {
    color: rgba(255, 255, 255, 0.85);
}

[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link.active,
[data-theme="dark"] .nav-link:focus {
    color: var(--text-dark);
}

[data-theme="dark"] .nav-link[aria-current="page"] {
    color: var(--text-dark);
}

.nav-link strong {
    font-weight: 600;
}

[data-theme="dark"] .nav-link strong {
    color: var(--bg-white);
}

.book-card-body h3 {
    font-size: 1.25rem;
    color: var(--primary-dark);
}

[data-theme="dark"] .book-card-body h3 {
    color: var(--bg-white);
}

.book-card-body strong {
    color: var(--primary-dark);
}

[data-theme="dark"] .book-card-body strong {
    color: var(--bg-white);
}

.books-list-content {
    color: var(--text-medium);
}

.books-list-content p {
    color: var(--text-medium);
}

.books-list-content h2 {
    font-size: 1.4rem;
    color: var(--primary-dark);
}

[data-theme="dark"] .books-list-content {
    color: rgba(226, 232, 240, 0.92);
}

[data-theme="dark"] .books-list-content p {
    color: rgba(226, 232, 240, 0.88);
}

[data-theme="dark"] .books-list-content h2 {
    color: rgba(248, 250, 252, 0.98);
    text-shadow: 0 2px 6px rgba(15, 23, 42, 0.6);
}

.books-list-content strong {
    color: var(--primary-dark);
}

[data-theme="dark"] .books-list-content strong {
    color: rgba(248, 250, 252, 0.98);
    text-shadow: 0 1px 3px rgba(15, 23, 42, 0.55);
}

@media (max-width: 600px) {
    .book-card-picture,
    .books-list-cover picture {
        max-width: 220px;
        min-width: 0;
        padding: 1rem;
    }

    .books-list-card {
        flex: 1 1 100%;
        max-width: 320px;
    }
}



