/* Biblia Comentată - Modern CSS Styles */

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #f39c12;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --border-color: #e9ecef;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.6;
    color: var(--text-color);
    font-size: 16px;
}

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

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

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.nav-link:hover {
    color: var(--secondary-color);
    background: var(--light-bg);
}

.language-switcher {
    margin-left: 1rem;
    padding-left: 1rem;
    border-left: 1px solid var(--border-color);
}

.lang-link {
    background: var(--secondary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.lang-link:hover {
    background: #2980b9;
    transform: translateY(-1px);
}

/* Main Content */
.main-content {
    margin-top: 80px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.9), rgba(46, 134, 193, 0.9)),
                url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 300"><defs><pattern id="cross" x="0" y="0" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M25,10 L25,40 M10,25 L40,25" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23cross)"/></svg>');
    color: var(--white);
    padding: 6rem 0;
    text-align: center;
    background-size: cover;
    background-position: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 300;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-verse {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem auto;
    max-width: 600px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-verse p {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

.hero-verse cite {
    font-size: 1rem;
    opacity: 0.8;
}

.cta-button {
    display: inline-block;
    background: var(--accent-color);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 2rem;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(243, 156, 18, 0.3);
}

.cta-button:hover {
    background: #e67e22;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(243, 156, 18, 0.4);
}

/* Chapters Section */
.chapters-section {
    padding: 4rem 0;
    background: var(--light-bg);
}

.chapters-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-intro {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.chapters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.chapter-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.chapter-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.chapter-card h3 {
    margin-bottom: 1rem;
}

.chapter-card h3 a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.3rem;
}

.chapter-card h3 a:hover {
    color: var(--secondary-color);
}

.chapter-card p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.chapter-verses {
    background: var(--secondary-color);
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

.more-chapters {
    text-align: center;
    margin-top: 2rem;
}

.view-all-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
}

.view-all-link:hover {
    text-decoration: underline;
}

/* Features Section */
.features-section {
    padding: 4rem 0;
    background: var(--white);
}

.features-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
}

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

.feature {
    text-align: center;
    padding: 2rem;
}

.feature h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.feature p {
    color: #666;
    line-height: 1.6;
}

/* Chapter Page Styles */
.chapter-header {
    background: var(--primary-color);
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
}

.chapter-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.chapter-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

.chapter-content {
    padding: 3rem 0;
}

.mode-toggle {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    gap: 1rem;
}

.mode-btn {
    padding: 0.8rem 1.5rem;
    border: 2px solid var(--secondary-color);
    background: var(--white);
    color: var(--secondary-color);
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.mode-btn.active,
.mode-btn:hover {
    background: var(--secondary-color);
    color: var(--white);
}

.content-area {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.verse {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-left: 4px solid var(--accent-color);
    background: rgba(243, 156, 18, 0.05);
    border-radius: 0 10px 10px 0;
}

.verse-number {
    font-weight: bold;
    color: var(--accent-color);
    margin-right: 0.5rem;
}

.verse-text {
    line-height: 1.8;
    font-size: 1.1rem;
}

.commentary {
    background: rgba(52, 152, 219, 0.05);
    padding: 2rem;
    border-radius: 15px;
    margin-top: 2rem;
    border-left: 4px solid var(--secondary-color);
}

.commentary h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.dictionary-word {
    background: rgba(243, 156, 18, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    cursor: help;
    border-bottom: 1px dotted var(--accent-color);
}

.dictionary-tooltip {
    position: relative;
}

.dictionary-tooltip:hover::after {
    content: attr(data-definition);
    position: absolute;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.5rem;
    border-radius: 5px;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    z-index: 1000;
    font-size: 0.9rem;
}

/* Navigation between chapters */
.chapter-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    padding: 2rem;
    background: var(--light-bg);
    border-radius: 15px;
}

.nav-chapter {
    color: var(--secondary-color);
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border: 2px solid var(--secondary-color);
    border-radius: 25px;
    transition: var(--transition);
}

.nav-chapter:hover {
    background: var(--secondary-color);
    color: var(--white);
}

.nav-chapter.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
}

.footer-links {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-end;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-verse {
        margin: 1rem;
        padding: 1.5rem;
    }

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

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

    .chapter-navigation {
        flex-direction: column;
        gap: 1rem;
    }

    .mode-toggle {
        flex-direction: column;
        align-items: center;
    }

    .content-area {
        margin: 1rem;
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 4rem 0;
    }

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

    /* Fix dictionary word wrapping on mobile */
    .dictionary-word {
        display: inline !important;
        word-wrap: break-word;
        word-break: normal;
        white-space: normal;
        overflow-wrap: break-word;
    }

    /* Disable hover tooltips on mobile - use JavaScript tooltips instead */
    .dictionary-tooltip:hover::after {
        display: none;
    }

    /* Ensure verse text wraps properly */
    .verse-text {
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: normal;
        line-height: 1.6;
    }

    .container {
        padding: 0 15px;
    }

    .chapter-card {
        padding: 1.5rem;
    }

    .content-area {
        padding: 1.5rem;
    }
}