/* ==========================================================================
   Portal Bíblico - Estilos Principais (Responsivo & Otimizado para Mobile)
   Inspirado na legibilidade e clareza do bibliaon.com
   ========================================================================== */

:root {
    --primary: #1e3a8a;          /* Azul Bíblia nobre */
    --primary-hover: #172554;
    --primary-light: #eff6ff;
    --accent: #b45309;           /* Dourado bíblico */
    --accent-light: #fef3c7;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --text-light: #9ca3af;
    --bg-page: #f9fafb;
    --bg-card: #ffffff;
    --border: #e5e7eb;
    --border-subtle: #f3f4f6;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --font-serif: 'Lora', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Cinzel', 'Lora', Georgia, serif;
    --touch-target: 44px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-page);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-tap-highlight-color: transparent;
}

body.drawer-no-scroll {
    overflow: hidden;
    touch-action: none;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.15s ease;
}

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

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* --------------------------------------------------------------------------
   Cabeçalho
   -------------------------------------------------------------------------- */
.site-header {
    background-color: #0f172a;
    border-bottom: 2px solid var(--accent);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 62px;
    gap: 1rem;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffffff;
    font-family: var(--font-display);
    font-size: 1.35rem;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.site-logo .logo-icon {
    font-size: 1.5rem;
}

.site-logo strong {
    color: var(--accent);
    font-weight: 700;
}

.site-logo:hover {
    color: #f8fafc;
}

/* Navegação Desktop */
.main-nav.desktop-nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.nav-link {
    color: #cbd5e1;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0.25rem;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
    color: #ffffff;
    border-bottom-color: var(--accent);
}

/* Busca Desktop */
.header-search.desktop-search {
    flex: 1;
    max-width: 320px;
}

.header-search-form {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    padding: 0.25rem 0.5rem 0.25rem 0.75rem;
    transition: all 0.2s ease;
}

.header-search-form:focus-within {
    background: #ffffff;
    border-color: var(--accent);
}

.header-search-form input {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 0.875rem;
    width: 100%;
    outline: none;
}

.header-search-form:focus-within input {
    color: var(--text-main);
}

.header-search-form input::placeholder {
    color: #94a3b8;
}

.header-search-form button {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 0.35rem;
    min-width: 32px;
    min-height: 32px;
    justify-content: center;
}

.header-search-form:focus-within button {
    color: var(--primary);
}

/* Ações Mobile (Ocultas no Desktop) */
.mobile-actions {
    display: none;
    align-items: center;
    gap: 0.5rem;
}

.mobile-search-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-radius: var(--radius-sm);
    width: var(--touch-target);
    height: var(--touch-target);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.mobile-menu-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    width: var(--touch-target);
    height: var(--touch-target);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 20px;
    height: 2px;
    background-color: #ffffff;
    border-radius: 2px;
}

/* Barra de Busca Mobile Retrátil */
.mobile-search-bar {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease, padding 0.25s ease;
    background-color: #1e293b;
    border-top: 1px solid transparent;
}

.mobile-search-bar.open {
    max-height: 70px;
    border-top-color: rgba(255, 255, 255, 0.1);
    padding: 0.65rem 0;
}

.mobile-search-form {
    display: flex;
    gap: 0.5rem;
}

.mobile-search-form input {
    flex: 1;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.55rem 0.75rem;
    font-size: 0.95rem;
    outline: none;
    font-family: inherit;
}

.mobile-search-submit {
    background: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 0 1rem;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
}

/* --------------------------------------------------------------------------
   Drawer de Navegação Mobile (Gaveta Lateral)
   -------------------------------------------------------------------------- */
.mobile-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 998;
}

.mobile-drawer-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    height: 100dvh;
    background: #0f172a;
    color: #ffffff;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 999;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.4);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-drawer.open {
    transform: translateX(0);
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem;
    border-bottom: 1px solid #1e293b;
}

.drawer-close-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #ffffff;
    font-size: 1.75rem;
    line-height: 1;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.drawer-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.drawer-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #cbd5e1;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    min-height: var(--touch-target);
}

