/* Reset and Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

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

/* Layout Containers */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    background: #ffffff;
    min-height: 100vh;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
}

/* Header & Nav */
header {
    margin-bottom: 3rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 1rem;
}

.site-title {
    font-size: 2.5rem;
    color: #2c3e50;
    font-weight: 700;
}

.breadcrumb {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.breadcrumb a {
    color: #3498db;
}

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

/* Index Page Styles */
.intro-text {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 2rem;
    max-width: 700px;
}

.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.book-card {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
}

.book-cover-placeholder {
    height: 300px;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 3rem;
}

/* Actual images would go here using <img src=""> */
.book-cover-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.book-info {
    padding: 1rem;
}

.book-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.book-author {
    font-size: 0.9rem;
    color: #7f8c8d;
}

/* Detail Page Styles */
.book-header {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: flex-start;
}

.book-header-cover {
    width: 150px;
#    height: 220px;
    background-color: #ddd; /* Placeholder color */
    flex-shrink: 0;
    border-radius: 4px;
}

.book-meta h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.edition-badge {
    display: inline-block;
    background: #eee;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    color: #555;
    margin-top: 0.5rem;
}

/* Errata Table/List Styles */
.errata-list {
    list-style: none;
}

.errata-item {
    border-left: 4px solid #e74c3c; /* Red line indicates error */
    background-color: #fff5f5;
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 0 4px 4px 0;
}

/* Status: Fixed vs Open styling (Optional logic) */
.errata-item.fixed {
    border-left-color: #27ae60;
    background-color: #f0fdf4;
}

.file-location {
    font-family: 'Courier New', Courier, monospace;
    background-color: rgba(0,0,0,0.05);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-size: 0.9rem;
    color: #c0392b;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.error-description {
    color: #444;
}

.error-context {
    font-style: italic;
    color: #666;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

footer {
    text-align: center;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
    color: #999;
    font-size: 0.8rem;
}
