/* ויקרא - Leviticus Styling */
/* Color scheme: Deep red/crimson theme representing sacrifices */

@import url('/fonts/fonts.css');
:root {
    --primary-color: #8B0000;
    --primary-light: #A52A2A;
    --primary-dark: #5C0000;
    --accent-color: #DAA520;
    --gold-light: #FFD700;
    --bg-color: #FFF8F0;
    --bg-dark: #2D1810;
    --text-color: #2D1810;
    --text-light: #F5F0E8;
    --border-color: #8B0000;
}

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

body {
    font-family: 'Frank Ruhl Libre', 'Amiri', serif;
    background: linear-gradient(135deg, var(--bg-color) 0%, #FFF0E5 50%, #FFE8DC 100%);
    min-height: 100vh;
    direction: rtl;
    line-height: 2;
    color: var(--text-color);
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.95), rgba(255,248,240,0.98));
    box-shadow: 0 0 60px rgba(139, 0, 0, 0.15);
    position: relative;
    border: 3px solid var(--primary-color);
    border-radius: 8px;
}

.inner-border {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    bottom: 12px;
    border: 1px solid var(--accent-color);
    pointer-events: none;
    border-radius: 4px;
}

.corner-decoration {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 3px solid var(--accent-color);
}

.corner-decoration.top-left {
    top: 20px;
    left: 20px;
    border-right: none;
    border-bottom: none;
}

.corner-decoration.top-right {
    top: 20px;
    right: 20px;
    border-left: none;
    border-bottom: none;
}

.corner-decoration.bottom-left {
    bottom: 20px;
    left: 20px;
    border-right: none;
    border-top: none;
}

.corner-decoration.bottom-right {
    bottom: 20px;
    right: 20px;
    border-left: none;
    border-top: none;
}

header {
    text-align: center;
    padding: 30px 20px;
    position: relative;
}

.top-nav {
    position: absolute;
    top: 10px;
    right: 20px;
}

.top-nav a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1rem;
    padding: 8px 16px;
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
}

.top-nav a:hover {
    background: var(--primary-color);
    color: white;
}

.book-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 8px 24px;
    border-radius: 25px;
    font-size: 0.95rem;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(139, 0, 0, 0.3);
}

h1 {
    font-family: 'Frank Ruhl Libre', serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(139, 0, 0, 0.1);
}

.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
}

.divider span {
    color: var(--accent-color);
    font-size: 1.8rem;
    margin: 0 15px;
}

.divider::before,
.divider::after {
    content: '';
    height: 2px;
    width: 100px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
}

.chapter-content {
    padding: 30px 40px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    margin: 20px;
    border: 1px solid rgba(139, 0, 0, 0.1);
}

.verse {
    margin-bottom: 16px;
    font-size: 1.35rem;
    line-height: 2.2;
    text-align: justify;
    font-family: 'Amiri', serif;
}

.verse-num {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.9rem;
    margin-left: 10px;
    min-width: 28px;
    text-align: center;
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.1), rgba(165, 42, 42, 0.1));
    padding: 2px 8px;
    border-radius: 12px;
    font-family: 'Frank Ruhl Libre', serif;
}

.holy-name {
    color: var(--primary-dark);
    font-weight: 700;
}

.footer {
    text-align: center;
    padding: 30px 20px;
    margin-top: 30px;
    border-top: 2px solid var(--accent-color);
    color: var(--primary-dark);
}

.footer p {
    margin: 8px 0;
    font-size: 0.95rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--primary-color);
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid var(--primary-color);
    border-radius: 20px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.footer-links a:hover {
    background: var(--primary-color);
    color: white;
}

.ai-disclaimer {
    font-size: 0.8rem;
    color: #666;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(139, 0, 0, 0.2);
}

.book-complete {
    font-size: 1.4rem;
    color: var(--primary-color);
    font-weight: 700;
    margin: 15px 0;
}

/* Focus styles for accessibility */
a:focus-visible, button:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(218, 165, 32, 0.4);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .container {
        margin: 10px;
        padding: 20px 10px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .chapter-content {
        padding: 20px 15px;
        margin: 10px;
    }
    
    .verse {
        font-size: 1.2rem;
    }
}

@media (max-width: 600px) {
    .top-nav {
        position: static;
        text-align: center;
        margin-bottom: 10px;
    }
    
    h1 {
        font-size: 1.7rem;
    }
    
    .verse {
        font-size: 1.1rem;
        line-height: 2;
    }
    
    .chapter-content {
        padding: 15px 10px;
    }
    
    .footer {
        padding: 15px 10px;
    }
    
    .footer-links {
        gap: 10px;
    }
    
    .footer-links a {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
}