.drawer-link:hover, .drawer-link.active {
    background: #1e293b;
    color: #ffffff;
}

.drawer-link.active {
    border-left: 3px solid var(--accent);
}

.drawer-badge {
    margin-left: auto;
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    color: #94a3b8;
}

.drawer-section-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.drawer-quick-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.drawer-quick-links a {
    background: #1e293b;
    color: #e2e8f0;
    padding: 0.5rem 0.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
}

.drawer-quick-links a:hover {
    background: var(--primary);
    color: #ffffff;
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    color: #ffffff;
    padding: 3.5rem 0 3rem;
    text-align: center;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
    color: #f8fafc;
}

.hero-subtitle {
    max-width: 680px;
    margin: 0 auto 2rem;
    color: #94a3b8;
    font-size: 1.05rem;
}

.search-box-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    padding: 1.5rem;
    max-width: 780px;
    margin: 0 auto;
    color: var(--text-main);
    text-align: left;
}

.search-tabs {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.75rem;
}

.search-tab-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    min-height: 36px;
}

.search-tab-option input[type="radio"] {
    accent-color: var(--primary);
    width: 18px;
    height: 18px;
}

.search-tab-option input[type="radio"]:checked + span {
    color: var(--primary);
}

.search-input-wrapper {
    display: flex;
    gap: 0.5rem;
}

.search-input-wrapper input {
    flex: 1;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0.85rem 1.25rem;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
    min-height: var(--touch-target);
}

.search-input-wrapper input:focus {
    border-color: var(--primary);
}

.btn-search {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-md);
    padding: 0 1.75rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.15s;
    min-height: var(--touch-target);
}

.btn-search:hover {
    background-color: var(--primary-hover);
    color: #ffffff;
}

.search-suggestions {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.suggestion-label {
    color: var(--text-muted);
    font-weight: 500;
}

.tag-link {
    background: var(--border-subtle);
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    color: var(--primary);
    font-weight: 500;
    border: 1px solid var(--border);
    display: inline-flex;
    align-items: center;
    min-height: 32px;
}

.tag-link:hover {
    background: var(--primary-light);
    border-color: var(--primary);
}

/* --------------------------------------------------------------------------
   Versículo do Dia
   -------------------------------------------------------------------------- */
.daily-verse-section {
    margin: -1.5rem 0 2rem;
    position: relative;
    z-index: 10;
}

.daily-verse-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-left: 5px solid var(--accent);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
}

.verse-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.verse-tag {
    background: var(--accent-light);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
}

.verse-ref {
    font-weight: 700;
    color: var(--primary);
}

.verse-text {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-style: italic;
    color: #374151;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.verse-card-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-read-chapter {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    padding: 0.5rem 0.9rem;
    border-radius: var(--radius-sm);
    background: var(--primary-light);
    min-height: var(--touch-target);
    display: inline-flex;
    align-items: center;
}

.btn-copy-verse {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    cursor: pointer;
    min-height: var(--touch-target);
    transition: all 0.15s;
}

.btn-copy-verse:hover {
    color: var(--primary);
    border-color: var(--primary);
}

/* --------------------------------------------------------------------------
   Grade de Livros
   -------------------------------------------------------------------------- */
.testament-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow-sm);
}

.testament-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.testament-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: #0f172a;
    margin-bottom: 0.25rem;
}

.testament-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 700px;
}

.btn-view-all {
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    padding: 0.35rem 0;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 0.75rem;
}

.book-card {
    background: var(--bg-page);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.85rem 0.6rem;
    text-align: center;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 60px;
}

.book-card:hover {
    background: #ffffff;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.book-card .book-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: #1e293b;
    margin-bottom: 0.2rem;
}

.book-card .book-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

/* --------------------------------------------------------------------------
   Grade de Temas na Home
   -------------------------------------------------------------------------- */
.themes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

.theme-card {
    background: var(--bg-page);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.2s ease;
}

.theme-card:hover {
    background: #ffffff;
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.theme-card .theme-title {
    font-size: 1.15rem;
    color: #0f172a;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.theme-card .theme-summary {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    flex: 1;
}

.theme-card .theme-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 600;
    border-top: 1px solid var(--border);
    padding-top: 0.75rem;
}

