/* Basic Reset & Defaults */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

.container {
    max-width: 960px;
    margin: auto;
    overflow: hidden; /* Clear floats if needed, good practice */
    padding: 0 20px;
}

/* Header & Navigation */
header {
    background: #eaf6f6; /* Light cyan similar to cover */
    padding: 1rem 0;
    border-bottom: 1px solid #ccc;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #0056b3; /* Dark Blue */
}

header nav ul {
    list-style: none;
    display: flex;
}

header nav ul li {
    margin-left: 20px;
}

header nav ul li a {
    text-decoration: none;
    color: #0056b3; /* Dark Blue */
    font-weight: bold;
}

header nav ul li a:hover {
    color: #333;
}

/* Main Content Sections */
main {
    padding: 20px 0;
}

.card {
    background: #fff;
    border: 1px solid #ccc;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* Subtle shadow */
}

/* Author Bio Section */
#bio .author-bio-content {
    display: flex;
    align-items: flex-start; /* Align items to the top */
    gap: 20px; /* Space between image and text */
}

.author-photo {
    max-width: 150px; /* Adjust size as needed */
    height: auto;
    border-radius: 50%; /* Makes it circular */
    border: 3px solid #eee;
}

.author-text h2 {
    margin-bottom: 10px;
    color: #0056b3;
}

/* Latest Book & Signup Row */
.book-signup-row {
    display: flex;
    gap: 20px; /* Space between the two cards */
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

.card-half {
    flex: 1; /* Make cards share space */
    min-width: 300px; /* Minimum width before wrapping */
}

#latest-book h2, #signup h2, #connect h2 {
     margin-bottom: 15px;
     color: #0056b3;
}
#latest-book h3 {
    margin-top: 10px;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.book-cover-small {
    max-width: 120px; /* Adjust as needed */
    height: auto;
    float: left; /* Image floats left */
    margin-right: 15px; /* Space between image and text */
    margin-bottom: 10px;
}

#latest-book p {
    margin-bottom: 15px;
    clear: left; /* Ensure paragraph starts below floated image if text is short */
}
#latest-book p:first-of-type {
    clear:none; /* Allow first paragraph next to image */
}


/* Button Styling */
.button {
    display: inline-block;
    background: #007bff; /* Bootstrap blue */
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 10px;
}

.button:hover {
    background: #0056b3; /* Darker blue */
}

/* Email Signup Form */
#signup .form-group {
    margin-bottom: 15px;
}

#signup label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

#signup input[type="text"],
#signup input[type="email"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#signup button {
    width: 100%; /* Make button full width */
}

#signup small {
    display: block;
    margin-top: 10px;
    color: #666;
    text-align: center;
}

/* Connect Section */
#connect .social-icons {
    display: flex;
    justify-content: center; /* Center icons */
    gap: 15px;
}

#connect .social-icons img {
    width: 32px; /* Adjust icon size */
    height: 32px;
}


/* Footer */
footer {
    background: #ddd;
    color: #333;
    text-align: center;
    padding: 1rem 0;
    margin-top: 20px;
    border-top: 1px solid #ccc;
}

footer nav ul {
     list-style: none;
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}
footer nav ul li {
    margin: 0 10px;
}
footer nav ul li a {
    text-decoration: none;
    color: #333;
}
footer nav ul li a:hover {
    color: #000;
}


/* Responsive Design */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        text-align: center;
    }

    header nav ul {
        margin-top: 10px;
        justify-content: center;
    }

    #bio .author-bio-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .book-signup-row {
        flex-direction: column;
    }

    .book-cover-small {
        float: none;
        display: block;
        margin: 0 auto 15px auto; /* Center the book cover */
    }
     #latest-book p {
        clear: none; /* No float clearing needed */
    }
}

@media (max-width: 480px) {
    header .logo {
        font-size: 1.2rem;
    }
    header nav ul li {
        margin-left: 10px;
    }
    .author-photo {
        max-width: 120px;
    }
    .card {
        padding: 15px;
    }
}




#purchase-links {
    text-align: center; /* Center the heading and icon container */
}

#purchase-links h2 {
    margin-bottom: 20px; /* Space below the heading */
    color: #0056b3; /* Match other headings */
}

.store-icon-list {
    display: flex; /* Arrange icons in a row */
    flex-wrap: wrap; /* Allow icons to wrap onto multiple lines */
    justify-content: center; /* Center the icons horizontally */
    align-items: center; /* Align icons vertically if they wrap */
    gap: 15px 20px; /* Vertical and horizontal gap between icons */
    padding-top: 10px; /* Space above the icons */
}

.store-icon-list a {
    display: inline-block; /* Treat links properly */
    line-height: 0; /* Helps prevent extra space below images */
    /* Remove any default link underlines if desired */
    /* text-decoration: none; */
}

.store-icon-list img.store-icon { /* Targeting images with the store-icon class */
    height: 45px; /* Adjust consistent height for icons */
    width: auto; /* Maintain aspect ratio */
    max-width: 100px; /* Prevent icons like Smashwords from becoming too wide */
    vertical-align: middle;
    transition: transform 0.2s ease, opacity 0.2s ease; /* Smooth hover effect */
    border: 1px solid #eee; /* Optional subtle border */
    padding: 2px; /* Optional small padding inside border */
    background-color: #fff; /* Ensure background doesn't interfere */
}

.store-icon-list img.store-icon:hover {
    opacity: 0.8;
    transform: scale(1.05);
}
