/* Shared Bible Reference Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Default light background for reading pages */
body {
    font-family: 'Crimson Text', 'Georgia', 'Times New Roman', serif;
    background: #f5f1e8;
    min-height: 100vh;
    padding: 20px;
    line-height: 1.8;
    color: #2c1810;
}

/* Container for concordance and reference pages */
.container {
    max-width: 900px;
    margin: 40px auto;
    background: #fdfbf7;
    border-radius: 2px;
    box-shadow: 
        0 2px 4px rgba(0,0,0,0.1),
        0 8px 16px rgba(0,0,0,0.1),
        0 16px 32px rgba(0,0,0,0.1),
        inset 0 0 0 1px rgba(139, 115, 85, 0.1);
    overflow: hidden;
    position: relative;
    padding: 0 20px;
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #8b7355, #c9b896, #8b7355);
}

/* Chapter pages - clean reading layout */
body:not(:has(.container)) {
    max-width: 800px;
    margin: 0 auto;
    background: #fdfbf7;
    padding: 40px 20px;
}

/* Headers */
h1 {
    color: #2c1810;
    border-bottom: 2px solid #8b7355;
    padding-bottom: 10px;
    font-family: 'Cinzel', 'Georgia', serif;
    font-weight: 400;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

h2 {
    color: #3d2817;
    margin-top: 30px;
    margin-bottom: 20px;
    font-family: 'Cinzel', 'Georgia', serif;
    font-weight: 400;
    letter-spacing: 0.5px;
    font-size: 28px;
}

h3 {
    color: #6b5d4f;
    margin-top: 20px;
    font-family: 'Cinzel', 'Georgia', serif;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* Paragraphs - for chapter text */
p {
    color: #2c1810;
    margin: 16px 0;
    line-height: 2;
    font-size: 18px;
}

/* Links */
a {
    color: #8b7355;
    text-decoration: none;
    transition: all 0.2s;
    border-bottom: 1px solid transparent;
}

a:hover {
    color: #2c1810;
    border-bottom-color: #8b7355;
}

/* Strong's links in chapter text */
p a {
    color: #6b5d4f;
    font-size: 16px;
    padding: 0 2px;
}

p a:hover {
    color: #8b7355;
    background: #f8f6f1;
    border-radius: 2px;
}

/* Verse anchors */
font[color="gray"], font[gray] {
    color: #999 !important;
    font-size: 14px;
}

/* Definition Box */
.definition {
    background: #f8f6f1;
    padding: 20px;
    border-left: 4px solid #8b7355;
    margin: 20px 0;
    border-radius: 1px;
    box-shadow: 0 1px 3px rgba(44, 24, 16, 0.05);
}

/* Concordance Section */
.concordance {
    margin-top: 30px;
}

.testament-refs {
    margin-left: 20px;
    margin-top: 10px;
}

.verse-ref {
    margin: 8px 0;
    padding: 8px 12px;
    background: #f8f6f1;
    border-radius: 1px;
    border-left: 2px solid #c9b896;
    transition: all 0.2s;
}

.verse-ref:hover {
    background: white;
    border-left-color: #8b7355;
    transform: translateX(4px);
}

.verse-ref a {
    color: #3d2817;
    font-weight: 400;
}

.verse-ref a:hover {
    color: #8b7355;
    border-bottom: none;
}

/* Navigation */
.nav {
    padding: 20px;
    background: #f8f6f1;
    margin: 30px 0;
    text-align: center;
    border-radius: 1px;
    border: 1px solid #e8dfc8;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.nav a {
    color: #8b7355;
    text-decoration: none;
    font-weight: 400;
    font-family: 'Cinzel', 'Georgia', serif;
    letter-spacing: 0.5px;
    padding: 8px 16px;
    transition: all 0.2s;
    flex: 1;
}

.nav a:first-child {
    text-align: left;
}

.nav a:last-child {
    text-align: right;
}

.nav a:only-child,
.nav a:nth-child(2):nth-last-child(2) {
    text-align: center;
}

.nav a:hover {
    color: #2c1810;
    background: white;
    border-radius: 1px;
    border-bottom: none;
}

/* Lists and Text */
ol {
    margin-left: 24px;
    margin-top: 10px;
}

ol li {
    margin: 6px 0;
    color: #3d2817;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f0ebe3;
}

::-webkit-scrollbar-thumb {
    background: #c9b896;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #8b7355;
}

/* Responsive */
@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .container {
        margin: 20px auto;
    }
    
    h1 {
        font-size: 24px;
    }
    
    h2 {
        font-size: 22px;
    }
    
    p {
        font-size: 16px;
    }
}