/* File Path: c:\projects\afterlightbooks\pelican_site\theme\static\style.css */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    background-color: #f9f9f9;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.site-header {
    background-color: #232f3e;
    padding: 20px 40px;
    color: white;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-header h1 {
    margin: 0;
    font-size: 28px;
}

.site-header h1 a {
    color: white;
    text-decoration: none;
}

.site-header nav a {
    color: #FF9900;
    text-decoration: none;
    margin-left: 20px;
    font-size: 16px;
    font-weight: bold;
}

.site-header nav a:hover {
    text-decoration: underline;
}

.page-title {
    text-align: center;
    font-size: 32px;
    color: #0F1111;
    margin-bottom: 30px;
}

.book-grid {
    display: grid;
    /* This creates 5 columns on large screens, 4 on medium, etc. */
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
}

.book-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.book-card img {
    width: 100%;
    height: 300px;
    /* Gives all covers a uniform height */
    object-fit: cover;
    /* Scales the image to fit */
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.book-cover-link {
    display: block;
}

.book-info {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.book-title {
    font-size: 16px;
    color: #0F1111;
    height: 3.2em;
    /* Gives 2 lines for the title */
    line-height: 1.6em;
    overflow: hidden;
    margin: 0 0 15px 0;
    flex-grow: 1;
}

.book-title a {
    color: #0F1111;
    text-decoration: none;
}

.book-title a:hover {
    color: #C7511F;
}

.amazon-button {
    display: inline-block;
    background-color: #FF9900;
    color: #0F1111;
    padding: 10px 15px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    margin-top: 10px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.amazon-button:hover {
    background-color: #E68A00;
}

.site-footer {
    text-align: center;
    padding: 20px;
    margin-top: 20px;
    color: #555;
    font-size: 14px;
}

/* --- STYLES FOR 'ABOUT' PAGE --- */

.page-content {
    max-width: 900px;
    margin: 0 auto; /* Center the page content */
}

.about-layout {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    gap: 30px;
    align-items: flex-start;
}

.about-photo {
    flex-basis: 250px; /* Set a base width for the photo */
    flex-grow: 1;
    min-width: 200px;
}

.about-photo img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.about-bio {
    flex-basis: 400px; /* Set a base width for the text */
    flex-grow: 2; /* Make the bio take up more space */
    font-size: 16px;
    line-height: 1.7;
    color: #333;
}

.about-bio p {
    margin-bottom: 1.5em; /* Add spacing between paragraphs */
}

/* --- STYLES FOR BOOK DETAIL (BLURB) PAGE --- */

.book-detail-layout {
    display: flex;
    flex-wrap: wrap; /* Allows it to stack on small screens */
    gap: 40px;
    max-width: 1000px;
    margin: 20px auto;
    padding: 20px;
}

.book-detail-cover {
    flex: 1; /* Make it flexible */
    min-width: 300px; /* Don't let it get smaller than 300px */
}

.book-detail-cover img {
    width: 100%;
    max-width: 400px; /* Max width for the image */
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.book-detail-info {
    flex: 2; /* Make this section take up 2/3 of the space */
    min-width: 300px;
}

.book-detail-title {
    font-size: 32px;
    color: #0F1111;
    margin-top: 0;
    margin-bottom: 20px;
    line-height: 1.3;
}

.book-detail-info .amazon-button {
    /* We can re-use the button style from the main page */
    font-size: 16px;
    padding: 12px 20px;
}

.book-detail-blurb {
    margin-top: 30px;
    font-size: 16px;
    line-height: 1.7;
    color: #333;
}

.book-detail-blurb p {
    margin-bottom: 1.5em; /* Add spacing between paragraphs */
}