/*
====================================================================
  Original code created by Maia Tech - Bible's Vault
  Website: https://biblesvault.com
  Email: maiatech.services.co@gmail.com
  © 2024 Maia Tech Services - Professional Web Development
====================================================================
*/

:root {
    --gold: #CFAE6D;
    --dark-bg: #0A0A0A;
    --dark-secondary: #1A1A1A;
    --paper-color: #F5E6D3;
    --red-dark: #8B0000;
    --text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

.temple-background {
    background-color: var(--dark-bg);
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path fill="%23111" d="M50 0L100 50L50 100L0 50z"/></svg>');
    background-size: 50px 50px;
    min-height: 100vh;
    font-family: 'Cardo', serif;
    color: var(--gold);
}

.ornamental-border {
    min-height: 100vh;
    padding: 2rem;
    background-image: 
        linear-gradient(var(--dark-bg), var(--dark-bg)),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path fill="none" stroke="%23CFAE6D" stroke-width="1" d="M0,0 L100,0 L100,100 L0,100 Z"/></svg>');
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--gold);

}

.logo-container {
    text-align: center;
}

.logo-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
}

.main-logo {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 10px rgba(207, 174, 109, 0.3));
}

.site-title {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    color: var(--gold);
    text-shadow: var(--text-shadow);
    letter-spacing: 4px;
}

.login-btn {
    padding: 0.5rem 1.5rem;
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    font-family: 'Cinzel', serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-btn:hover {
    background: rgba(207, 174, 109, 0.1);
}

.main-content {
    display: flex;
    gap: 2rem;
    padding: 2rem 0;
}

.book-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.book {
    display: flex;
    max-width: 1000px;
    width: 100%;
    height: 460px;
    perspective: 2000px;
    min-height: 460px;
    max-height: 460px;
}

.page {
    flex: 1;
    background: var(--paper-color);
    padding: 0.2rem 1rem 1.1rem 1rem;
    position: relative;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
    min-height: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
}

.left-page {
    border-radius: 5px 0 0 5px;
    background-image: 
        linear-gradient(to right, rgba(0,0,0,0.1) 0%, transparent 10%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="%23F5E6D3" opacity="0.1"/></svg>');
}

.right-page {
    border-radius: 0 5px 5px 0;
    background-image: 
        linear-gradient(to left, rgba(0,0,0,0.1) 0%, transparent 10%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="%23F5E6D3" opacity="0.1"/></svg>');
}

.page-fold {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 30px;
}

.left-page .page-fold {
    right: 0;
    background: linear-gradient(to right, transparent, rgba(0,0,0,0.1));
}

.right-page .page-fold {
    left: 0;
    background: linear-gradient(to left, transparent, rgba(0,0,0,0.1));
}

.chapter-title {
    font-size: 2.25rem !important;
    margin-bottom: 0.08rem !important;
    margin-top: -0.55rem !important;
    color: #2C1810;
    font-weight: 700;
}

.chapter-number {
    font-size: 1.15rem !important;
    margin-bottom: 0.7rem !important;
    margin-top: 0.2rem !important;
    color: #2C1810 !important;
    font-weight: 600;
}

.verse-text {
    color: #2C1810;
    font-family: 'Cardo', serif;
    font-size: 0.98rem !important;
    line-height: 1.4;
    margin-top: 0.55rem;
    display: flex;
    align-items: flex-start;
}

.verse-content {
    flex: 1 1 auto;
    overflow: visible;
    max-height: 100%;
}

.page-number {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: #2C1810;
    font-family: 'Cinzel', serif;
}

.sidebar {
    width: 300px;
    background: var(--dark-secondary);
    border: 1px solid var(--gold);
    border-radius: 8px;
    padding: 2rem;
}

.sidebar-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--gold);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Cinzel', serif;
}

.menu-item:hover {
    transform: translateX(5px);
}

.menu-item i {
    font-size: 1.2rem;
}

/* Premium Button Animations */
@keyframes rotate-glow {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

@keyframes border-pulse {
    0%, 100% {
        box-shadow: 0 0 15px rgba(207, 174, 109, 0.3);
    }
    50% {
        box-shadow: 0 0 25px rgba(207, 174, 109, 0.5);
    }
}

@keyframes crown-bounce-side {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(-3px);
    }
}

@keyframes particle-float {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(-20px) rotate(360deg);
        opacity: 0;
    }
}

