/* ===== BASE STYLES ===== */
:root {
    --navy-dark: #0f172a;
    --navy-medium: #1e293b;
    --slate: #475569;
    --slate-light: #94a3b8;
    --white: #ffffff;
    --off-white: #f8fafc;
    --blue-accent: #3b82f6;
    --blue-hover: #2563eb;
    --gray-light: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --radius: 12px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--navy-dark);
    background-color: var(--off-white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== NAVBAR STYLES ===== */
.navbar {
    background-color: var(--navy-dark);
    color: var(--white);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--white), var(--slate-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo .subtitle {
    font-size: 0.9rem;
    color: var(--slate-light);
    margin-top: 0.25rem;
}

.search-container {
    display: flex;
    gap: 0.5rem;
    flex: 1;
    max-width: 400px;
}

#searchInput {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--navy-medium);
    background: var(--navy-medium);
    color: var(--white);
    border-radius: var(--radius);
    font-size: 0.95rem;
    transition: var(--transition);
}

#searchInput:focus {
    outline: none;
    border-color: var(--blue-accent);
    background: var(--navy-dark);
}

#searchInput::placeholder {
    color: var(--slate-light);
}

#searchBtn {
    background: var(--blue-accent);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

#searchBtn:hover {
    background: var(--blue-hover);
    transform: translateY(-1px);
}

/* ===== HERO SECTION ===== */
.hero {
    text-align: center;
    padding: 3rem 0;
    max-width: 800px;
    margin: 0 auto;
}

.hero h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--navy-dark);
    line-height: 1.2;
}

.hero p {
    font-size: 1.1rem;
    color: var(--slate);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== BOOKS GRID ===== */
.books-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    padding: 2rem 0 4rem;
}

.book-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.book-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.book-image {
    height: 300px;
    overflow: hidden;
}

.book-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.book-card:hover .book-image img {
    transform: scale(1.05);
}

.book-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.book-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--navy-dark);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.book-author {
    font-size: 0.9rem;
    color: var(--slate);
    margin-bottom: 1rem;
    flex: 1;
}

.read-btn {
    background: var(--blue-accent);
    color: var(--white);
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    width: 100%;
}

.read-btn:hover {
    background: var(--blue-hover);
    transform: translateY(-2px);
}

/* ===== NO RESULTS ===== */
.no-results {
    text-align: center;
    padding: 3rem;
    background: var(--white);
    border-radius: var(--radius);
    margin: 2rem auto;
    max-width: 600px;
}

.no-results p {
    font-size: 1.1rem;
    color: var(--slate);
}

/* ===== FOOTER ===== */
footer {
    background: var(--navy-dark);
    color: var(--white);
    padding: 2rem 0;
    margin-top: auto;
}

footer .container {
    text-align: center;
}

footer p {
    margin-bottom: 0.5rem;
}

.footer-note {
    font-size: 0.9rem;
    color: var(--slate-light);
}