/* Harris's List - Main Stylesheet */

/* Color Variables */
:root {
    --cream: #f8f5f0;
    --burgundy: #8b2332;
    --dark-burgundy: #6b1a27;
    --gold: #b8860b;
    --dark-slate: #2d3436;
    --text-dark: #2d3436;
    --text-light: #636e72;
}

[data-bs-theme="dark"] {
    --cream: #1a1d1f;
    --burgundy: #a83545;
    --dark-burgundy: #8b2332;
    --gold: #d4a017;
    --text-dark: #e1e1e1;
    --text-light: #b2b2b2;
}

/* Base Styles */
body {
    background-color: var(--cream);
    color: var(--text-dark);
    padding-top: 61px; /* Account for fixed navbar */
}

/* Links */
a {
    color: var(--burgundy);
    transition: color 0.2s ease;
}

a:hover {
    color: var(--dark-burgundy);
}

/* Navigation */
.navbar {
    background-color: var(--burgundy);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-size: 1.25rem;
}

.nav-link {
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--gold) !important;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 6rem 0;
    background:
        linear-gradient(135deg, rgba(248, 245, 240, 0.95) 0%, rgba(139, 35, 50, 0.15) 100%),
        url('../images/Richard_Newton_Progress_of_a_Woman_of_Pleasure_1794.jpeg') center/cover;
    background-attachment: fixed;
}

[data-bs-theme="dark"] .hero {
    background:
        linear-gradient(135deg, rgba(26, 29, 31, 0.92) 0%, rgba(139, 35, 50, 0.25) 100%),
        url('../images/Richard_Newton_Progress_of_a_Woman_of_Pleasure_1794.jpeg') center/cover;
    background-attachment: fixed;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, var(--cream) 100%);
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    color: var(--burgundy);
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.8);
}

[data-bs-theme="dark"] .hero h1 {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero .lead {
    color: var(--text-dark);
    line-height: 1.8;
    background: rgba(248, 245, 240, 0.9);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

[data-bs-theme="dark"] .hero .lead {
    background: rgba(26, 29, 31, 0.9);
    color: var(--text-dark);
}

/* Buttons */
.btn-primary {
    background-color: var(--burgundy);
    border-color: var(--burgundy);
}

.btn-primary:hover {
    background-color: var(--dark-burgundy);
    border-color: var(--dark-burgundy);
}

.btn-outline-primary {
    color: var(--burgundy);
    border-color: var(--burgundy);
}

.btn-outline-primary:hover {
    background-color: var(--burgundy);
    border-color: var(--burgundy);
    color: white;
}

/* Timeline Section */
.timeline-section {
    background-color: white;
}

[data-bs-theme="dark"] .timeline-section {
    background-color: #1a1d1f;
}

.timeline-section h2 {
    color: var(--burgundy);
    font-weight: 600;
}

.timeline-description {
    color: var(--text-light);
}

/* Edition Cards */
.edition-card {
    background: var(--cream);
    border: 2px solid var(--text-light);
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    height: 100%;
    text-decoration: none;
    display: block;
}

.edition-card:hover {
    border-color: var(--burgundy);
    box-shadow: 0 4px 12px rgba(139, 35, 50, 0.15);
    transform: translateY(-2px);
    text-decoration: none;
}

.edition-card.featured {
    border-color: var(--burgundy);
    background: linear-gradient(135deg, var(--cream) 0%, rgba(139, 35, 50, 0.05) 100%);
    border-width: 3px;
}

.edition-year {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--burgundy);
    margin-bottom: 0.25rem;
}

.edition-badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    background-color: var(--text-light);
    color: white;
}

.edition-badge.iiif-available,
.edition-badge.ft-available {
    background-color: var(--burgundy);
}

/* Features Section */
.features {
    background-color: rgba(139, 35, 50, 0.03);
}

[data-bs-theme="dark"] .features {
    background-color: rgba(139, 35, 50, 0.1);
}

.feature-card {
    background: white;
    border-radius: 8px;
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(139, 35, 50, 0.1);
}

[data-bs-theme="dark"] .feature-card {
    background: black;
}

.feature-card:hover {
    box-shadow: 0 6px 20px rgba(139, 35, 50, 0.15);
    transform: translateY(-4px);
}

.feature-icon {
    font-size: 3rem;
}

.feature-card h3 {
    font-size: 1.55rem;
    font-weight: 600;
    color: var(--burgundy);
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

/* Context Section */
.context {
    background-color: white;
}

[data-bs-theme="dark"] .context {
    background-color: #1a1d1f;
}

.context h2 {
    color: var(--burgundy);
    font-weight: 600;
}

.context .lead {
    color: var(--text-dark);
    line-height: 1.8;
}

.context p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Footer */
.footer {
    background-color: var(--dark-slate);
    color: white;
}

[data-bs-theme="dark"] .footer {
    background-color: #0d0f10;
}

.footer a {
    color: var(--gold);
}

.footer a:hover {
    color: white;
}

.footer .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Theme Toggle Button */
#theme-toggle {
    border-radius: 50%;
    width: 36px;
    height: 36px;
    padding: 6px 0 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

#theme-icon {
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        padding: 3rem 0;
        background-attachment: scroll;
    }

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

    .hero .lead {
        font-size: 1rem;
        padding: 1rem;
    }

    .edition-card {
        padding: 0.75rem;
    }

    .edition-year {
        font-size: 1rem;
    }

    .edition-badge {
        font-size: 0.65rem;
        padding: 0.15rem 0.4rem;
    }
}

/* Accessibility */
.edition-card:focus,
.feature-card:focus {
    outline: 2px solid var(--burgundy);
    outline-offset: 2px;
}

/* Smooth Transitions */
* {
    transition: background-color 0.3s ease, color 0.3s ease;
}

img.hd-logo {
    filter: invert(.9);
    margin-bottom: 4px;
}

/* Card Headers */
.card-header {
    color: var(--text-dark);
}

.bg-burgundy {
    background-color: var(--burgundy) !important;
}

.bg-burgundy.text-white {
    color: white !important;
}

/* Override Bootstrap's bg-light for dark mode */
[data-bs-theme="dark"] .bg-light {
    background-color: #232729 !important;
}

.page-link {
    color: initial
}
.page-link:hover {
    color: initial;
}
.active>.page-link, .page-link.active {
    /* z-index: 3; */
    background-color: var(--burgundy);
    border-color: var(--burgundy);
}
.btn-check:checked+.btn:focus-visible, .btn.active:focus-visible, .btn.show:focus-visible, .btn:first-child:active:focus-visible, :not(.btn-check)+.btn:active:focus-visible
{
    box-shadow: var(--burgundy);
}

.btn-check:checked+.btn, .btn.active, .btn.show, .btn:first-child:active, :not(.btn-check)+.btn:active {
    background-color: var(--burgundy);
    border-color: var(--burgundy);
}
.btn:focus-visible {
    background-color: var(--burgundy);
    border-color: var(--burgundy);
    outline: 0;
}


.browse-header {
    background-color: white;
    border-bottom: 2px solid var(--burgundy);
    padding: 2rem 0 1.5rem;
}

[data-bs-theme="dark"] .browse-header {
    background-color: #232729;
}

.browse-header h2 {
    color: var(--burgundy);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.browse-header .lead {
    color: var(--text-light);
}

.bg-burgundy {
    background-color: var(--burgundy) !important;
}