.rotate-glow {
    animation: rotate-glow 3s linear infinite;
}

.animate-border-pulse {
    animation: border-pulse 2s ease-in-out infinite;
}

.crown-bounce-horizontal {
    animation: crown-bounce-side 2s ease-in-out infinite;
    transition: all 0.3s ease;
}

.premium-btn:hover .crown-bounce-horizontal {
    color: rgba(207, 174, 109, 0.9);
    text-shadow: 0 0 10px rgba(207, 174, 109, 0.5);
}

.premium-text-glow {
    text-shadow: 0 0 10px rgba(207, 174, 109, 0.5);
    transition: text-shadow 0.3s ease;
}

.premium-btn {
    position: relative;
    transition: all 0.3s ease;
}

.premium-btn:hover .premium-text-glow {
    text-shadow: 0 0 20px rgba(207, 174, 109, 0.8);
}

.premium-btn::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, #CFAE6D, transparent, #CFAE6D);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.premium-btn:hover::before {
    opacity: 1;
    animation: rotate-glow 3s linear infinite;
}

.particles {
    pointer-events: none;
}

.particles::before,
.particles::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(207, 174, 109, 0.6);
    border-radius: 50%;
    opacity: 0;
}

.premium-btn:hover .particles::before {
    left: 30%;
    animation: particle-float 1.5s ease-out infinite;
}

.premium-btn:hover .particles::after {
    left: 70%;
    animation: particle-float 2s ease-out infinite;
}

/* Adiciona um efeito de reflexo na borda */
.premium-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid transparent;
    background: linear-gradient(45deg, transparent, rgba(207, 174, 109, 0.5), transparent) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.premium-btn:hover::after {
    opacity: 1;
}

/* Efeito de destaque ao clicar */
.premium-btn:active {
    transform: scale(0.98);
    box-shadow: 0 0 30px rgba(207, 174, 109, 0.6);
}

.site-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--gold);
    font-family: 'Cinzel', serif;
}

