/* Core Layout - Nord Theme (Snow Storm) */
:root {
    /* Nord Snow Storm */
    --color-bg: #eceff4;           /* nord6 */
    --color-surface: #e5e9f0;      /* nord5 */
    --color-cell-bg: #eceff4;      /* nord6 - lighter cell background */
    --color-text: #2e3440;         /* nord0 */
    --color-text-secondary: #4c566a; /* nord3 */
    --color-border: #d8dee9;       /* nord4 */
    /* Nord Frost */
    --color-primary: #5e81ac;      /* nord10 */
    --color-primary-hover: #81a1c1; /* nord9 */
    /* Nord Aurora */
    --color-delete: #bf616a20;     /* nord11 with transparency */
    --color-delete-text: #bf616a;  /* nord11 */
    --color-insert: #a3be8c20;     /* nord14 with transparency */
    --color-insert-text: #a3be8c;  /* nord14 */
    --color-equal: transparent;
    --color-changed-row: #f0f4f8;  /* lighter than borders for visible separation */
    --color-warning: #d08770;      /* nord12 */
    --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'SF Mono', Consolas, 'Liberation Mono', Menlo, monospace;
}

/* Dark Mode - Nord Theme (Polar Night) */
[data-theme="dark"] {
    /* Nord Polar Night */
    --color-bg: #2e3440;           /* nord0 */
    --color-surface: #3b4252;      /* nord1 */
    --color-cell-bg: #2e3440;      /* nord0 - darker cell background */
    --color-text: #eceff4;         /* nord6 */
    --color-text-secondary: #d8dee9; /* nord4 */
    --color-border: #4c566a;       /* nord3 */
    /* Nord Frost */
    --color-primary: #88c0d0;      /* nord8 */
    --color-primary-hover: #8fbcbb; /* nord7 */
    /* Nord Aurora */
    --color-delete: #bf616a30;     /* nord11 with transparency */
    --color-delete-text: #bf616a;  /* nord11 */
    --color-insert: #a3be8c30;     /* nord14 with transparency */
    --color-insert-text: #a3be8c;  /* nord14 */
    --color-changed-row: #3b4252;  /* nord1 - lighter than borders for visible separation */
    --color-warning: #d08770;      /* nord12 */
}

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

body {
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

header h1 {
    font-size: 2rem;
    font-weight: 600;
}

header h1 a {
    color: inherit;
    text-decoration: none;
}

header h1 a:hover {
    color: var(--color-primary);
}

/* Theme Toggle */
.theme-toggle {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 0.5rem;
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
    transition: background-color 0.2s;
}

.theme-toggle:hover {
    background: var(--color-bg);
}

.subtitle,
.text-secondary {
    color: var(--color-text-secondary);
}

/* Controls */
.controls, .navigation {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--color-surface);
    border-radius: 8px;
    border: 1px solid var(--color-border);
}

.translation-select, .nav-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-secondary);
}

select, input[type="text"], input[type="number"] {
    padding: 0.5rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-size: 1rem;
    min-width: 150px;
    background: var(--color-surface);
    color: var(--color-text);
}

select:disabled, input:disabled {
    color: var(--color-text-secondary);
    opacity: 0.6;
    cursor: not-allowed;
}

button {
    padding: 0.5rem 1rem;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    align-self: flex-end;
}

button:hover {
    opacity: 0.9;
}

/* View Options */
.view-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.view-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sensitivity-options {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    cursor: pointer;
    color: var(--color-text);
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.view-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-secondary);
}

.view-btn {
    padding: 0.4rem 0.8rem;
    background: var(--color-surface);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    font-size: 0.875rem;
}

.view-btn:first-of-type {
    border-radius: 4px 0 0 4px;
}

.view-btn:last-of-type {
    border-radius: 0 4px 4px 0;
    border-left: none;
}

