/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Header and Navigation */
header {
    background-color: #2c3e50;
    padding: 1rem;
    position: sticky;
    top: 0;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

.logo a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.logo a:visited {
    color: white;
}

.logo a:hover {
    color: white;
    text-decoration: none;
}

.logo a:active {
    color: white;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #3498db;
}

/* Main content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
}

.hero {
    text-align: center;
    padding: 2.5rem 0;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.subtitle {
    font-size: 1.2rem;
    color: #666;
}

.series-overview, .featured-books {
    margin-bottom: 3rem;
}

h2 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.book-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.book-preview {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 2rem;
    padding: 1.5rem;
    text-align: left;
}

.book-preview img {
    max-width: 100px;
    height: auto;
    margin-bottom: 0;
}

.book-info-preview {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.book-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 110px;
}

.read-more, .buy-button, .coming-soon {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    width: 110px;
    height: 28px;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.75rem;
    margin: 0.3rem 0;
    font-weight: normal;
    line-height: 1;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
}

.read-more {
    background-color: #3498db;
    color: white;
    transition: background-color 0.3s;
}

.read-more:hover {
    background-color: #2980b9;
}

.buy-button {
    background-color: #f90;
    color: black;
    transition: background-color 0.3s;
    margin-left: 0;
}

.buy-button:hover {
    background-color: #f70;
}

.coming-soon {
    background-color: #e0e0e0;
    color: #666;
    font-style: italic;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background-color: #2c3e50;
    color: white;
    margin-top: 3rem;
}

/* Responsive design */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .hero {
        padding: 2rem 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .book-preview {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .book-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

/* Add these styles to your existing CSS file */
.book-detail {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.book-header {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.book-header img {
    max-width: 189px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.book-info {
    flex: 1;
}

.book-info h1 {
    margin-bottom: 1rem;
}

.book-description {
    line-height: 1.8;
}

@media (max-width: 768px) {
    .book-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

.preview-description {
    font-size: 0.9rem;
    color: #666;
    margin: 1rem 0;
    line-height: 1.4;
}

.book-description p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.book-info h2 {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 1.5rem;
}

/* Add these styles for the new links */
.book-image-link {
    display: block;
    text-decoration: none;
}

.book-title-link {
    text-decoration: none;
    color: inherit;
}

.book-title-link:hover, 
.book-title-link:visited, 
.book-title-link:active {
    color: inherit;
    text-decoration: none;
}

.book-title-link h3,
.book-title-link p {
    color: inherit;
}

/* Add styling for series overview paragraphs */
.series-overview p {
    margin-bottom: 1.5rem;
    text-align: justify;
    line-height: 1.8;
}

.series-overview p:last-child {
    margin-bottom: 0;
}
  