.footer-nav {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.footer-nav a {
    color: var(--gold);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-nav a:hover {
    text-shadow: 0 0 10px rgba(207, 174, 109, 0.5);
}

.separator {
    color: var(--gold);
    opacity: 0.5;
}

.verse-info {
    text-align: right;
}

.current-date {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.daily-verse {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.verse-reference {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Book Selector Styles */
.book-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, var(--dark-bg) 0%, rgba(43, 29, 14, 0.9) 100%);
    border: 1px solid var(--gold);
    color: var(--gold);
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    text-align: center;
    border-radius: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Efeito de borda decorativa */
.book-btn::after {
    content: '';
    position: absolute;
    inset: -1px;
    border: 1px solid var(--gold);
    border-radius: inherit;
    opacity: 0.3;
    transition: 0.3s;
    pointer-events: none;
}

/* Efeito de brilho deslizante */
.book-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(207, 174, 109, 0.2),
        rgba(207, 174, 109, 0.2),
        transparent
    );
    transition: 0.5s;
}

/* Cantos decorativos */
.book-btn span::before,
.book-btn span::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border: 1px solid var(--gold);
    opacity: 0;
    transition: 0.3s;
}

.book-btn span::before {
    top: 4px;
    left: 4px;
    border-right: none;
    border-bottom: none;
}

.book-btn span::after {
    bottom: 4px;
    right: 4px;
    border-left: none;
    border-top: none;
}

/* Efeitos de Hover */
.book-btn:hover {
    background: linear-gradient(135deg, rgba(43, 29, 14, 0.9) 0%, var(--dark-bg) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(207, 174, 109, 0.2),
                0 0 10px rgba(207, 174, 109, 0.1);
    color: #FFE5B4;
    letter-spacing: 0.5px;
}

.book-btn:hover::before {
    left: 100%;
}

.book-btn:hover::after {
    inset: -2px;
    opacity: 1;
    border-width: 2px;
    border-image: linear-gradient(45deg, var(--gold), transparent) 1;
}

.book-btn:hover span::before,
.book-btn:hover span::after {
    opacity: 1;
    width: 12px;
    height: 12px;
}

/* Efeito de Clique */
.book-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(207, 174, 109, 0.15);
    background: linear-gradient(135deg, var(--dark-bg) 0%, rgba(43, 29, 14, 0.95) 100%);
}

/* Efeito de Pulso ao Carregar */
@keyframes buttonPulse {
    0% { box-shadow: 0 0 0 0 rgba(207, 174, 109, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(207, 174, 109, 0); }
    100% { box-shadow: 0 0 0 0 rgba(207, 174, 109, 0); }
}

.book-btn:focus {
    outline: none;
    animation: buttonPulse 1.5s infinite;
}

/* Estilo para livros especiais */
.book-btn[data-testament="new"] {
    background: linear-gradient(135deg, var(--dark-bg) 0%, rgba(59, 32, 11, 0.9) 100%);
}

.book-btn[data-testament="old"] {
    background: linear-gradient(135deg, rgba(43, 29, 14, 0.9) 0%, var(--dark-bg) 100%);
}

/* Responsividade */
@media (max-width: 640px) {
    .book-btn {
        font-size: 0.8rem;
        padding: 0.5rem;
    }
    
    .book-btn:hover {
        letter-spacing: normal;
    }
    
    .book-btn span::before,
    .book-btn span::after {
        width: 6px;
        height: 6px;
    }
    
    .book-btn:hover span::before,
    .book-btn:hover span::after {
        width: 8px;
        height: 8px;
    }
}

@media (max-width: 1200px) {
    .main-content {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .book {
        height: 500px;
    }
}

/* Estilo para o ícone do coração no botão de doação */
.donate-heart-icon {
    transition: color 0.3s ease;
}

button:hover .donate-heart-icon {
    color: #FF4B4B;
    text-shadow: 0 0 10px rgba(255, 75, 75, 0.5);
}

/* Footer Styles */
footer a {
    position: relative;
    transition: all 0.3s ease;
}

footer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
    transition: width 0.3s ease;
}

footer a:hover::after {
    width: 100%;
}

footer a:hover {
    text-shadow: 0 0 10px rgba(207, 174, 109, 0.3);
}

footer .logo-section img {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

footer .logo-section:hover img {
    opacity: 0.8;
    transform: scale(1.1);
}

footer .verse-info:hover {
    transform: translateY(-2px);
    transition: transform 0.3s ease;
}

/* Adiciona um efeito de brilho sutil nos separadores */
footer .separator {
    position: relative;
    overflow: hidden;
}

footer .separator::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
    animation: shine 2s infinite;
}

@keyframes shine {
    to {
        left: 100%;
    }
}

/* Footer Logo Styles */
footer .logo-section {
    transform: translateY(0);
    transition: transform 0.3s ease;
    z-index: 10;
}

footer .logo-section:hover {
    transform: translateY(-2px);
}

footer .logo-section img {
    transition: all 0.4s ease;
    filter: drop-shadow(0 0 2px rgba(207, 174, 109, 0.2));
}

footer .logo-section:hover img {
    opacity: 0.8;
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 0 4px rgba(207, 174, 109, 0.4));
}

footer .logo-section::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
    transition: width 0.3s ease;
    opacity: 0;
}

footer .logo-section:hover::after {
    width: 100%;
    opacity: 1;
}

/* Setas de navegação centralizadas verticalmente no lado externo de cada página */
#prev-page-btn, #next-page-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    margin-bottom: 0;
    z-index: 10;
}

/* Seta esquerda no canto esquerdo */
#prev-page-btn {
    left: -32px;
}
/* Seta direita no canto direito */
#next-page-btn {
    right: -32px;
}

.header, header {
    margin-top: 10px;
    margin-bottom: 0;
}

.verse-number-highlight {
    display: inline-block;
    min-width: 1.5em;
    font-weight: bold;
    color: #2C1810;
    background: none;
    border-radius: 0;
    margin-right: 0.5em;
    font-size: 1.08em;
    text-align: right;
}

.page-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    position: relative;
}

/* Fade-out decorativo no rodapé das páginas */
.page::after {
    content: '';
    display: block;
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 40px;
    background: linear-gradient(to bottom, transparent, var(--paper-color));
    pointer-events: none;
    z-index: 2;
}

