/* ==========================================
   Bíblia Pública - Estilos Personalizados
   ========================================== */

/* Variáveis CSS */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --success-color: #059669;
    --success-dark: #047857;
    --warning-color: #d97706;
    --info-color: #0284c7;
    --purple-color: #7c3aed;
    --text-color: #374151;
    --text-muted: #6b7280;
    --bg-light: #f9fafb;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Fontes e Typography */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

.display-4 {
    font-weight: 700;
    letter-spacing: -0.025em;
}

.lead {
    font-size: 1.125rem;
    font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
}

/* Layout Principal */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(255,255,255,0.05)" points="0,0 1000,300 1000,1000 0,700"/></svg>');
    pointer-events: none;
}

/* Cards Personalizados */
.card {
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

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

.card-header {
    border-radius: 12px 12px 0 0 !important;
    border-bottom: none;
    padding: 1.25rem;
}

.card-body {
    padding: 1.5rem;
}

/* Botões Personalizados */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 0.5rem 1rem;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

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

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

.btn-success {
    background-color: var(--success-color);
    border-color: var(--success-color);
}

.btn-success:hover {
    background-color: var(--success-dark);
    border-color: var(--success-dark);
    transform: translateY(-1px);
}

/* Quick Access Cards */
.quick-access-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.quick-access-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.quick-access-card .card-body {
    padding: 2rem 1.5rem;
}

/* Livro Cards */
.livro-card {
    transition: all 0.3s ease;
}

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

/* Capítulo Buttons */
.capitulo-btn {
    transition: all 0.3s ease;
    height: 80px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

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

/* Versículo Styling */
.versiculo-container {
    padding: 0.75rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.versiculo-container:hover {
    background-color: var(--bg-light);
}

.versiculo-destacado {
    background-color: #fef3c7;
    border-left: 4px solid var(--warning-color);
    padding-left: 1rem;
}

.versiculo-numero {
    font-size: 0.875rem;
    min-width: 2rem;
    text-align: center;
    background-color: var(--bg-light);
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.versiculo-texto {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 0;
}

/* Reading Content */
.reading-content {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 8px;
}

/* Navigation */
.navbar-brand {
    font-size: 1.25rem;
    font-weight: 700;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    margin: 0 0.25rem;
    transition: all 0.2s ease;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Footer */
.footer {
    margin-top: 3rem;
    padding: 2rem 0;
    background-color: var(--bg-light) !important;
    border-top: 1px solid var(--border-color);
}

/* Breadcrumbs */
.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin-bottom: 1rem;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Form Controls */
.form-select {
    border-radius: 6px;
    border-color: var(--border-color);
    transition: all 0.2s ease;
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

/* Custom Colors for Bootstrap */
.bg-purple {
    background-color: var(--purple-color) !important;
}

.btn-purple {
    background-color: var(--purple-color);
    border-color: var(--purple-color);
    color: white;
}

.btn-purple:hover {
    background-color: #6d28d9;
    border-color: #6d28d9;
    color: white;
}

.btn-outline-purple {
    color: var(--purple-color);
    border-color: var(--purple-color);
}

.btn-outline-purple:hover {
    background-color: var(--purple-color);
    border-color: var(--purple-color);
    color: white;
}

.text-purple {
    color: var(--purple-color) !important;
}

/* Testamento Sections */
.testamento-section {
    transition: opacity 0.3s ease;
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 0.5em 0.75em;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate__fadeIn {
    animation: fadeIn 0.5s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 1rem !important;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .quick-access-card .card-body {
        padding: 1.5rem 1rem;
    }
    
    .reading-content {
        padding: 1rem;
    }
    
    .versiculo-texto {
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    .btn-group .btn {
        font-size: 0.8rem;
        padding: 0.375rem 0.5rem;
    }
    
    .capitulo-btn {
        height: 60px;
        font-size: 0.9rem;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .breadcrumb {
        font-size: 0.9rem;
    }
}

/* Print Styles */
@media print {
    .navbar, .footer, .breadcrumb, .btn, .form-select {
        display: none !important;
    }
    
    .reading-content {
        box-shadow: none;
        border: none;
        padding: 0;
    }
    
    .versiculo-container {
        border: none;
        padding: 0.25rem 0;
    }
    
    .versiculo-numero {
        background-color: transparent;
        font-weight: bold;
    }
}

/* Dark Mode Support */
[data-theme="dark"] {
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --success-color: #10b981;
    --success-dark: #059669;
    --warning-color: #f59e0b;
    --info-color: #06b6d4;
    --purple-color: #8b5cf6;
    --text-color: #f9fafb;
    --text-muted: #9ca3af;
    --bg-light: #1f2937;
    --border-color: #374151;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] body {
    background-color: #111827;
    color: var(--text-color);
}

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

[data-theme="dark"] .card-header {
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
}

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

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

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

[data-theme="dark"] .reading-content {
    background-color: var(--bg-light);
}

[data-theme="dark"] .versiculo-container:hover {
    background-color: #374151;
}

[data-theme="dark"] .versiculo-destacado {
    background-color: #451a03;
    border-left-color: var(--warning-color);
}

[data-theme="dark"] .versiculo-numero {
    background-color: #374151;
    color: var(--text-muted);
}

[data-theme="dark"] .navbar {
    background-color: #1f2937 !important;
}

[data-theme="dark"] .footer {
    background-color: var(--bg-light) !important;
    border-top-color: var(--border-color);
}

[data-theme="dark"] .hero-section {
    background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%);
}

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

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

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

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

[data-theme="dark"] .btn-outline-secondary {
    color: #6b7280;
    border-color: #6b7280;
}

[data-theme="dark"] .btn-outline-secondary:hover {
    background-color: #6b7280;
    border-color: #6b7280;
    color: white;
}

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

[data-theme="dark"] .form-select:focus {
    background-color: var(--bg-light);
    border-color: var(--primary-color);
    color: var(--text-color);
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
}

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

[data-theme="dark"] .form-control:focus {
    background-color: var(--bg-light);
    border-color: var(--primary-color);
    color: var(--text-color);
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
}

[data-theme="dark"] .breadcrumb-item a {
    color: var(--primary-color);
}

[data-theme="dark"] .breadcrumb-item a:hover {
    color: var(--primary-dark);
}

[data-theme="dark"] .alert-warning {
    background-color: #451a03;
    border-color: #92400e;
    color: #fbbf24;
}

[data-theme="dark"] .alert-info {
    background-color: #164e63;
    border-color: #0891b2;
    color: #06b6d4;
}

[data-theme="dark"] .badge {
    color: white;
}

[data-theme="dark"] .bg-light {
    background-color: var(--bg-light) !important;
}

[data-theme="dark"] .text-muted {
    color: var(--text-muted) !important;
}

/* Garantir que todos os textos dentro de cards sejam afetados */
[data-theme="dark"] .card h1,
[data-theme="dark"] .card h2,
[data-theme="dark"] .card h3,
[data-theme="dark"] .card h4,
[data-theme="dark"] .card h5,
[data-theme="dark"] .card h6 {
    color: var(--text-color);
}

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

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

[data-theme="dark"] .card small {
    color: var(--text-muted);
}

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

[data-theme="dark"] .card .blockquote-footer {
    color: var(--text-muted);
}

[data-theme="dark"] .card cite {
    color: var(--text-muted);
}

/* Hero section no modo escuro */
[data-theme="dark"] .hero-section h1,
[data-theme="dark"] .hero-section h2,
[data-theme="dark"] .hero-section h3,
[data-theme="dark"] .hero-section h4,
[data-theme="dark"] .hero-section h5,
[data-theme="dark"] .hero-section h6,
[data-theme="dark"] .hero-section p {
    color: white !important;
}

/* Textos gerais */
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
    color: var(--text-color);
}

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

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

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

[data-theme="dark"] cite {
    color: var(--text-muted);
}

[data-theme="dark"] small {
    color: var(--text-muted);
}

[data-theme="dark"] .border-top {
    border-top-color: var(--border-color) !important;
}

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

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

[data-theme="dark"] .dropdown-item:hover {
    background-color: #374151;
    color: var(--text-color);
}

/* Padronização completa de botões em modo escuro */
[data-theme="dark"] .btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
}

[data-theme="dark"] .btn-primary:hover,
[data-theme="dark"] .btn-primary:focus,
[data-theme="dark"] .btn-primary:active,
[data-theme="dark"] .btn-primary.active {
    background-color: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
    color: white !important;
}

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

[data-theme="dark"] .btn-secondary:hover,
[data-theme="dark"] .btn-secondary:focus,
[data-theme="dark"] .btn-secondary:active,
[data-theme="dark"] .btn-secondary.active {
    background-color: #4b5563 !important;
    border-color: #4b5563 !important;
    color: white !important;
}

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

[data-theme="dark"] .btn-success:hover,
[data-theme="dark"] .btn-success:focus,
[data-theme="dark"] .btn-success:active,
[data-theme="dark"] .btn-success.active {
    background-color: #059669 !important;
    border-color: #059669 !important;
    color: white !important;
}

/* Força cor branca para todos os elementos dentro dos botões */
[data-theme="dark"] .btn-primary *,
[data-theme="dark"] .btn-primary i,
[data-theme="dark"] .btn-primary span,
[data-theme="dark"] .btn-secondary *,
[data-theme="dark"] .btn-secondary i,
[data-theme="dark"] .btn-secondary span,
[data-theme="dark"] .btn-success *,
[data-theme="dark"] .btn-success i,
[data-theme="dark"] .btn-success span {
    color: white !important;
}

[data-theme="dark"] .collapse .card-body {
    background-color: #111827;
    border-top-color: var(--border-color);
}

[data-theme="dark"] .progress {
    background-color: #374151;
}

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

/* Labels e outros elementos de texto */
[data-theme="dark"] label {
    color: var(--text-color);
}

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

[data-theme="dark"] .form-check-label {
    color: var(--text-color);
}

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

/* Listas */
[data-theme="dark"] ul,
[data-theme="dark"] ol,
[data-theme="dark"] li {
    color: var(--text-color);
}

/* Spans e divs */
[data-theme="dark"] span {
    color: inherit;
}

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

/* Breadcrumbs */
[data-theme="dark"] .breadcrumb-item {
    color: var(--text-muted);
}

[data-theme="dark"] .breadcrumb-item.active {
    color: var(--text-color);
}

/* Navegação */
[data-theme="dark"] .nav-link {
    color: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .nav-link:hover {
    color: white;
}

/* Botões especiais */
[data-theme="dark"] .capitulo-btn {
    color: var(--text-color);
}

[data-theme="dark"] .capitulo-btn:hover {
    color: var(--text-color);
}

/* Badges no modo escuro */
[data-theme="dark"] .badge.bg-secondary {
    background-color: #6b7280 !important;
    color: white;
}

[data-theme="dark"] .badge.bg-success-subtle {
    background-color: #064e3b !important;
    color: #10b981;
}

[data-theme="dark"] .badge.bg-light {
    background-color: #374151 !important;
    color: var(--text-color) !important;
}

[data-theme="dark"] .badge.text-dark {
    color: var(--text-color) !important;
}

/* Versículos */
[data-theme="dark"] .versiculo-texto {
    color: var(--text-color);
}

/* Containers gerais */
[data-theme="dark"] .container,
[data-theme="dark"] .row,
[data-theme="dark"] .col,
[data-theme="dark"] .col-12,
[data-theme="dark"] .col-md-6,
[data-theme="dark"] .col-lg-4 {
    color: var(--text-color);
}

/* Modal support */
[data-theme="dark"] .modal-content {
    background-color: var(--bg-light);
    color: var(--text-color);
    border-color: var(--border-color);
}

[data-theme="dark"] .modal-header {
    border-bottom-color: var(--border-color);
}

[data-theme="dark"] .modal-footer {
    border-top-color: var(--border-color);
}

/* Theme Toggle Styles */
.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

#themeToggle {
    cursor: pointer;
}

#themeIcon {
    transition: transform 0.3s ease;
}

[data-theme="dark"] #themeIcon::before {
    content: "\f185"; /* sun icon */
}

/* Smooth transitions for theme switching */
body, .card, .navbar, .footer, .form-select, .form-control, .btn {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Regra catch-all para garantir que todos os elementos de texto sejam afetados */
[data-theme="dark"] * {
    color: inherit;
}

[data-theme="dark"] *:not(.text-white):not(.text-primary):not(.text-success):not(.text-danger):not(.text-warning):not(.text-info):not(.bg-primary):not(.bg-success):not(.bg-danger):not(.bg-warning):not(.bg-info):not(.navbar-brand):not(.btn):not(.badge):not(.alert) {
    color: var(--text-color);
}

/* Sobrescrever especificamente alguns casos problemáticos */
[data-theme="dark"] .card * {
    color: var(--text-color);
}

[data-theme="dark"] .card .text-muted {
    color: var(--text-muted) !important;
}

[data-theme="dark"] .card .badge {
    color: white;
}

/* Correções específicas para botões no modo escuro */
[data-theme="dark"] .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white !important;
}

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

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

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

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

[data-theme="dark"] .btn-warning:hover {
    background-color: #d97706;
    border-color: #d97706;
    color: white !important;
}

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

[data-theme="dark"] .btn-info:hover {
    background-color: #0891b2;
    border-color: #0891b2;
    color: white !important;
}

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

[data-theme="dark"] .btn-purple:hover {
    background-color: #7c3aed;
    border-color: #7c3aed;
    color: white !important;
}

[data-theme="dark"] .btn-secondary {
    background-color: #6b7280;
    border-color: #6b7280;
    color: white !important;
}

[data-theme="dark"] .btn-secondary:hover {
    background-color: #4b5563;
    border-color: #4b5563;
    color: white !important;
}

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

[data-theme="dark"] .btn-light:hover {
    background-color: #374151;
    border-color: #374151;
    color: var(--text-color) !important;
}

[data-theme="dark"] .btn-outline-light {
    color: var(--text-color) !important;
    border-color: var(--border-color);
}

[data-theme="dark"] .btn-outline-light:hover {
    background-color: var(--bg-light);
    border-color: var(--border-color);
    color: var(--text-color) !important;
}

/* ==========================================
   Sistema de Compartilhamento
   ========================================== */

/* Botões de Compartilhamento */
.share-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background-color: transparent;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}

.share-button:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.share-button.share-button-sm {
    padding: 0.375rem 0.5rem;
    font-size: 0.8rem;
}

.share-button.share-button-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.share-button.share-button-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
}

/* Share Dropdown */
.share-dropdown {
    position: relative;
    display: inline-block;
}

.share-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 1000;
    min-width: 200px;
    padding: 0.5rem 0;
    margin: 0.125rem 0 0;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    display: none;
}

.share-dropdown.show .share-dropdown-menu {
    display: block;
}

.share-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.5rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    background: none;
    text-align: left;
    transition: background-color 0.2s ease;
}