/* --------------------------------------------------------------------------
   Breadcrumbs & Páginas Internas
   -------------------------------------------------------------------------- */
.page-container {
    padding-top: 2rem;
    padding-bottom: 4rem;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.bc-sep {
    color: var(--text-light);
}

.bc-current {
    color: var(--text-main);
    font-weight: 600;
}

.page-header {
    margin-bottom: 2rem;
}

.page-title {
    font-family: var(--font-display);
    font-size: 2.2rem;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.page-lead {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 800px;
}

.testament-switch-bar {
    background: var(--primary-light);
    border: 1px solid #bfdbfe;
    border-radius: var(--radius-sm);
    padding: 0.85rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    font-size: 0.95rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.testament-switch-bar .switch-link {
    font-weight: 600;
}

.books-detailed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.book-detailed-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
    min-height: 70px;
}

.book-detailed-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.book-card-num {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-light);
}

.book-card-content {
    flex: 1;
}

.book-card-title {
    font-size: 1.1rem;
    color: #1e293b;
    font-weight: 700;
}

.book-card-sub {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.abbrev-badge {
    background: var(--border-subtle);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-weight: 600;
}

.book-card-action {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
}

/* --------------------------------------------------------------------------
   Página do Livro & Seletor de Capítulos
   -------------------------------------------------------------------------- */
.book-header-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 2rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
    flex-wrap: wrap;
    gap: 1.25rem;
}

.testament-badge {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent);
    letter-spacing: 0.5px;
}

.book-title {
    font-family: var(--font-display);
    font-size: 2.2rem;
    color: #0f172a;
    margin: 0.25rem 0;
}

.book-meta-info {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.book-header-nav {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-book-nav {
    background: var(--bg-page);
    border: 1px solid var(--border);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-main);
    min-height: var(--touch-target);
    display: inline-flex;
    align-items: center;
}

.btn-book-nav:hover {
    background: #ffffff;
    border-color: var(--primary);
}

.chapter-selector-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.section-subheading {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.5rem;
}

.chapters-number-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(52px, 1fr));
    gap: 0.75rem;
}

.chapter-btn {
    background: var(--bg-page);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: #1e293b;
    transition: all 0.15s;
    min-height: var(--touch-target);
}

.chapter-btn:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* --------------------------------------------------------------------------
   Leitura do Capítulo
   -------------------------------------------------------------------------- */
.chapter-reading-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1.25rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.chapter-heading {
    font-family: var(--font-display);
    font-size: 2.2rem;
    color: #0f172a;
}

