/* books.css */

main {
    max-width: 1000px;
    margin: auto;
    padding: 2rem;
}

.books-grid {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    margin-top: 2rem;
}

.book-card {
    display: flex;
    gap: 2rem;
    background: #1c1c1c;
    border: 1px solid #333;
    padding: 2rem;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: #d0b13f;
}

.book-cover {
    flex: 0 0 250px;
    position: relative;
}

.book-cover img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.book-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.book-tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    width: fit-content;
}

.tag-released { background: #2e7d32; color: white; }
.tag-preorder { background: #d0b13f; color: black; }
.tag-soon { background: #757575; color: white; }

.book-title {
    font-size: 2.5rem;
    margin: 0.5rem 0;
    color: #fff;
    font-family: 'Georgia', serif;
}

.book-series {
    color: #d0b13f;
    font-style: italic;
    margin-bottom: 1rem;
}

.book-blurb {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.purchase-links {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.retailer-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    background: #333;
    color: #fff;
    transition: background 0.2s;
    border: 1px solid transparent;
}

.retailer-btn:hover {
    background: #444;
    border-color: #d0b13f;
}

.retailer-btn.primary {
    background: #d0b13f;
    color: #000;
}

.retailer-btn.primary:hover {
    background: #e5c34f;
}

/* Excerpt Section */
.excerpt-toggle {
    background: none;
    border: 1px solid #d0b13f;
    color: #d0b13f;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-family: inherit;
    font-weight: bold;
    margin-top: 1rem;
    width: fit-content;
    transition: all 0.2s;
}

.excerpt-toggle:hover {
    background: #d0b13f;
    color: #000;
}

.excerpt-content {
    display: none;
    margin-top: 2rem;
    padding: 2rem;
    background: #f9f7f1;
    color: #111;
    border-radius: 4px;
    border-left: 5px solid #d0b13f;
    font-style: italic;
}

.excerpt-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

/* Countdown Styles */
.countdown-container {
    background: rgba(208, 177, 63, 0.1);
    border: 1px solid #d0b13f;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1.5rem;
    text-align: center;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.timer-unit {
    display: flex;
    flex-direction: column;
}

.timer-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #d0b13f;
}

.timer-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #aaa;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .book-card {
        flex-direction: column;
        padding: 1rem;
    }
    .book-cover {
        flex: 0 0 auto;
        width: 200px;
        margin: 0 auto;
    }
    .book-title {
        font-size: 1.8rem;
    }
}
