:root {
    --bg-color: #141414;
    --card-bg: #ffffff; 
    --text-main: #1e293b;
    --text-muted: #64748b;
    --accent-color: #ef4444;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: #f8fafc;
    padding: clamp(40px, 8vw, 100px) 20px; /* Responsive padding */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header {
    text-align: center;
    margin-bottom: 50px;
}

/* RESPONSIVE FONT: Scales between 1.8rem and 2.5rem */
.header h1 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.header p {
    color: #94a3b8;
    max-width: 620px;
    font-size: clamp(0.9rem, 2vw, 1.1rem); /* Responsive sub-text */
    margin: 0 auto;
}

.container {
    width: 100%;
    max-width: 1200px;
}

.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}

/* Card Style */
.book-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid transparent; /* Base border for hover effect */
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* UPDATED HOVER EFFECT */
.book-card:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.2); /* Matching your accent-color red */
    border-color: #555;
}

.book-cover {
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.book-info {
    padding: 20px;
    text-align: left;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.book-info h3 {
    color: var(--text-main);
    font-size: clamp(1.1rem, 2vw, 1.25rem); /* Responsive title */
    font-weight: 700;
    margin-bottom: 4px;
}

.book-info .author {
    color: var(--accent-color);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.book-info .desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-top: auto;
}

/* Mobile Adjustments */
@media (max-width: 600px) {
    .book-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .book-cover {
        height: 200px; /* Adjusted for better mobile aspect ratio */
    }
    
    .header {
    text-align: center;
    margin-top: 50px;
}

}