.chapter-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.chapter-toolbar {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.chapter-jump {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.chapter-jump select {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    min-height: var(--touch-target);
    background-color: #ffffff;
}

.font-resizer {
    display: flex;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    min-height: var(--touch-target);
}

.font-resizer button {
    background: #ffffff;
    border: none;
    padding: 0 0.85rem;
    cursor: pointer;
    font-weight: 700;
    color: var(--text-muted);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
}

.font-resizer button:hover {
    background: var(--border-subtle);
    color: var(--text-main);
}

.font-resizer button + button {
    border-left: 1px solid var(--border);
}

.chapter-nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1.5rem 0;
    gap: 0.5rem;
}

.btn-ch-nav {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 0.6rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
    min-height: var(--touch-target);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-ch-nav:hover {
    border-color: var(--primary);
}

.btn-all-chapters {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    padding: 0.5rem;
}

/* Leitor de Versículos */
.verses-content {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 2.25rem;
    box-shadow: var(--shadow-sm);
    font-family: var(--font-serif);
    font-size: 1.15rem;
    line-height: 1.85;
    color: #1f2937;
}

.verse-row {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    padding: 0.6rem 0.65rem;
    border-radius: var(--radius-sm);
    transition: all 0.25s ease;
    position: relative;
    scroll-margin-top: 100px;
    border-left: 3px solid transparent;
}

.verse-row:hover {
    background-color: #f8fafc;
}

.verse-row:target,
.verse-row.highlight-verse {
    background: linear-gradient(90deg, #fef3c7 0%, #fffdf5 100%) !important;
    border-left: 4px solid var(--accent) !important;
    border-radius: var(--radius-sm);
    box-shadow: 0 0 0 2px #fde68a, 0 4px 12px rgba(180, 83, 9, 0.12);
    animation: highlightPulse 2s ease-in-out 2;
}

@keyframes highlightPulse {
    0%, 100% {
        box-shadow: 0 0 0 2px #fde68a, 0 4px 12px rgba(180, 83, 9, 0.12);
    }
    50% {
        box-shadow: 0 0 0 5px #fbbf24, 0 6px 18px rgba(180, 83, 9, 0.22);
    }
}

.verse-destaque-badge {
    display: inline-flex;
    align-items: center;
    background: var(--accent);
    color: #ffffff;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    margin-bottom: 0.4rem;
    box-shadow: var(--shadow-sm);
}

.verse-num {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
    min-width: 26px;
    user-select: none;
    line-height: 1.85;
}

.verse-body {
    flex: 1;
}

.verse-text {
    margin: 0;
}

.verse-themes-list {
    margin-top: 0.4rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    font-family: var(--font-sans);
    font-size: 0.75rem;
}

.themes-label {
    color: var(--text-light);
    font-weight: 600;
}

.theme-badge {
    background: var(--accent-light);
    color: #92400e;
    padding: 0.15rem 0.5rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #fde68a;
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}

.theme-badge:hover {
    background: #fde68a;
    color: #78350f;
}

.verse-actions {
    display: flex;
    align-items: center;
    opacity: 0;
    transition: opacity 0.15s;
}

.verse-row:hover .verse-actions {
    opacity: 1;
}

.verse-actions .btn-copy-verse {
    min-height: 36px;
    min-width: 36px;
    padding: 0.35rem;
    border-radius: var(--radius-sm);
}

/* --------------------------------------------------------------------------
   Resultados de Busca
   -------------------------------------------------------------------------- */
.search-page-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.search-results-header {
    margin-bottom: 1.5rem;
}

.search-results-title {
    font-size: 1.4rem;
    color: #1e293b;
    font-weight: 700;
}

.reference-alert-box {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.reference-alert-box a {
    color: #047857;
    font-weight: 700;
}

.verses-search-results-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.verse-result-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.65rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.result-reference {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary);
}

.result-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-go-chapter {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    background: var(--primary-light);
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-sm);
    min-height: 36px;
    display: inline-flex;
    align-items: center;
}

.result-text {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    line-height: 1.75;
    color: #374151;
}

mark.highlight {
    background-color: #fef08a;
    color: #713f12;
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    font-weight: 600;
}

/* Resultados de Temas na Busca */
.themes-search-results-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.theme-search-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
}

.theme-card-top {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.theme-search-card .theme-title {
    font-size: 1.4rem;
    font-family: var(--font-display);
    margin-bottom: 0.5rem;
}

.theme-search-card .theme-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.theme-keywords {
    font-size: 0.85rem;
    color: var(--text-light);
}

.theme-keywords .kw-label {
    font-weight: 600;
    color: var(--text-muted);
}

.theme-badge-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
}

.theme-badge-count {
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    white-space: nowrap;
}

.btn-view-theme {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
    white-space: nowrap;
}

.theme-verses-preview {
    margin-top: 1.25rem;
    border-top: 1px solid var(--border);
    padding-top: 1rem;
}

.preview-heading {
    font-size: 0.9rem;
    font-weight: 700;
    color: #4b5563;
    margin-bottom: 0.75rem;
}

.preview-verses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.75rem;
}

.preview-verse-item {
    background: var(--bg-page);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.85rem;
    font-size: 0.9rem;
}

.preview-ref {
    display: block;
    font-weight: 700;
    color: var(--primary);
    font-size: 0.8rem;
    margin-bottom: 0.3rem;
}

.preview-text {
    font-family: var(--font-serif);
    color: #374151;
    font-style: italic;
    line-height: 1.5;
}

