/* =========================================
   RESET & BASE
========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', Arial, sans-serif;
    background-color: #fffaf6;
    color: #4a4a4a;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

/* =========================================
   NAVIGATION
========================================= */
nav {
    position: sticky;
    top: 0;
    background: #fcdede;
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    z-index: 1000;
}

.nav-inner {
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .logo {
    font-family: 'Playfair Display', serif;
    font-weight: bold;
    font-size: 1.8rem;
    color: #7b3f61;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.2rem;
}

nav ul a {
    color: #7b3f61;
    font-weight: 500;
    transition: 0.2s;
}

nav ul a:hover {
    color: #a0577a;
}

/* =========================================
   HEADER
========================================= */
header {
    text-align: center;
    padding: 4rem 1rem 2.5rem;
    background: linear-gradient(135deg, #ffe4e1, #fffaf6);
}

header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: #7b3f61;
    margin-bottom: 0.8rem;
}

header p {
    color: #6b4a59;
    font-size: 1.15rem;
}

/* =========================================
   MAIN
========================================= */
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

/* =========================================
   WRITE REVIEW BUTTON
========================================= */
.write-review-btn {
    display: inline-block;
    background: #f7c6d5;
    color: #fff;
    padding: 10px 18px;
    border-radius: 12px;
    font-weight: 600;
    margin-bottom: 1.5rem;
    transition: 0.3s;
}

.write-review-btn:hover {
    background: #e89ab5;
}

/* =========================================
   FILTER BAR
========================================= */
.filter-bar {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.filter-form {
    background: #ffffff;
    padding: 16px 24px;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-form label {
    font-size: 0.9rem;
    color: #5a3d4c;
}

.filter-form select,
.filter-form input {
    padding: 8px 12px;
    border: 1px solid #e0c7d1;
    border-radius: 10px;
    font-size: 0.95rem;
}

.filter-form input {
    min-width: 180px;
}

.clear-btn {
    background: #c6a1b8;
    color: white;
    padding: 8px 16px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s;
}

.clear-btn:hover {
    background: #a87c99;
}

/* =========================================
   CARD GRID
========================================= */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
    gap: 2rem;
}

/* =========================================
   CARD
========================================= */
.card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    padding: 1.8rem;
    text-align: center;
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 36px rgba(0,0,0,0.1);
}

.card h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #7b3f61;
    margin-bottom: 0.5rem;
}

.author {
    color: #6b4a59;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

/* IMAGE */
.card-image {
    width: 65%;
    max-width: 180px;
    margin: 0.5rem auto 1rem;
    aspect-ratio: 2/3;
    overflow: hidden;
    border-radius: 16px;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* STARS */
.review-stars {
    color: gold;
    margin-bottom: 0.7rem;
}

/* EXCERPT */
.review-excerpt {
    font-size: 0.95rem;
    color: #555;
    min-height: 60px;
    margin-bottom: 1rem;
}

/* REVIEWER */
.reviewer {
    font-size: 0.9rem;
    color: #6b4a59;
    margin-bottom: 1rem;
}

/* BUTTONS */
.card-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.btn {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.3s;
}

.read-more-btn {
    background: #f7c6d5;
    color: #fff;
}

.read-more-btn:hover {
    background: #e89ab5;
}

.amazon-btn {
    background: #f9d7c4;
    color: #5a3d4c;
}

.amazon-btn:hover {
    background: #f1bfa3;
}

.delete-btn {
    background: #d48da3;
    color: white;
}

.delete-btn:hover {
    background: #b36b82;
}

/* =========================================
   EMPTY STATE
========================================= */
.empty {
    text-align: center;
    font-size: 1.2rem;
    color: #6b4a59;
    padding: 2rem;
}

/* =========================================
   FOOTER
========================================= */
footer {
    background: #fcdede;
    color: #7b3f61;
    padding: 2rem;
    text-align: center;
    margin-top: 3rem;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 700px) {
    nav ul {
        flex-wrap: wrap;
        gap: 0.6rem;
    }

    header h1 {
        font-size: 2.2rem;
    }

    .filter-form {
        justify-content: center;
    }

    .card-image {
        width: 55%;
    }
}

/* HERO */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #ffe4ec, #fff8f4);
    flex-wrap: wrap;
}
.hero-content h1 {
    font-size: 3rem;
    color: #7b3f61;
}
.hero-btn {
    background: #f7c6d5;
    color: white;
    padding: 12px 22px;
    border-radius: 14px;
    margin-top: 1.2rem;
}
.hero-art img {
    max-width: 350px;
}

/* SECTIONS */
.homepage section {
    text-align: center;
    margin: 3rem auto;
    max-width: 900px;
}

/* GENRES */
.genre-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}
.genre-card {
    background: white;
    padding: 1rem;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    font-weight: bold;
}

/* FEATURED */
.featured-card {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}
.featured-card img {
    width: 160px;
    border-radius: 16px;
}
.stars {
    color: #f2a2b3;
}

/* TESTIMONIALS */
.quotes {
    display: grid;
    gap: 1rem;
    font-style: italic;
}

/* CTA */
.cta-btn {
    background: #7b3f61;
    color: white;
    padding: 12px 24px;
    border-radius: 14px;
}

.heart-divider {
    text-align: center;
    margin: 3rem auto;
    padding: 1.5rem 0;
    background: linear-gradient(90deg, #ffe6ef, #fff8f5, #ffe6ef);
    border-top: 2px solid #f3b8c8;
    border-bottom: 2px solid #f3b8c8;
    border-radius: 30px;
    box-shadow: 0 0 18px rgba(255, 182, 193, 0.25);
    max-width: 900px;
}

.heart-divider span {
    font-size: 1.8rem;
    color: #e06a8c;
    margin: 0 .4rem;
}