.view-btn.active {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.view-btn:hover:not(.active):not(:disabled) {
    background: var(--color-bg);
}

.view-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Testament Filter Toggle */
.nav-group.testament-filter {
    margin-left: auto;
}

.testament-toggle {
    display: flex;
}

.testament-btn {
    padding: 0.5rem 1rem;
    background: var(--color-surface);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    font-size: 1rem;
    cursor: pointer;
}

.testament-btn:first-child {
    border-radius: 4px 0 0 4px;
}

.testament-btn:nth-child(2) {
    border-left: none;
    border-right: none;
}

.testament-btn:last-child {
    border-radius: 0 4px 4px 0;
}

.testament-btn.active {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.testament-btn:hover:not(.active) {
    background: var(--color-bg);
}

/* Quick Reference */
.quick-ref {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.quick-ref input {
    flex: 1;
    max-width: 300px;
}

/* Results */
.results {
    background: var(--color-surface);
    border-radius: 8px;
    border: 1px solid var(--color-border);
    padding: 1.5rem;
    min-height: 200px;
}

.results .placeholder {
    color: var(--color-text-secondary);
    text-align: center;
    padding: 2rem;
}

.verse-diff {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

.verse-diff:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.verse-reference {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

.diff-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Diff highlighting */
.diff-delete {
    background: var(--color-delete);
    color: var(--color-delete-text);
    padding: 0.1rem 0.2rem;
    border-radius: 2px;
}

.diff-insert {
    background: var(--color-insert);
    color: var(--color-insert-text);
    padding: 0.1rem 0.2rem;
    border-radius: 2px;
}

.diff-equal {
    /* No special styling for equal text */
}

.identical-note {
    color: var(--color-text-secondary);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Summary stats */
.summary {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--color-surface);
    border-radius: 8px;
    border: 1px solid var(--color-border);
}

.stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem 2rem;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: 600;
    color: var(--color-primary);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

/* Similarity color coding */
.stat-value.similarity-high {
    color: var(--color-insert-text);
}

.stat-value.similarity-medium {
    color: #ebcb8b; /* nord13 */
}

.stat-value.similarity-low {
    color: var(--color-delete-text);
}

footer {
    margin-top: 2rem;
    text-align: center;
    color: var(--color-text-secondary);
    font-size: 0.875rem;
}

/* Side by Side View */
.side-by-side-table {
    display: table;
    width: 100%;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    border-collapse: collapse;
}

.side-by-side-header {
    display: table-row;
    background: var(--color-bg);
}

.side-by-side-header .header-cell {
    display: table-cell;
    font-weight: 600;
    text-align: center;
    color: var(--color-primary);
    padding: 0.75rem;
    border-bottom: 1px solid var(--color-border);
    width: 50%;
}

.side-by-side-header .header-cell:first-child {
    border-right: 1px solid var(--color-border);
}

.side-by-side-row {
    display: table-row;
}

.side-by-side-cell {
    display: table-cell;
    padding: 0.75rem;
    font-size: 1rem;
    line-height: 1.7;
    vertical-align: top;
    border-bottom: 1px solid var(--color-border);
    width: 50%;
    background: var(--color-cell-bg);
}

.side-by-side-cell:first-child {
    border-right: 1px solid var(--color-border);
}

.side-by-side-row:last-child .side-by-side-cell {
    border-bottom: none;
}

.side-by-side-cell .verse-num {
    font-weight: 600;
    color: var(--color-primary);
    margin-right: 0.5rem;
    font-size: 0.875rem;
}

.side-by-side-row.has-changes .side-by-side-cell {
    background: var(--color-changed-row);
}

.side-by-side-row.identical .side-by-side-cell {
    background: var(--color-cell-bg);
}

/* Book Diff View */
.book-diff {
    text-align: center;
}

.book-diff h3 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.book-diff-subtitle {
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
}

.chapter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0.75rem;
    text-align: center;
}

.chapter-card {
    padding: 0.75rem 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    border: 1px solid var(--color-border);
}

.chapter-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Card change level colors - used by both chapter and book cards */
.card-low-change {
    background: var(--color-insert);
    border-color: var(--color-insert-text);
}

.card-medium-change {
    background: #ebcb8b25; /* nord13 with transparency */
    border-color: #ebcb8b; /* nord13 */
}

.card-high-change {
    background: var(--color-delete);
    border-color: var(--color-delete-text);
}

[data-theme="dark"] .card-medium-change {
    background: #ebcb8b20; /* nord13 with transparency */
    border-color: #ebcb8b; /* nord13 */
}

.card-low-change .change-percent,
.text-low-change {
    color: var(--color-insert-text);
}

.card-medium-change .change-percent,
.text-medium-change {
    color: #d08770; /* nord12 */
}

[data-theme="dark"] .card-medium-change .change-percent,
[data-theme="dark"] .text-medium-change {
    color: #ebcb8b; /* nord13 */
}

.card-high-change .change-percent,
.text-high-change {
    color: var(--color-delete-text);
}

/* Legacy classes for existing chapter cards */
.chapter-card.low-change {
    background: var(--color-insert);
    border-color: var(--color-insert-text);
}

.chapter-card.medium-change {
    background: #ebcb8b25; /* nord13 with transparency */
    border-color: #ebcb8b; /* nord13 */
}

[data-theme="dark"] .chapter-card.medium-change {
    background: #ebcb8b20; /* nord13 with transparency */
    border-color: #ebcb8b; /* nord13 */
}

.chapter-card.high-change {
    background: var(--color-delete);
    border-color: var(--color-delete-text);
}

.chapter-number {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--color-text);
}

.chapter-stats {
    margin-top: 0.25rem;
}

.change-percent {
    font-size: 1.25rem;
    font-weight: 700;
}

.low-change .change-percent {
    color: var(--color-insert-text);
}

.medium-change .change-percent {
    color: #d08770; /* nord12 */
}

[data-theme="dark"] .medium-change .change-percent {
    color: #ebcb8b; /* nord13 */
}

.high-change .change-percent {
    color: var(--color-delete-text);
}

.change-detail {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
}

/* Search Highlight */
.search-highlight {
    background: #ebcb8b; /* nord13 */
    color: #2e3440; /* nord0 */
    padding: 0.1rem 0.2rem;
    border-radius: 2px;
}

[data-theme="dark"] .search-highlight {
    background: #ebcb8b; /* nord13 */
    color: #2e3440; /* nord0 */
}

.search-no-match {
    opacity: 0.4;
}

.search-info {
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

.search-info strong {
    color: var(--color-text);
}

/* Breadcrumb Navigation */
.breadcrumb {
    padding: 0.75rem 1rem;
    background: var(--color-surface);
    border-radius: 8px;
    border: 1px solid var(--color-border);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--color-primary);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb .separator {
    margin: 0 0.5rem;
    color: var(--color-text-secondary);
}

.breadcrumb .current {
    color: var(--color-text);
    font-weight: 500;
}

/* Metrics Info */
.metrics-info-btn {
    background: none;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    cursor: pointer;
    padding: 0;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.metrics-info-btn:hover {
    background: var(--color-bg);
    color: var(--color-primary);
}

.metrics-explanation {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--color-bg);
    border-radius: 8px;
    font-size: 0.875rem;
    text-align: left;
    line-height: 1.6;
}

.metrics-explanation h4 {
    margin-bottom: 0.75rem;
    color: var(--color-text);
    font-size: 0.95rem;
}

.metrics-explanation ul {
    margin: 0.5rem 0;
    padding-left: 1.25rem;
}

.metrics-explanation li {
    margin-bottom: 0.5rem;
}

.metrics-explanation .metric-term {
    font-weight: 600;
    color: var(--color-primary);
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 1rem;
    }

    .controls, .navigation {
        flex-direction: column;
    }

    select, input {
        width: 100%;
    }

    .side-by-side-table,
    .side-by-side-header,
    .side-by-side-row,
    .side-by-side-cell,
    .side-by-side-header .header-cell {
        display: block;
        width: 100%;
    }

    .side-by-side-cell:first-child,
    .side-by-side-header .header-cell:first-child {
        border-right: none;
    }
}

/* Continuous View */
.continuous-toggle {
    margin-left: 1rem;
    padding-left: 1rem;
    border-left: 1px solid var(--color-border);
}

.chapter-divider {
    display: flex;
    align-items: center;
    margin: 2rem 0 1.5rem 0;
    padding: 0.75rem 1rem;
    background: var(--color-surface);
    border-radius: 8px;
    border: 1px solid var(--color-border);
}

.chapter-divider-label {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-primary);
}

.chapter-divider-stats {
    margin-left: auto;
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

/* Sticky Chapter Header */
.sticky-chapter-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--color-primary);
    color: white;
    padding: 0.5rem 1rem;
    font-weight: 600;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(-100%);
    transition: opacity 0.2s, transform 0.2s;
}

.sticky-chapter-header.visible {
    opacity: 1;
    transform: translateY(0);
}

.sticky-chapter-header .sticky-book-name {
    margin-right: 0.5rem;
}

.sticky-chapter-header .sticky-chapter-num {
    opacity: 0.9;
}

/* Continuous view verse styling */
.continuous-book-diff .verse-diff,
.continuous-book-diff .side-by-side-row {
    scroll-margin-top: 60px; /* Account for sticky header */
}

.continuous-book-diff {
    position: relative;
}

/* Book Navigation Arrows */
.book-nav-btn {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 80px;
    border: none;
    background: var(--color-surface);
    color: var(--color-delete-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 101;
}

.book-nav-btn.nav-prev {
    left: 0;
    border-radius: 0 8px 8px 0;
}

.book-nav-btn.nav-next {
    right: 0;
    border-radius: 8px 0 0 8px;
}

.book-nav-btn:hover:not(:disabled) {
    background: var(--color-delete-text);
    color: white;
    width: 56px;
}

.book-nav-btn:disabled {
    opacity: 0.2;
    cursor: not-allowed;
}

.book-nav-btn .nav-arrow {
    display: block;
    line-height: 1;
    font-weight: bold;
}

.book-nav-tooltip {
    position: absolute;
    top: 100%;
    margin-top: 0.5rem;
    background: var(--color-text);
    color: var(--color-bg);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.book-nav-btn.nav-prev .book-nav-tooltip {
    left: 0;
}

.book-nav-btn.nav-next .book-nav-tooltip {
    right: 0;
}

.book-nav-btn:hover .book-nav-tooltip {
    opacity: 1;
}

/* Scroll Navigation (Top/Bottom) */
.scroll-nav-btn {
    position: fixed;
    right: 0;
    width: 48px;
    height: 56px;
    border: none;
    background: var(--color-surface);
    color: var(--color-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 101;
    border-radius: 8px 0 0 8px;
}

.scroll-nav-btn.scroll-top {
    top: 25%;
}

.scroll-nav-btn.scroll-bottom {
    bottom: 25%;
}

.scroll-nav-btn:hover {
    background: var(--color-primary);
    color: white;
    width: 56px;
}

.scroll-nav-btn .scroll-arrow {
    display: block;
    line-height: 1;
    font-weight: bold;
}

/* Responsive: smaller on mobile */
@media (max-width: 900px) {
    .book-nav-btn {
        width: 36px;
        height: 60px;
        font-size: 1.25rem;
    }
    .book-nav-btn:hover:not(:disabled) {
        width: 42px;
    }
    .book-nav-tooltip {
        display: none;
    }
    .scroll-nav-btn {
        width: 36px;
        height: 44px;
        font-size: 1rem;
    }
    .scroll-nav-btn:hover {
        width: 42px;
    }
}

/* Loading Spinner */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    gap: 1rem;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--color-border);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    color: var(--color-text-secondary);
    font-size: 1rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Site Navigation */
.site-nav {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 0.75rem 2rem;
    margin-bottom: 2rem;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
}

.nav-logo:hover {
    color: var(--color-primary-hover);
}

.nav-icon {
    width: 1.5rem;
    height: 1.5rem;
    fill: currentColor;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.95rem;
    padding: 0.25rem 0;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

.nav-links a:hover {
    color: var(--color-primary);
}

.nav-links a.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

.site-nav .theme-toggle {
    position: static;
    margin-left: 0.5rem;
}

/* Page Content (for support/about pages) */
.page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.content-article h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

.content-article h2 {
    font-size: 1.4rem;
    margin: 2rem 0 1rem 0;
    color: var(--color-text);
}

.content-article p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.content-article .lead {
    font-size: 1.15rem;
    color: var(--color-text-secondary);
}

.content-article ul {
    margin: 0.5rem 0 1rem 1.5rem;
    line-height: 1.8;
}

.content-article li {
    margin-bottom: 0.5rem;
}

.content-article a {
    color: var(--color-primary);
    text-decoration: none;
}

.content-article a:hover {
    text-decoration: underline;
}

.content-article section {
    margin-bottom: 2rem;
}

/* Support Page Styles */
.support-options {
    display: grid;
    gap: 1.5rem;
    margin: 2rem 0;
}

.support-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 1.5rem;
}

.support-card h2 {
    margin-top: 0;
    font-size: 1.25rem;
}

.support-card ul {
    margin-bottom: 0;
}

.donation-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.donate-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s;
    background: var(--color-primary);
    color: white !important;
    border: 1px solid var(--color-primary);
}

.donate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    background: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
    color: white !important;
}

.transparency {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.transparency h2 {
    margin-top: 0;
}

.scripture-quote {
    font-style: italic;
    color: var(--color-text-secondary);
    text-align: center;
    margin-top: 2rem;
    padding: 1rem;
    border-top: 1px solid var(--color-border);
}

/* Responsive Navigation */
@media (max-width: 768px) {
    .site-nav {
        padding: 0.75rem 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-links a {
        font-size: 0.9rem;
    }

    .donation-buttons {
        flex-direction: column;
    }

    .donate-btn {
        width: 100%;
    }
}

/* Comparison Pages */
.comparison-section {
    margin: 2.5rem 0;
}

.verse-comparison {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.verse-comparison h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    color: var(--color-primary);
}

.verse-context {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
}

.verse-box {
    padding: 1rem;
    border-radius: 6px;
    margin: 0.75rem 0;
}

.verse-box p {
    margin: 0;
    line-height: 1.7;
}

.verse-box.kjv {
    background: var(--color-delete);
    border-left: 3px solid var(--color-delete-text);
}

.verse-box.modern {
    background: var(--color-insert);
    border-left: 3px solid var(--color-insert-text);
}

.translation-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    color: var(--color-text-secondary);
}

.verse-note {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    font-style: italic;
    margin-top: 0.75rem;
}

.compare-link {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--color-primary);
    text-decoration: none;
}

.compare-link:hover {
    text-decoration: underline;
}

/* Term comparison table */
.term-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.term-table th,
.term-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.term-table th {
    background: var(--color-surface);
    font-weight: 600;
    color: var(--color-text-secondary);
}

.term-table tr:hover td {
    background: var(--color-surface);
}

/* CTA section */
.cta-section {
    text-align: center;
    padding: 2rem;
    background: var(--color-surface);
    border-radius: 8px;
    margin: 2rem 0;
}

.cta-button {
    display: inline-block;
    padding: 0.875rem 2rem;
    background: var(--color-primary);
    color: white !important;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    margin-top: 1rem;
    transition: background 0.2s;
}

.cta-button:hover {
    background: var(--color-primary-hover);
    text-decoration: none;
}

/* Comparison guides list */
.comparison-guides {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.comparison-guides li {
    margin: 0.5rem 0;
}

.comparison-guides a {
    display: block;
    padding: 1rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    text-decoration: none;
    color: var(--color-primary);
    transition: border-color 0.2s;
}

.comparison-guides a:hover {
    border-color: var(--color-primary);
}

/* Site Footer */
.site-footer {
    margin-top: 3rem;
    padding: 0.75rem 1.5rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.footer-content > p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

.footer-right {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.footer-text-link {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.footer-text-link:hover {
    color: var(--color-primary);
}

.ecosystem-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 4px;
    transition: background 0.2s;
}

.ecosystem-link:hover {
    background: var(--color-bg);
}

.ecosystem-icon {
    width: 1.25rem;
    height: 1.25rem;
    fill: var(--color-text-secondary);
    transition: fill 0.2s;
}

.ecosystem-link:hover .ecosystem-icon {
    fill: var(--color-primary);
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-right {
        justify-content: center;
    }
}
