﻿body {
    background-color: #0e0e0e;
    color: #e4e4e4;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
}

.landing-header {
    background-image: url('/images/hero.webp');
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 256px; /* Matches your image height */
    max-width: 1296px; /* Optional, if you want to cap layout */
    margin: 0 auto; /* Optional: center within the page */
    padding: 80px 20px;
    color: white;
    text-shadow: 1px 1px 4px black;
    text-align: center;
    box-sizing: border-box;
}

}
.landing-header-wrapper {
    position: relative;
    height: 600px; /* Adjust as needed */
    overflow: hidden;
}

.lazy-hero {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.landing-header-text {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    padding: 80px 20px;
    text-shadow: 1px 1px 4px black;
}
.logo-wrapper {
    text-align: center;
    margin-top: 40px;
}

.site-logo {
    width: 150px;
    height: auto;
    margin-bottom: 20px;
}

    .site-logo:hover {
        transform: scale(1.05);
        transition: transform 0.3s ease;
    }

/* Card Section */
.card-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    padding: 30px;
}

.card-box {
    background: rgba(15, 15, 15, 0.95);
    background-image: url('/images/card-fantasy.jpg');
    background-size: cover;
    background-blend-mode: overlay;
    color: #fff;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 25px;
    width: 300px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    transition: transform 0.2s ease;
}

    .card-box:hover {
        transform: translateY(-5px);
    }

    .card-box h2 {
        color: #ffffff;
        margin-bottom: 15px;
    }

    .card-box p {
        color: #cccccc;
        margin-bottom: 20px;
    }

.card-button {
    background-color: #5c5cff;
    border: none;
    color: white;
    padding: 10px 20px;
    font-size: 1em;
    border-radius: 6px;
    cursor: pointer;
}

    .card-button:hover {
        background-color: #4040ff;
    }

.card.bg-dark {
    background-color: #1f1f1f !important;
    border: 1px solid #333;
}

/* Bootstrap Buttons */
.btn-primary {
    background-color: #5c5cff;
    border-color: #5c5cff;
}

    .btn-primary:hover {
        background-color: #4040ff;
        border-color: #4040ff;
    }

    /* store & featured Book Layout Shared */
    .book-listing-wrapper {
        max-width: 900px;
        margin: 40px auto;
        padding: 10px;
    }

    .book-card-horizontal {
        background-color: #1a1a1a;
        border: 1px solid #444;
        border-radius: 10px;
        margin-bottom: 30px;
        padding: 20px;
        color: #e4e4e4;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    }

    .book-card-top {
        display: flex;
        gap: 20px;
        align-items: flex-start;
    }

    .book-cover {
        width: 160px;
        height: auto;
        border-radius: 6px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    }

    .book-card-details {
        flex-grow: 1;
        padding: 15px;
        background-color: #2a2a2a;
        border: 1px solid #444;
        border-radius: 10px;
        box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.4);
    }

    .book-card-details h3 {
        font-size: 2rem;
        font-weight: 800;
        color: #5c5cff;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        margin-bottom: 0.75rem;
    }

    .book-card-details .description {
        margin: 0;
        line-height: 1.6;
    }

    .book-card-bottom {
        margin-top: 15px;
        font-size: 0.95em;
    }

    .book-card-bottom a {
        color: #5c5cff;
        text-decoration: none;
    }

        .book-card-bottom a:hover {
            text-decoration: underline;
        }

    .hook-text {
        font-weight: 600;
        font-size: 1.1rem;
        color: #ccc;
        font-style: italic;
        margin-bottom: 1rem;
        padding-left: 8px;
        border-left: 3px solid #5c5cff;
    }

    .hook-text:empty,
    .hook-text:blank {
        display: none;
    }
    .review-link {
        color: #007acc;
        font-weight: bold;
        text-decoration: none;
    }

    .review-link:hover {
        text-decoration: underline;
    }


/* Legacy book-card (if any remain in use) */
.book-card {
    background-color: #1a1a1a;
    color: white;
    padding: 20px;
    margin: 20px 0;
    border-radius: 10px;
    border: 1px solid #444;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    text-align: center;
}

    .book-card img.book-cover {
        width: 160px;
        height: auto;
        border-radius: 5px;
        margin-bottom: 10px;
    }

/* featured Book Page */
.book-featured-wrapper {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
    color: #e4e4e4;
    background-color: #1c1c1c;
    border-radius: 10px;
    border: 1px solid #444;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.6);
}

.book-featured-top {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.book-featured-cover {
    width: 160px;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.book-featured-details {
    flex-grow: 1;
    padding: 15px;
    background-color: #1d1d1d;
    border: 1px solid #555;
    border-radius: 12px;
    box-shadow: 0 0 8px rgba(90, 90, 255, 0.2);
}

    .book-featured-details h2 {
        font-size: 1.9rem;
        font-weight: 700;
        color: #f0f0f0;
        text-shadow: 1px 1px 3px rgba(92, 92, 255, 0.3);
        margin-bottom: 0.5rem;
        margin-top: 0;
    }

    .book-featured-details .description {
        font-size: 1em;
        line-height: 1.6;
    }

.book-featured-bottom {
    margin-top: 20px;
    font-size: 0.95em;
}

    .book-featured-bottom .buy-links a {
        color: #5c5cff;
        text-decoration: none;
    }

        .book-featured-bottom .buy-links a:hover {
            text-decoration: underline;
        }

/* about Page Section Boxes */
.about-section {
    background-color: #1e1e1e;
    border: 1px solid #444;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 0 10px rgba(0,0,0,0.4);
}

/* contact Page Enhancements */
form .form-group {
    margin-bottom: 1.5rem;
}

    form .form-group label {
        font-weight: 600;
        color: #ddd;
    }

form .form-control {
    background-color: #2a2a2a;
    color: #e4e4e4;
    border: 1px solid #555;
    border-radius: 8px;
    padding: 10px;
}

    form .form-control:focus {
        border-color: #5c5cff;
        outline: none;
        box-shadow: 0 0 5px rgba(92, 92, 255, 0.5);
    }

form .text-danger {
    font-size: 0.875em;
    margin-top: 5px;
    display: block;
}

form .text-success {
    font-size: 1em;
    margin-bottom: 10px;
    color: #5cffa3;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .book-featured-top,
    .book-listing-wrapper {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .book-featured-details h2 {
        font-size: 1.9rem;
        font-weight: 700;
        color: #f0f0f0;
        text-shadow: 1px 1px 3px rgba(92, 92, 255, 0.3);
        margin-bottom: 0.5rem;
    }

    .book-featured-cover {
        width: 80%;
        max-width: 200px;
        height: auto;
        margin: 0 auto;
    }

    .book-card {
        flex-direction: column;
        align-items: center;
        padding: 15px;
    }

        .book-card img {
            width: 80%;
            max-width: 200px;
        }

    .book-card-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .book-card-details {
        width: 100%;
        margin-top: 15px;
        padding: 10px;
    }

    .book-cover {
        width: 80%;
        max-width: 200px;
        height: auto;
        margin: 0 auto;
    }
}
