/* Global Styles */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #0d0d0d; /* True dark mode */
    color: #e0e0e0;
    text-align: center;
}

/* Header */
header {
    background: linear-gradient(135deg, #1a1a1a, #333);
    color: white;
    padding: 20px;
    font-size: 2rem;
    letter-spacing: 1px;
    font-weight: bold;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 0;
    z-index: 1000;
    text-transform: uppercase;
}

/* Input & Button Styling */
input, button {
    padding: 12px;
    margin: 10px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease-in-out;
}

input {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    outline: none;
    padding: 12px 15px;
    width: 300px;
    text-align: center;
    transition: 0.3s ease-in-out;
}

input::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

input:focus {
    border-color: #007bff;
    box-shadow: 0px 0px 12px rgba(0, 123, 255, 0.5);
}

/* Buttons */
button {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    cursor: pointer;
    font-weight: bold;
    letter-spacing: 0.5px;
    box-shadow: 0px 4px 10px rgba(0, 123, 255, 0.3);
    transition: 0.3s ease-in-out;
}

button:hover {
    background: linear-gradient(135deg, #0056b3, #003580);
    transform: scale(1.05);
    box-shadow: 0px 6px 15px rgba(0, 123, 255, 0.5);
}

/* Main Layout */
main {
    display: flex;
    justify-content: space-around;
    padding: 20px;
    flex-wrap: wrap;
    gap: 20px;
}

/* Book Sections */
#book-recommendations, #my-library {
    width: 45%;
    background: rgba(255, 255, 255, 0.08); /* Glassmorphism effect */
    padding: 20px;
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    position: relative;
    overflow: hidden;
}

#book-recommendations:hover, #my-library:hover {
    transform: translateY(-5px);
    box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.5);
}

/* Book Card Styling */
.book-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    margin: 12px 0;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    transition: background 0.3s ease-in-out, transform 0.2s;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.book-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.book-card img {
    width: 60px;
    height: 90px;
    border-radius: 5px;
    transition: transform 0.3s ease-in-out;
    box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.4);
}

.book-card img:hover {
    transform: scale(1.1);
}

/* Green "Add to Library" Button */
.book-card button {
    background: linear-gradient(135deg, #00c853, #00873d);
    color: white;
    border-radius: 8px;
    padding: 10px 15px;
    transition: all 0.3s ease-in-out;
    font-weight: bold;
    box-shadow: 0px 4px 10px rgba(0, 200, 83, 0.3);
}

.book-card button:hover {
    background: linear-gradient(135deg, #00873d, #005a2e);
    transform: scale(1.05);
    box-shadow: 0px 6px 15px rgba(0, 200, 83, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    main {
        flex-direction: column;
        align-items: center;
    }
    #book-recommendations, #my-library {
        width: 90%;
    }
}