.preview-note {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Paginação */
.pagination-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.page-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    min-height: var(--touch-target);
    display: inline-flex;
    align-items: center;
}

.page-indicator {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Catálogo de Temas (/temas)
   -------------------------------------------------------------------------- */
.themes-filter-bar {
    margin-bottom: 2rem;
}

.themes-filter-bar input {
    width: 100%;
    max-width: 500px;
    padding: 0.85rem 1.25rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    outline: none;
    font-family: inherit;
    min-height: var(--touch-target);
}

.themes-filter-bar input:focus {
    border-color: var(--primary);
}

.themes-catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.theme-catalog-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
}

.theme-catalog-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.theme-catalog-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    gap: 0.5rem;
}

.theme-catalog-title a {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: #0f172a;
    font-weight: 700;
}

.theme-count-badge {
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    white-space: nowrap;
}

.theme-catalog-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

.theme-tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 1.25rem;
}

.theme-tag {
    background: var(--border-subtle);
    color: #475569;
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.btn-read-theme {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
    padding: 0.35rem 0;
}

/* --------------------------------------------------------------------------
   Detalhe do Tema (/tema/{slug})
   -------------------------------------------------------------------------- */
.theme-header-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow-sm);
}

.theme-kicker {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent);
    letter-spacing: 0.5px;
}

.theme-main-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: #0f172a;
    margin: 0.25rem 0 1rem;
}

.theme-main-description {
    font-size: 1.1rem;
    color: #374151;
    line-height: 1.7;
    max-width: 900px;
    margin-bottom: 1.5rem;
}

.theme-synonyms-bar {
    border-top: 1px solid var(--border);
    padding-top: 1rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.synonyms-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.syn-badge {
    background: var(--border-subtle);
    color: #334155;
    font-size: 0.8rem;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
}

.theme-content-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2.5rem;
}

.section-title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.section-title {
    font-size: 1.4rem;
    font-family: var(--font-display);
    color: #0f172a;
}

.verses-count-tag {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-light);
    padding: 0.2rem 0.75rem;
    border-radius: 12px;
}

.theme-verses-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.theme-verse-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.theme-verse-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.verse-reference-link {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--primary);
}

.theme-verse-card-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-read-cap {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    background: var(--primary-light);
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
    min-height: 36px;
    display: inline-flex;
    align-items: center;
}

.theme-verse-quote {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    line-height: 1.8;
    color: #1f2937;
    margin-bottom: 0.75rem;
}

.theme-verse-context-note {
    background: var(--bg-page);
    border-left: 3px solid var(--accent);
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    color: #4b5563;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* Barra Lateral de Temas */
.sidebar-widget {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.sidebar-widget-title {
    font-size: 1.1rem;
    color: #0f172a;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 0.4rem;
}

.related-themes-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.related-theme-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0.75rem;
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    min-height: 40px;
}

.related-theme-item:hover {
    background: var(--primary-light);
    color: var(--primary);
}

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

.sidebar-search-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sidebar-search-form input {
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    min-height: var(--touch-target);
}

.sidebar-search-form button {
    background: var(--primary);
    color: #ffffff;
    border: none;
    padding: 0.65rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    min-height: var(--touch-target);
}

/* --------------------------------------------------------------------------
   Rodapé
   -------------------------------------------------------------------------- */
.site-footer {
    background-color: #0f172a;
    color: #94a3b8;
    margin-top: auto;
    border-top: 3px solid var(--accent);
    padding: 3.5rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffffff;
    font-family: var(--font-display);
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}

.footer-logo strong {
    color: var(--accent);
}

.footer-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #64748b;
    max-width: 320px;
}

.footer-heading {
    color: #f8fafc;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: #94a3b8;
    font-size: 0.875rem;
    padding: 0.2rem 0;
    display: inline-block;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.8rem;
    color: #64748b;
}

/* --------------------------------------------------------------------------
   Toast Notification
   -------------------------------------------------------------------------- */
.toast-notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #0f172a;
    color: #ffffff;
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 1000;
    border-left: 4px solid var(--accent);
}