#pdf-select-overlay {
    background: rgba(10, 10, 10, 0.65); /* fundo escuro semi-transparente */
    backdrop-filter: blur(2px);
}

/* Bug Report Button Styles - Cartãozinho que desce do teto */
.bug-report-btn {
    position: fixed;
    top: -20px;
    right: 100px;
    z-index: 1000;
    background: linear-gradient(180deg, #2563eb, #1d4ed8);
    color: white;
    padding: 30px 20px 18px 20px;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease-in-out;
    text-decoration: none;
    font-family: 'Cinzel', serif;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 140px;
    border: 2px solid #1e40af;
    border-top: none;
}

.bug-report-btn:hover {
    top: -15px;
    background: linear-gradient(180deg, #1d4ed8, #1e40af);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(1px);
}

.bug-report-btn i {
    font-size: 16px;
}

.bug-report-btn span {
    white-space: nowrap;
}

/* Animação de brilho perolado para o botão de doação */
@keyframes pearl-shine {
    0%, 100% {
        box-shadow: 0 8px 32px rgba(255,255,255,0.3),
                    inset 0 1px 0 rgba(255,255,255,0.8),
                    inset 0 -1px 0 rgba(0,0,0,0.1),
                    0 0 20px rgba(255,255,255,0.2);
    }
    50% {
        box-shadow: 0 12px 40px rgba(255,255,255,0.5),
                    inset 0 1px 0 rgba(255,255,255,0.9),
                    inset 0 -1px 0 rgba(0,0,0,0.15),
                    0 0 30px rgba(255,255,255,0.4);
    }
}

/* Efeito adicional para o coração no botão de doação */
.donate-heart-icon {
    animation: heartbeat 2s ease-in-out infinite;
    filter: drop-shadow(0 0 4px rgba(244, 63, 94, 0.5));
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* ===== ESTILOS DO CADERNO DE NOTAS ===== */
.notebook-container {
    perspective: 1000px;
    transform-style: preserve-3d;
}

.notebook-cover {
    background: linear-gradient(145deg, #1a1a1a 0%, #0a0a0a 50%, #000000 100%);
    border-radius: 12px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(207, 174, 109, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.8);
    border: 2px solid #CFAE6D;
    position: relative;
    overflow: hidden;
}

.notebook-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: linear-gradient(to bottom, #1a1a1a, #0a0a0a);
    border-bottom: 2px solid #CFAE6D;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.close-notebook-btn {
    padding: 12px 16px;
    background: transparent;
    border: 1px solid rgba(207, 174, 109, 0.3);
    border-radius: 6px;
    color: rgba(207, 174, 109, 0.7);
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-family: 'Cinzel', serif;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.close-notebook-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(207, 174, 109, 0.1), transparent);
    transition: left 0.5s ease;
}

.close-notebook-btn:hover {
    background: rgba(207, 174, 109, 0.1);
    color: #CFAE6D;
    border-color: #CFAE6D;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(207, 174, 109, 0.2);
}

.close-notebook-btn:hover::before {
    left: 100%;
}

.notebook-page {
    padding: 30px;
    background: 
        linear-gradient(90deg, #f5e6d3 0%, #ede0c8 100%),
        repeating-linear-gradient(
            transparent,
            transparent 28px,
            #CFAE6D 28px,
            #CFAE6D 29px
        );
    background-size: 100% 100%, 100% 30px;
    min-height: 500px;
    position: relative;
    box-shadow: inset 0 0 20px rgba(207, 174, 109, 0.1);
}

.paper-lines {
    position: absolute;
    top: 0;
    left: 30px;
    right: 0;
    bottom: 0;
    background: transparent;
    pointer-events: none;
}

.left-margin {
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #CFAE6D, #B8860B);
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
}

.notebook-textarea {
    width: 100%;
    height: 350px;
    background: transparent;
    border: none;
    outline: none;
    resize: none;
    font-family: 'Cardo', serif;
    font-size: 16px;
    line-height: 30px;
    color: #2c1810;
    padding: 15px 20px 15px 40px;
    z-index: 1;
    position: relative;
}

.notebook-textarea::placeholder {
    color: rgba(44, 24, 16, 0.4);
    font-style: italic;
}

.notebook-textarea:focus {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.notebook-footer {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid rgba(207, 174, 109, 0.2);
    position: relative;
}

.notebook-footer .flex {
    gap: 20px;
    align-items: center;
    justify-content: space-between;
}

.clear-btn, .save-btn {
    font-family: 'Cinzel', serif;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 13px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-width: 120px;
}

.clear-btn {
    padding: 14px 24px;
    background: linear-gradient(135deg, #CFAE6D 0%, #B8860B 100%);
    border: 1px solid #B8860B;
    color: #0a0a0a;
    box-shadow: 
        0 4px 15px rgba(207, 174, 109, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.clear-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.clear-btn:hover {
    background: linear-gradient(135deg, #B8860B 0%, #CFAE6D 100%);
    transform: translateY(-2px);
    box-shadow: 
        0 8px 25px rgba(207, 174, 109, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 0 0 1px rgba(207, 174, 109, 0.5);
}

.clear-btn:hover::before {
    left: 100%;
}

.save-btn {
    padding: 14px 28px;
    background: linear-gradient(135deg, #CFAE6D 0%, #B8860B 100%);
    border: 1px solid #B8860B;
    color: #0a0a0a;
    font-weight: 600;
    box-shadow: 
        0 4px 15px rgba(207, 174, 109, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.save-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.save-btn:hover {
    background: linear-gradient(135deg, #B8860B 0%, #CFAE6D 100%);
    transform: translateY(-2px);
    box-shadow: 
        0 8px 25px rgba(207, 174, 109, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 0 0 1px rgba(207, 174, 109, 0.5);
}

.save-btn:hover::before {
    left: 100%;
}

.save-btn:active, .clear-btn:active {
    transform: translateY(0);
}

.save-indicator {
    text-align: center;
    margin-top: 20px;
    color: #155724;
    font-family: 'Cinzel', serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    opacity: 0;
    transition: all 0.3s ease;
    background: rgba(40, 167, 69, 0.1);
    padding: 12px 20px;
    border-radius: 6px;
    border: 1px solid rgba(40, 167, 69, 0.3);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.1);
}

/* Efeito de sombra na página */
.notebook-page::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 20px;
    background: linear-gradient(to left, rgba(0, 0, 0, 0.1), transparent);
    pointer-events: none;
}

/* Animação de abertura do caderno */
@keyframes notebook-open {
    0% {
        transform: rotateY(-15deg) scale(0.9);
        opacity: 0;
    }
    100% {
        transform: rotateY(0deg) scale(1);
        opacity: 1;
    }
}

.notebook-container {
    animation: notebook-open 0.5s ease-out;
}

/* ===== ESTILOS DO MODAL DE DOAÇÃO ===== */
.donation-container {
    perspective: 1000px;
    transform-style: preserve-3d;
    animation: donation-appear 0.5s ease-out;
    min-height: fit-content;
    align-self: center;
    z-index: 51;
}

@keyframes donation-appear {
    0% {
        transform: scale(0.8) rotateY(-10deg);
        opacity: 0;
    }
    100% {
        transform: scale(1) rotateY(0deg);
        opacity: 1;
    }
}

.donation-box {
    background: linear-gradient(145deg, #1a1a1a 0%, #0a0a0a 100%);
    border: 2px solid #CFAE6D;
    border-radius: 16px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(207, 174, 109, 0.3),
        0 0 30px rgba(207, 174, 109, 0.1);
    overflow: visible;
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    min-height: fit-content;
}

.donation-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #CFAE6D, transparent);
    opacity: 0.7;
}

.donation-header {
    padding: 20px;
    background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
    border-bottom: 1px solid rgba(207, 174, 109, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.donation-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #CFAE6D, #B8860B);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(207, 174, 109, 0.3);
    animation: heartbeat 2s ease-in-out infinite;
}

.donation-icon i {
    font-size: 20px;
    color: #0a0a0a;
}

.close-donation-btn {
    padding: 12px;
    background: transparent;
    border: 1px solid rgba(207, 174, 109, 0.3);
    border-radius: 8px;
    color: rgba(207, 174, 109, 0.7);
    transition: all 0.3s ease;
    cursor: pointer;
}

.close-donation-btn:hover {
    background: rgba(207, 174, 109, 0.1);
    color: #CFAE6D;
    border-color: #CFAE6D;
    transform: scale(1.05);
}

.donation-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.donation-message {
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(207, 174, 109, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(207, 174, 109, 0.2);
}

.donation-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.donation-option {
    background: linear-gradient(135deg, #1a1a1a, #0f0f0f);
    border: 2px solid rgba(207, 174, 109, 0.3);
    border-radius: 12px;
    padding: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.donation-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(207, 174, 109, 0.1), transparent);
    transition: left 0.5s ease;
}

.donation-option:hover {
    border-color: #CFAE6D;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(207, 174, 109, 0.2);
}

.donation-option:hover::before {
    left: 100%;
}

.monthly-donation {
    border-color: #CFAE6D;
    box-shadow: 0 8px 25px rgba(207, 174, 109, 0.15);
}

.option-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 8px;
}

.option-icon {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #CFAE6D, #B8860B);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0a0a0a;
    font-size: 16px;
}

.option-title {
    font-family: 'Cinzel', serif;
    font-size: 16px;
    font-weight: 600;
    color: #CFAE6D;
    flex: 1;
    margin-left: 12px;
}

.recommended-badge {
    background: linear-gradient(135deg, #CFAE6D, #B8860B);
    color: #0a0a0a;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Cinzel', serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(207, 174, 109, 0.3);
}

.option-price {
    text-align: center;
    margin-bottom: 15px;
}

.currency {
    font-size: 24px;
    color: #CFAE6D;
    font-weight: 600;
}

.amount {
    font-size: 40px;
    font-weight: 700;
    color: #CFAE6D;
    font-family: 'Cinzel', serif;
}

.period {
    font-size: 18px;
    color: rgba(207, 174, 109, 0.7);
    font-weight: 500;
}

.amount-text {
    font-size: 24px;
    color: #CFAE6D;
    font-weight: 600;
    font-family: 'Cinzel', serif;
}

.option-description {
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Cardo', serif;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 15px;
    text-align: center;
}

.donation-btn {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #CFAE6D, #B8860B);
    border: none;
    border-radius: 8px;
    color: #0a0a0a;
    font-family: 'Cinzel', serif;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(207, 174, 109, 0.3);
    position: relative;
    overflow: hidden;
}

.donation-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.donation-btn:hover {
    background: linear-gradient(135deg, #B8860B, #CFAE6D);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(207, 174, 109, 0.4);
}

.donation-btn:hover::before {
    left: 100%;
}

.donation-btn:active {
    transform: translateY(0);
}

.donation-footer {
    text-align: center;
    padding: 15px 0;
    border-top: 1px solid rgba(207, 174, 109, 0.2);
    margin-top: auto;
}

/* Responsividade */
@media (max-width: 768px) {
    .donation-options {
        grid-template-columns: 1fr;
    }
    
    .donation-header {
        padding: 20px;
    }
    
    .donation-content {
        padding: 15px;
    }
    
    .amount {
        font-size: 36px;
    }
    
    .donation-container {
        margin: 10px;
        max-height: 90vh;
    }
    
    .donation-box {
        border-radius: 12px;
    }
}

/* Animação de fechamento */
@keyframes donation-disappear {
    0% {
        transform: scale(1) rotateY(0deg);
        opacity: 1;
    }
    100% {
        transform: scale(0.8) rotateY(10deg);
        opacity: 0;
    }
}

.donation-container.closing {
    animation: donation-disappear 0.3s ease-in forwards;
}

/* Animação de fechamento do caderno */
@keyframes notebook-close {
    0% {
        transform: rotateY(0deg) scale(1);
        opacity: 1;
    }
    100% {
        transform: rotateY(-15deg) scale(0.9);
        opacity: 0;
    }
}

.notebook-container.closing {
    animation: notebook-close 0.3s ease-in forwards;
}

/* Efeitos de escritura na página */
.notebook-textarea:focus {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(207, 174, 109, 0.3);
}

/* Textura sutil no papel */
.notebook-page::after {
    content: '';
    position: absolute;
    top: 0;
    left: 60px;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(207, 174, 109, 0.05) 2px, transparent 2px),
        radial-gradient(circle at 80% 70%, rgba(207, 174, 109, 0.05) 1px, transparent 1px),
        radial-gradient(circle at 40% 80%, rgba(207, 174, 109, 0.03) 1px, transparent 1px);
    background-size: 50px 50px, 30px 30px, 70px 70px;
    pointer-events: none;
}

/* Maia Tech Logo Styling */
.maia-tech-logo-container {
    transition: all 0.3s ease;
    opacity: 0.8;
}

.maia-tech-logo-container:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.maia-tech-logo-container img {
    transition: all 0.3s ease;
    opacity: 0.7;
}

.maia-tech-logo-container:hover img {
    opacity: 1;
    filter: brightness(1.1) drop-shadow(0 0 6px rgba(255, 255, 255, 0.4));
}

.maia-tech-logo-container span {
    transition: all 0.3s ease;
    font-weight: 400;
    opacity: 0.6;
    letter-spacing: 0.3px;
}

.maia-tech-logo-container:hover span {
    opacity: 0.9;
    color: #9ca3af;
    text-shadow: 0 0 4px rgba(255, 255, 255, 0.1);
}

/* Responsividade para logo Maia Tech */
@media (max-width: 768px) {
    .maia-tech-logo-container img {
        max-width: 60px;
    }
    
    .maia-tech-logo-container div {
        font-size: 0.6rem;
    }
}

/* Estilo para botões de valor selecionados na doação */
.amount-selected {
    background: rgba(207, 174, 109, 0.4) !important;
    border-color: #CFAE6D !important;
    box-shadow: 0 0 15px rgba(207, 174, 109, 0.5) !important;
    transform: scale(1.05) !important;
    transition: all 0.3s ease !important;
}

.amount-selected:hover {
    background: rgba(207, 174, 109, 0.5) !important;
    box-shadow: 0 0 20px rgba(207, 174, 109, 0.7) !important;
}

/* ===== ESTILOS DO SISTEMA DE LEITURA POR IA ===== */

.ai-reader-container {
    animation: none; /* Remove animação modal */
}

#ai-reading-modal {
    /* Posicionamento fixo no lado direito */
    background: rgba(0, 0, 0, 0.1); /* Fundo muito sutil, quase transparente */
    backdrop-filter: none; /* Remove blur do fundo */
}

#ai-reading-modal.translate-x-full {
    transform: translateX(100%);
}

/* Animação de slide in/out */
#ai-reading-modal {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ai-reader-container {
    /* Garantir que ocupe toda a altura */
    min-height: 100vh;
    /* Sombra mais suave para não distrair */
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
}

/* Cabeçalho mais compacto */
.ai-reader-header {
    /* Já está bem definido no HTML */
}

/* Melhorar o destaque dos versículos sendo lidos */
.verse-being-read {
    background: linear-gradient(135deg, rgba(207, 174, 109, 0.3), rgba(255, 215, 0, 0.2)) !important;
    border-left: 4px solid #CFAE6D !important;
    padding-left: 12px !important;
    box-shadow: 0 0 15px rgba(207, 174, 109, 0.4) !important;
    border-radius: 8px !important;
    animation: verse-highlight-pulse 2s ease-in-out infinite !important;
    transform: translateX(5px) !important;
    transition: all 0.5s ease !important;
}

@keyframes verse-highlight-pulse {
    0%, 100% {
        box-shadow: 0 0 15px rgba(207, 174, 109, 0.4);
    }
    50% {
        box-shadow: 0 0 25px rgba(207, 174, 109, 0.7);
    }
}

/* Ajustar layout da página quando IA estiver ativa */
body:has(#ai-reading-modal:not(.translate-x-full)) main {
    margin-right: 320px; /* Dar espaço para a sidebar da IA */
    transition: margin-right 0.3s ease;
}

/* Esconder botão report bug quando IA estiver ativa */
body:has(#ai-reading-modal:not(.translate-x-full)) .bug-report-btn,
.ai-active .bug-report-btn {
    display: none !important;
}

/* Fallback para navegadores que não suportam :has() */
.ai-active main {
    margin-right: 320px !important;
    transition: margin-right 0.3s ease !important;
}

/* Melhorar os controles */
.control-btn {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

.control-btn:hover {
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.control-btn:active {
    transform: translateY(0) scale(1.05);
}

.primary-btn {
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), 0 0 0 rgba(34, 197, 94, 0.4);
    }
    50% {
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 20px rgba(34, 197, 94, 0.6);
    }
}

/* Indicadores de estado mais visíveis */
#reading-indicator.reading {
    background: linear-gradient(45deg, #22c55e, #16a34a);
    animation: reading-indicator-pulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.6);
}

#reading-indicator.paused {
    background: linear-gradient(45deg, #f59e0b, #d97706);
    animation: none;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.6);
}

#reading-indicator.stopped {
    background: #6b7280;
    animation: none;
}

@keyframes reading-indicator-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.8;
    }
}

/* Status ativo */
.reading-status.active {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(16, 163, 74, 0.05));
    border-color: rgba(34, 197, 94, 0.3);
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.1);
}

/* Ajustes responsivos para a sidebar IA */
@media (max-width: 1400px) {
    #ai-reading-modal {
        width: 280px;
    }
    
    body:has(#ai-reading-modal:not(.translate-x-full)) main,
    .ai-active main {
        margin-right: 280px !important;
    }
}

@media (max-width: 1200px) {
    #ai-reading-modal {
        width: 260px;
    }
    
    body:has(#ai-reading-modal:not(.translate-x-full)) main,
    .ai-active main {
        margin-right: 260px !important;
    }
    
    .ai-reader-content {
        padding: 12px;
    }
    
    .control-btn {
        width: 36px;
        height: 36px;
    }
    
    .primary-btn {
        width: 44px;
        height: 44px;
    }
}

/* Melhorias para o seletor de vozes */
#voice-selector {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border: 1px solid #CFAE6D;
    color: #CFAE6D;
    padding: 8px 12px;
    border-radius: 8px;
    font-family: 'Cardo', serif;
    font-size: 13px;
    transition: all 0.3s ease;
}

#voice-selector:focus {
    outline: none;
    border-color: #CFAE6D;
    box-shadow: 0 0 0 2px rgba(207, 174, 109, 0.2);
    background: linear-gradient(135deg, #2a2a2a 0%, #3a3a3a 100%);
}

#voice-selector option {
    background: #1a1a1a;
    color: #CFAE6D;
    padding: 8px;
}

/* Melhorias para os controles de navegação de versículos */
.control-btn {
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.control-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.control-btn:active::before {
    width: 100%;
    height: 100%;
}

/* Melhoria no feedback visual dos botões de navegação */
#ai-prev-verse-btn, #ai-next-verse-btn {
    transition: all 0.2s ease;
}

#ai-prev-verse-btn:hover, #ai-next-verse-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

#ai-prev-verse-btn:active, #ai-next-verse-btn:active {
    transform: scale(0.95);
}

/* Indicador visual para botões que não funcionam */
.control-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.control-btn:disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Botão de sugestão de tradução */
#suggest-translation-btn {
    border: none;
    background: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#suggest-translation-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(207, 174, 109, 0.1), transparent);
    transition: left 0.6s ease;
}

#suggest-translation-btn:hover::before {
    left: 100%;
}

#suggest-translation-btn:hover {
    transform: translateX(2px);
    background: rgba(207, 174, 109, 0.08);
    border-radius: 6px;
}

#suggest-translation-btn .fas.fa-plus-circle {
    transition: transform 0.3s ease;
}

#suggest-translation-btn:hover .fas.fa-plus-circle {
    transform: rotate(90deg) scale(1.1);
}

#suggest-translation-btn .fas.fa-external-link-alt {
    transition: all 0.3s ease;
    transform: translateY(1px);
}

#suggest-translation-btn:hover .fas.fa-external-link-alt {
    opacity: 0.8;
    transform: translateY(0px) scale(1.1);
}

/* ===== LOGO CLICÁVEL NO HEADER ===== */
.site-branding {
    text-decoration: none;
}

/* Garante que o link não tenha decoração */
.site-branding:visited,
.site-branding:link {
    text-decoration: none;
    color: inherit;
}