/* Variables */
:root {
    --primary-color: #2c3e50;
    --accent-color: #3498db;
    --accent-hover: #2980b9;
    --text-color: #333;
    --text-muted: #666;
    --text-light: #999;
    --background: #f5f6fa;
    --color: #444;
    --color-2: #555;
    --white: #ffffff;
    --footer-bg: #1a1a1a;
    --footer-text: #ffffff;
    --border-color: #eee;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
    font-weight: bold;
}

.skip-link:focus {
    top: 6px;
}

/* Global Styles */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    transition: var(--transition);
}

/* Focus indicators */
*:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--background);
    padding-top: 60px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

main.container {
    padding: 1rem 0;
    margin-top: 1rem;
}

aside {
    padding: 2rem 0;
}

button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Navbar Styles */
.navbar {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 0.5rem 0;
}

.navbar .navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    padding: 0.5rem 1rem;
}

.navbar .nav-link {
    color: var(--primary-color) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s;
}

.navbar .nav-link:hover {
    color: var(--accent-color) !important;
}

.navbar .logo {
    height: 2rem;
    width: auto;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-radius: .9em;
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    color: var(--primary-color);
    font-weight: 500;
}

.dropdown-item:hover {
    background-color: var(--background);
    color: var(--accent-color);
}

/* Content Styles */
.verse-of-day {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    margin: 2rem 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.verse-of-day::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 8rem;
    color: rgba(52, 152, 219, 0.1);
    font-family: Georgia, serif;
}

.verse-text {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-style: italic;
    margin-bottom: 1rem;
    line-height: 1.8;
    flex: 1;
    border-radius: 4px;
}

.verse-text:hover {
    background-color: #f8f9fa;
}

.verse-reference {
    font-weight: 600;
    color: var(--accent-color);
    font-size: 1.1rem;
}

.verse-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.verse-number {
    color: var(--accent-color);
    font-weight: 600;
    min-width: 2rem;
    text-align: right;
}

.blog-post {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}

.blog-post:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

.blog-post h2 {
    color: var(--primary-color);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.blog-post p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.read-more {
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
}

.read-more:hover {
    color: #2980b9;
}

/* Sidebar */
.random-verses {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

.sidebar-title {
    font-size: 1.25rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--background);
}

.random-verse-link {
    display: block;
    padding: 1rem;
    margin-bottom: 0.75rem;
    border-radius: .9em;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.2s;
    background-color: var(--background);
}

.random-verse-link:hover {
    background-color: #e8eaf6;
    color: var(--accent-color);
}

.random-verse-link p {
    margin-bottom: 0;
    color: #666;
    font-size: 0.95rem;
}

.verse-container {
    background-color: #f8f9fa;
    border-left: 4px solid #3498db;
    padding: 2rem;
    margin: 2rem 0;
    border-radius: .9em;
}

.context-links {
    margin: 2rem 0;
    padding: 1rem 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.context-links a {
    color: #3498db;
    text-decoration: none;
    margin-right: 1.5rem;
    font-weight: 500;
}

.related-verses {
    background-color: white;
    border-radius: .9em;
    padding: 1.5rem;
    margin-top: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.related-verse {
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.related-verse:last-child {
    border-bottom: none;
}

.article-header {
    background-color: #f8f9fa;
    padding: 3rem 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.article-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-section {
    margin: 2.5rem 0;
}

.article-section h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.verse-quote {
    background-color: #f8f9fa;
    border-left: 4px solid #3498db;
    padding: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
}

.verse-reference {
    font-weight: 600;
    color: #3498db;
    display: block;
    margin-top: 0.5rem;
}

.related-posts {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: .9em;
    margin-top: 3rem;
}

.related-posts h3 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.chapter-header {
    background-color: #f8f9fa;
    padding: 2rem 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.chapter-navigation,
.verse-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1rem 0;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.nav-chapter,
.nav-verse {
    color: #3498db;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: background-color 0.3s;
}

.nav-chapter:hover,
.nav-verse:hover {
    background-color: #f8f9fa;
    color: #2c3e50;
}

.verse-list {
    margin: 2rem 0;
}

.verse-link {
    display: block;
    width: 100%;
}

.chapter-info {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: .9em;
}

.chapter-info h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.chapter-summary {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

.bible-section {
    background-color: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.bible-section h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f8f9fa;
}

.book-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.book-link {
    display: block;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: .9em;
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.2s;
}

.book-link:hover {
    background-color: #3498db;
    color: white;
}

.book-link i {
    margin-right: 0.5rem;
}

.testament-intro {
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.reading-plan {
    background-color: #f8f9fa;
    border-radius: .9em;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.reading-plan h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.search-bible {
    margin-bottom: 2rem;
}

.search-bible .form-control {
    border-radius: 20px;
    padding: 0.75rem 1.5rem;
}

/* Enhanced Footer */
footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-section {
    margin-bottom: 2rem;
}

.footer-title {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-text {
    color: #999;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.bible-version-info {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: .9em;
    margin: 2rem 0;
}

/* Chapter Cards */
.chapter-card {
    display: block;
    text-decoration: none;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.5rem;
    transition: var(--transition);
    color: var(--text-color);
    text-align: center;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.chapter-card:hover {
    border-color: var(--accent-color);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
    color: var(--text-color);
}

.chapter-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 0.25rem;
}

.chapter-title {
    font-size: 0.875rem;
    line-height: 1.2;
    color: var(--text-muted);
}

/* Book Header */
.book-header {
    text-align: center;
    margin: 2rem 0 3rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border-radius: 12px;
}

.book-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.book-subtitle {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.book-info .badge {
    margin: 0 0.25rem;
}

/* Chapters Section */
.chapters-section {
    margin: 3rem 0;
}

.section-title {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--primary-color);
}

/* Book Introduction */
.book-intro {
    margin-top: 4rem;
    padding: 2rem;
    background: var(--background);
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
}

.book-intro h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.book-intro p {
    line-height: 1.6;
    margin-bottom: 1rem;
}

.nav-link:focus-visible,
.nav-chapter:focus-visible,
.nav-verse:focus-visible,
.chapter-link:focus-visible,
.random-verse-link:focus-visible,
.context-links a:focus-visible,
.footer-text:focus-visible,
.btn:focus-visible,
input:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