.toast-notification.show {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   ADAPTAÇÃO RESPONSIVA E MOBILE-FIRST
   ========================================================================== */

/* Tablets e dispositivos médios (<= 860px) */
@media (max-width: 860px) {
    .main-nav.desktop-nav,
    .header-search.desktop-search {
        display: none;
    }

    .mobile-actions {
        display: flex;
    }

    .theme-content-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

/* Smartphones e telas pequenas (<= 768px) */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .hero-section {
        padding: 2.25rem 0 2rem;
    }

    .hero-title {
        font-size: 1.85rem;
        line-height: 1.2;
    }

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

    .search-box-card {
        padding: 1.25rem 1rem;
        border-radius: var(--radius-md);
    }

    .search-tabs {
        gap: 0.5rem;
    }

    .search-tab-option {
        flex: 1;
        font-size: 0.85rem;
        justify-content: center;
        background: var(--bg-page);
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        padding: 0.4rem 0.5rem;
    }

    .search-input-wrapper {
        flex-direction: column;
        gap: 0.65rem;
    }

    .search-input-wrapper input {
        font-size: 0.95rem;
        padding: 0.75rem 1rem;
    }

    .btn-search {
        width: 100%;
        padding: 0.85rem;
    }

    .daily-verse-section {
        margin: -1rem 0 1.5rem;
    }

    .daily-verse-card {
        padding: 1.25rem 1rem;
    }

    .verse-text {
        font-size: 1.05rem;
        line-height: 1.65;
    }

    .verse-card-footer {
        justify-content: stretch;
    }

    .verse-card-footer .btn-read-chapter,
    .verse-card-footer .btn-copy-verse {
        flex: 1;
        justify-content: center;
    }

    .testament-block {
        padding: 1.25rem 1rem;
        margin-bottom: 1.75rem;
        border-radius: var(--radius-md);
    }

    .testament-title {
        font-size: 1.35rem;
    }

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

    .book-card {
        padding: 0.65rem 0.4rem;
        min-height: 52px;
    }

    .book-card .book-name {
        font-size: 0.85rem;
    }

    .book-card .book-meta {
        font-size: 0.7rem;
    }

    .themes-grid {
        grid-template-columns: 1fr;
    }

    /* Leitor Bíblico em Mobile */
    .verses-content {
        padding: 1.25rem 0.85rem;
        font-size: 1.1rem;
        line-height: 1.75;
    }

    .verse-row {
        padding: 0.65rem 0.25rem;
        gap: 0.5rem;
    }

    /* Em telas touch/mobile, o botão de cópia deve estar sempre acessível e touch-friendly */
    .verse-actions {
        opacity: 1 !important;
    }

    .verse-actions .btn-copy-verse {
        width: 38px;
        height: 38px;
        min-height: 38px;
        min-width: 38px;
        padding: 0;
        background: var(--bg-page);
        border: 1px solid var(--border);
    }

    .chapter-heading {
        font-size: 1.75rem;
    }

    .chapter-reading-header {
        flex-direction: column;
        align-items: stretch;
        gap: 0.85rem;
    }

    .chapter-toolbar {
        width: 100%;
        justify-content: space-between;
    }

    .chapter-jump {
        flex: 1;
    }

    .chapter-jump select {
        width: 100%;
    }

    .chapter-nav-bar {
        gap: 0.5rem;
    }

    .chapter-nav-bar .btn-ch-nav {
        flex: 1;
        font-size: 0.85rem;
        padding: 0.65rem 0.5rem;
    }

    .btn-all-chapters {
        display: none;
    }

    .book-header-box {
        padding: 1.25rem 1rem;
    }

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

    .book-header-nav {
        width: 100%;
    }

    .book-header-nav .btn-book-nav {
        flex: 1;
        justify-content: center;
    }

    .chapters-number-grid {
        grid-template-columns: repeat(auto-fill, minmax(46px, 1fr));
        gap: 0.5rem;
    }

    .chapter-btn {
        height: 44px;
        font-size: 1rem;
    }

    .theme-header-box {
        padding: 1.5rem 1rem;
    }

    .theme-main-title {
        font-size: 1.75rem;
    }

    .theme-main-description {
        font-size: 1rem;
    }

    .theme-catalog-card {
        padding: 1.25rem 1rem;
    }

    .theme-catalog-title a {
        font-size: 1.15rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .toast-notification {
        left: 1rem;
        right: 1rem;
        bottom: 1.5rem;
        text-align: center;
    }
}

/* Telas muito estreitas (<= 380px) */
@media (max-width: 380px) {
    .books-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .site-logo {
        font-size: 1.15rem;
    }

    .chapter-btn {
        height: 42px;
        font-size: 0.95rem;
    }
}

/* ==========================================================================
   TÓPICO ESPECIAL: GUIA PARA A VIDA
   ========================================================================== */

/* Destaque no menu principal */
.nav-link.nav-highlight {
    color: var(--accent);
    font-weight: 700;
    position: relative;
}

.nav-link.nav-highlight::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

.drawer-badge-special {
    background: var(--accent) !important;
    color: #ffffff !important;
    font-weight: 700;
}

/* Banner de Destaque na Home Page */
.guide-banner-section {
    padding: 1.5rem 0;
}

.guide-banner-card {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 2.25rem 2.5rem;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.25), 0 8px 10px -6px rgba(15, 23, 42, 0.2);
    position: relative;
    overflow: hidden;
}

.guide-banner-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(180, 83, 9, 0.25) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.guide-banner-content {
    max-width: 760px;
    position: relative;
    z-index: 1;
}

.guide-banner-badge {
    display: inline-block;
    background: rgba(245, 158, 11, 0.18);
    color: #fcd34d;
    border: 1px solid rgba(245, 158, 11, 0.35);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    margin-bottom: 0.85rem;
}

.guide-banner-title {
    font-family: var(--font-serif);
    font-size: 1.85rem;
    color: #ffffff;
    margin-bottom: 0.75rem;
    line-height: 1.25;
}

.guide-banner-desc {
    color: #cbd5e1;
    font-size: 0.98rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.guide-banner-desc strong {
    color: #f8fafc;
}

.guide-banner-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.guide-pill {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e2e8f0;
    font-size: 0.82rem;
    font-weight: 500;
    padding: 0.35rem 0.8rem;
    border-radius: 20px;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.guide-pill:hover {
    background: rgba(245, 158, 11, 0.25);
    border-color: #f59e0b;
    color: #ffffff;
    transform: translateY(-1px);
}

.guide-banner-action {
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.btn-guide-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--accent);
    color: #ffffff;
    font-weight: 700;
    font-size: 1.05rem;
    padding: 1rem 1.75rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(180, 83, 9, 0.4);
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.btn-guide-cta:hover {
    background: #92400e;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(180, 83, 9, 0.5);
}

.cta-arrow {
    transition: transform var(--transition-fast);
}

.btn-guide-cta:hover .cta-arrow {
    transform: translateX(4px);
}

/* Página do Guia */
.guide-page {
    padding-bottom: 3.5rem;
}

.guide-header {
    text-align: center;
    max-width: 820px;
    margin: 1rem auto 2rem auto;
}

.guide-header-badge {
    display: inline-block;
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    margin-bottom: 0.85rem;
}

.guide-title {
    font-family: var(--font-serif);
    font-size: 2.35rem;
    color: var(--text-main);
    margin-bottom: 0.75rem;
}

.guide-subtitle {
    font-size: 1.08rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Card de Controles (Busca e Abas) */
.guide-controls-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.guide-search-form {
    margin-bottom: 1.25rem;
}

.guide-search-input-wrapper {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.guide-search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    outline: none;
    transition: border-color var(--transition-fast);
}

.guide-search-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(180, 83, 9, 0.12);
}

.btn-search-guide {
    white-space: nowrap;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
}

.btn-clear-search {
    padding: 0.75rem 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-decoration: underline;
}

/* Abas de Navegação das Seções */
.guide-tabs-container {
    overflow-x: auto;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

.guide-tabs {
    display: flex;
    gap: 0.6rem;
    min-width: max-content;
}

.guide-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.1rem;
    border-radius: var(--radius-md);
    background: var(--bg-light);
    color: var(--text-main);
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.guide-tab:hover {
    background: #e2e8f0;
    color: var(--text-main);
}

.guide-tab.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.guide-tab-count {
    background: rgba(0, 0, 0, 0.08);
    color: inherit;
    font-size: 0.75rem;
    padding: 0.15rem 0.5rem;
    border-radius: 12px;
}

.guide-tab.active .guide-tab-count {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

/* Filtros Rápidos por Tipo */
.guide-type-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
}

.type-filter-label {
    font-weight: 600;
    color: var(--text-muted);
    margin-right: 0.25rem;
}

.type-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.85rem;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.type-filter-pill:hover {
    background: #e2e8f0;
    color: var(--text-main);
}

.type-filter-pill.active {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
    font-weight: 600;
}

/* Intro da Seção Ativa */
.guide-section-intro {
    background: #f8fafc;
    border-left: 4px solid var(--accent);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.section-intro-icon {
    font-size: 2.25rem;
    line-height: 1;
}

.section-intro-text h2 {
    font-family: var(--font-serif);
    font-size: 1.45rem;
    color: var(--text-main);
    margin-bottom: 0.4rem;
}

.section-intro-text p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

/* Grid de Cards de Regras */
.guide-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.guide-results-header h3 {
    font-family: var(--font-sans);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.results-badge {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.8rem;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
}

.guide-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 1.5rem;
}

/* Card Individual de Regra */
.guide-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    position: relative;
}

.guide-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Borda indicativa por tipo */
.guide-card.status-badge-permitido {
    border-top: 4px solid #10b981;
}

.guide-card.status-badge-proibido {
    border-top: 4px solid #ef4444;
}

.guide-card.status-badge-punicao {
    border-top: 4px solid #8b5cf6;
}

.guide-card.status-badge-orientacao {
    border-top: 4px solid #0284c7;
}

.guide-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.85rem;
}

/* Badges de Status */
.guide-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
}

.guide-status-badge.status-badge-permitido {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.guide-status-badge.status-badge-proibido {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.guide-status-badge.status-badge-punicao {
    background: #f5f3ff;
    color: #5b21b6;
    border: 1px solid #ddd6fe;
}

.guide-status-badge.status-badge-orientacao {
    background: #f0f9ff;
    color: #075985;
    border: 1px solid #bae6fd;
}

.guide-section-tag {
    font-size: 0.78rem;
    color: var(--text-muted);
    background: var(--bg-light);
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    font-weight: 500;
}

.guide-card-title {
    font-family: var(--font-sans);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.75rem;
    line-height: 1.35;
}

.guide-card-desc {
    color: var(--text-main);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.guide-card-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 0.85rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 0.75rem;
}

.guide-ref-box {
    font-size: 0.88rem;
    color: var(--primary);
    line-height: 1.4;
}

.guide-ref-box strong {
    color: var(--text-main);
}

.btn-copy-rule {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.btn-copy-rule:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.btn-copy-rule.copied {
    background: #10b981;
    color: #ffffff;
    border-color: #10b981;
}

/* Responsividade do Guia */
@media (max-width: 900px) {
    .guide-banner-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.75rem 1.5rem;
    }

    .guide-banner-action {
        width: 100%;
    }

    .btn-guide-cta {
        width: 100%;
        justify-content: center;
    }

    .guide-cards-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .guide-title {
        font-size: 1.85rem;
    }

    .guide-search-input-wrapper {
        flex-direction: column;
    }

    .btn-search-guide {
        width: 100%;
    }
}

/* Links interativos para referências bíblicas */
.bible-ref-link {
    color: var(--accent);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 3px;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    background: rgba(180, 83, 9, 0.08);
    transition: all var(--transition-fast);
    display: inline-block;
    margin: 0.15rem 0.1rem;
}

.bible-ref-link:hover {
    color: #ffffff;
    background: var(--accent);
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(180, 83, 9, 0.3);
    transform: translateY(-1px);
}


