@charset "UTF-8";

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #0056b3;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

.nav-links a:hover {
    color: #0056b3;
}

main {
    flex: 1;
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 1rem;
    margin-top: auto;
}

/* Bible Reader Styles */
.bible-reader {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.bible-controls {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.control-group {
    display: flex;
    gap: 10px;
}

select, .btn {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.btn {
    background: #0056b3;
    color: #fff;
    cursor: pointer;
    border: none;
    transition: background 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn:hover {
    background: #004494;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 0.9rem;
}

.bible-text {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 30px;
}

.highlight-verse {
    background-color: #fff3cd;
    transition: background-color 1s;
}

/* Banner Carousel */
.banner-carousel-container {
    position: relative;
    max-width: 100%;
    overflow: hidden;
    height: 400px;
    background: #000;
}

.banner-carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.banner-slide {
    min-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    position: relative;
}

.banner-slide::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4);
}

.banner-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    max-width: 800px;
}

.banner-content h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.banner-content p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.btn-banner {
    display: inline-block;
    padding: 10px 25px;
    background: #ffc107;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-banner:hover {
    background: #e0a800;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    padding: 15px;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 3;
}

.carousel-nav:hover {
    background: rgba(0,0,0,0.8);
}

.prev { left: 0; }
.next { right: 0; }

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
}

.dot.active {
    background: #fff;
}

/* Auth Forms */
.auth-container {
    max-width: 400px;
    margin: 50px auto;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.alert {
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
}

.alert-success {
    background: #d4edda;
    color: #155724;
}

/* Dictionary */
.dictionary-container {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Tabs */
.tabs-container {
    margin-bottom: 0;
    display: flex;
}

.tab-btn {
    padding: 10px 20px;
    background: #e0e0e0;
    border: none;
    border-radius: 5px 5px 0 0;
    cursor: pointer;
    font-weight: 500;
    margin-right: 5px;
    transition: background 0.2s;
}

.tab-btn:hover {
    background: #d0d0d0;
}

.tab-btn.active {
    background: #fff;
    font-weight: bold;
    /* Simulate connection to content below */
    position: relative;
    top: 1px;
    z-index: 1;
}

.verse {
    margin-bottom: 10px;
}

.verse-num {
    font-weight: bold;
    color: #555;
    margin-right: 5px;
    font-size: 0.8em;
    vertical-align: super;
}

.comments-section {
    margin-top: 40px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
}

.comment {
    border-bottom: 1px solid #eee;
    padding: 15px 0;
    color: #0056b3; /* Azul */
}

.no-copy {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.comment-header {
    font-size: 0.9em;
    color: #777;
    margin-bottom: 5px;
}

.login-prompt {
    background: #e8f4fd;
    padding: 15px;
    border-radius: 4px;
    text-align: center;
}

/* Hebrew Course Ad */
.ad-section {
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    border: 1px solid #e1e1e1;
    overflow: hidden;
}

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

.ad-text {
    flex: 2;
}

.ad-text h2 {
    color: #0056b3;
    margin-top: 0;
}

.ad-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.ad-features li {
    margin-bottom: 8px;
    font-size: 1.1em;
}

.btn-ad {
    display: inline-block;
    padding: 12px 30px;
    background: #28a745;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: transform 0.2s, background 0.2s;
}

.btn-ad:hover {
    background: #218838;
    transform: translateY(-2px);
}

.ad-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hebrew-letter {
    font-size: 150px;
    font-family: 'Ezra SIL', 'SBL Hebrew', serif;
    color: #0056b3;
    opacity: 0.2;
    transform: rotate(-10deg);
}

@media (max-width: 768px) {
    .ad-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hebrew-letter {
        font-size: 100px;
    }
    
    .nav-links {
        display: none; /* Simplificação para mobile por enquanto */
    }
}

/* Hebrew Words Interaction */
.hebrew-word {
    cursor: pointer;
    transition: color 0.2s, background-color 0.2s;
    border-radius: 3px;
    padding: 0 2px;
}

.hebrew-word:hover {
    color: #0056b3;
    background-color: #e8f4fd;
}

/* Modal Styles */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgb(0,0,0); 
    background-color: rgba(0,0,0,0.4); 
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto; 
    padding: 20px;
    border: 1px solid #888;
    width: 80%; 
    max-width: 600px;
    border-radius: 8px;
    position: relative;
    animation: modalFadeIn 0.3s;
}

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

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Share Tooltip Styles */
#share-tooltip {
    position: absolute;
    display: none;
    background-color: #333;
    border-radius: 4px;
    padding: 5px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 2000;
    white-space: nowrap;
}

#share-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

#share-tooltip button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 5px 10px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: background-color 0.2s;
    border-radius: 3px;
}

#share-tooltip button:hover {
    background-color: #555;
}

#share-tooltip .divider {
    display: inline-block;
    width: 1px;
    height: 14px;
    background-color: #555;
    vertical-align: middle;
    margin: 0 2px;
}