.share-dropdown-item:hover {
    background-color: var(--bg-light);
    color: var(--text-color);
}

.share-dropdown-item i {
    width: 1.25rem;
    text-align: center;
    font-size: 1rem;
}

/* Plataformas de Rede Social */
.share-platform-whatsapp { color: #25D366; }
.share-platform-facebook { color: #1877F2; }
.share-platform-twitter { color: #000000; }
.share-platform-linkedin { color: #0A66C2; }
.share-platform-copy { color: var(--text-muted); }

/* Modal de Compartilhamento */
.share-modal .modal-header {
    border-bottom: 1px solid var(--border-color);
}

.share-modal .modal-footer {
    border-top: 1px solid var(--border-color);
}

.share-content-preview {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.share-content-preview .share-title {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.share-content-preview .share-text {
    font-style: italic;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.share-content-preview .share-reference {
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Botões de Rede Social no Modal */
.share-platforms {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.share-platform-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: transparent;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.share-platform-btn:hover {
    background-color: var(--bg-light);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.share-platform-btn.whatsapp {
    border-color: #25D366;
    color: #25D366;
}

.share-platform-btn.whatsapp:hover {
    background-color: #25D366;
    color: white;
}

.share-platform-btn.facebook {
    border-color: #1877F2;
    color: #1877F2;
}

.share-platform-btn.facebook:hover {
    background-color: #1877F2;
    color: white;
}

.share-platform-btn.twitter {
    border-color: #000000;
    color: #000000;
}

.share-platform-btn.twitter:hover {
    background-color: #000000;
    color: white;
}

.share-platform-btn.linkedin {
    border-color: #0A66C2;
    color: #0A66C2;
}

.share-platform-btn.linkedin:hover {
    background-color: #0A66C2;
    color: white;
}

/* Botões de Cópia */
.share-copy-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.share-copy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

/* Card Actions (para versículos individuais) */
.card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.card-actions-left,
.card-actions-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Versículo Share Button */
.versiculo-share {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.versiculo-container:hover .versiculo-share {
    opacity: 1;
}

/* Responsivo */
@media (max-width: 576px) {
    .share-platforms {
        grid-template-columns: 1fr;
    }
    
    .share-copy-actions {
        grid-template-columns: 1fr;
    }
    
    .share-dropdown-menu {
        left: 0;
        right: auto;
        min-width: 180px;
    }
    
    .card-actions {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }
    
    .card-actions-left,
    .card-actions-right {
        justify-content: center;
    }
}

/* Dark Mode Support para Compartilhamento */
[data-theme="dark"] .share-button {
    border-color: var(--border-color);
    color: var(--text-muted);
}

[data-theme="dark"] .share-button:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

[data-theme="dark"] .share-dropdown-menu {
    background-color: var(--bg-light);
    border-color: var(--border-color);
}

[data-theme="dark"] .share-dropdown-item {
    color: var(--text-color);
}

[data-theme="dark"] .share-dropdown-item:hover {
    background-color: #374151;
    color: var(--text-color);
}

[data-theme="dark"] .share-content-preview {
    background-color: #374151;
    border-color: var(--border-color);
}

[data-theme="dark"] .share-platform-btn {
    border-color: var(--border-color);
    color: var(--text-color);
}

[data-theme="dark"] .share-platform-btn:hover {
    background-color: var(--bg-light);
}

[data-theme="dark"] .share-copy-btn {
    background-color: #374151;
    border-color: var(--border-color);
    color: var(--text-color);
}

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

[data-theme="dark"] .card-actions {
    border-top-color: var(--border-color);
}

/* Auto Dark Mode Support - aplicado apenas quando não há tema definido */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) {
        --primary-color: #3b82f6;
        --primary-dark: #2563eb;
        --success-color: #10b981;
        --success-dark: #059669;
        --warning-color: #f59e0b;
        --info-color: #06b6d4;
        --purple-color: #8b5cf6;
        --text-color: #f9fafb;
        --text-muted: #9ca3af;
        --bg-light: #1f2937;
        --border-color: #374151;
        --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
        --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
        --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    }
    
    body:not([data-theme]) {
        background-color: #111827;
        color: var(--text-color);
    }
    
    /* Aplicar estilos de modo escuro quando não há tema definido */
    :not([data-theme]) .card {
        background-color: var(--bg-light);
        border-color: var(--border-color);
        color: var(--text-color);
    }
    
    :not([data-theme]) .navbar {
        background-color: #1f2937 !important;
    }
    
    :not([data-theme]) .footer {
        background-color: var(--bg-light) !important;
        border-top-color: var(--border-color);
    }
    
    :not([data-theme]) .form-select {
        background-color: var(--bg-light);
        border-color: var(--border-color);
        color: var(--text-color);
    }
    
    :not([data-theme]) h1,
    :not([data-theme]) h2,
    :not([data-theme]) h3,
    :not([data-theme]) h4,
    :not([data-theme]) h5,
    :not([data-theme]) h6,
    :not([data-theme]) p {
        color: var(--text-color);
    }
}