/* --- Global Dark Theme Setup --- */
:root {
    color-scheme: dark;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
    background-color: #1a1a1a; /* Dark background */
    color: #ffffff;            /* Global white text */
}

.container {
    max-width: 900px;
    margin: 0 auto;
}

/* --- Links & Navigation --- */
a {
    color: #4da6ff; /* Visible blue for links */
    text-decoration: underline;
}

.home-link {
    display: inline-block;
    text-decoration: none;
    color: #aaa;
    font-weight: bold;
    margin-bottom: 20px;
}

.home-link:hover { color: #ffffff; }

/* --- Bio & Header Section --- */
/* .bio-section h1 { font-size: 2.5rem; margin-bottom: 10px; color: #ffffff; } */
.contact-area { 
    text-align: center;
    margin-top: 20px;
    font-style: italic;
}

.contact-link { 
    color: #ff9900; 
    font-weight: bold; 
}

hr { 
    border: 0;
    border-top: 1px solid #fff;
    margin: 40px 0; 
    opacity: 0.9;
}

h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 10px; 
    color: #ffffff;
}

/* --- Home Grid (Series Selector) --- */
.series-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
}

.series-card {
    flex: 1 1 250px;
    text-decoration: none;
    text-align: center;
}

.series-card img { 
    width: 100%; 
    max-width: 400px;
    height: auto;
    border-radius: 4px;
    image-rendering: -webkit-optimize-contrast; /* Keeps title art sharp */
    border: 1px solid #ffffff; /* Adds the border to the banners too */
    box-sizing: border-box;
    display: block;
    margin: 0 auto;
}

/* --- Book Entry Layout --- */
.series-header img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 8px;
    border: 1px solid #ffffff; /* Adds the border to the banners too */
    box-sizing: border-box;
    display: block;
    margin: 0 auto;
    margin-bottom: 50px;
}

.book-entry {
    display: flex;
    flex-wrap: wrap; 
    gap: 40px;
    margin-bottom: 80px;
}

.left-col { flex: 0 0 250px; }
.right-col { flex: 1 1 350px; }

.right-col h2 { color: #ffffff !important; margin-top: 0; }
.right-col p, .right-col li { color: #cccccc; }

.cover-img { 
    width: 100%; 
    height: auto; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.5); 
    margin-top: 12px; 
    
    border: 1px solid #ffffff; 
    box-sizing: border-box;
}

/* --- Buttons & Reviews --- */
.button-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.btn {
    display: block;
    text-align: center;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
}

.amazon { 
    background: #ff9900; 
    color: #1a1a1a !important; 
}

.amazon:hover { background: #e68a00; }

/* Review Box */
.review-box {
    margin-top: 10px;
    text-align: center;
    background: #262626; 
    border-radius: 4px;
}

.review-label {
    display: block;
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 12px;
    color: #fff;
}

.country-links {
    display: flex;
    justify-content: center; 
    gap: 8px; 
}

/* Review buttons: White text on dark grey background */
.btn.review {
    background: #ff9900;
    color: #000 !important;
    padding: 8px 0;         
    font-size: 1rem;
    width: 42px;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    display: inline-block; 
}

.btn.review:hover { background: #555; }

/* --- Mobile Responsiveness --- */
@media (max-width: 600px) {
    .left-col, .right-col {
        flex: 1 1 100%;
    }
    .series-card {
        flex: 1 1 100%;
        margin-bottom: 20px;
    }
}