body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f2f5f9;
}

header {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    color: white;
    text-align: center;
    padding: 30px 10px;
}

.container {
    width: 90%;
    max-width: 1000px;
    margin: auto;
}

h2 {
    margin-top: 35px;
}

.book-card {
    display: flex;
    background: white;
    margin: 20px 0;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    overflow: hidden;
}

.book-card img {
    width: 150px;
    height: 210px;
    object-fit: cover;
}

.book-info {
    padding: 15px;
    flex: 1;
}

.book-info h3 {
    margin-top: 0;
}

.stats {
    font-size: 13px;
    color: #555;
    margin-top: 8px;
}

button {
    margin-top: 10px;
    padding: 8px 15px;
    border: none;
    border-radius: 6px;
    background: #4facfe;
    color: white;
    cursor: pointer;
}

button:hover {
    background: #3a9ee8;
}

audio {
    width: 100%;
    margin-top: 10px;
}
.pdf-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 15px;
    background: #4facfe;
    color: white;
    text-decoration: none;
    border-radius: 6px;
}
.navbar {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    color: white;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo {
    font-size: 20px;
    font-weight: bold;
}

.navbar nav a {
    color: white;
    margin-left: 20px;
    text-decoration: none;
    font-weight: 500;
}

.navbar nav a:hover {
    text-decoration: underline;
}
.genres {
    margin: 20px 0;
}

.genres button {
    margin: 5px;
    padding: 8px 15px;
    border: none;
    border-radius: 20px;
    background: #e0e0e0;
    cursor: pointer;
}

.genres button:hover {
    background: #4facfe;
    color: white;
}
/* Navbar */
.navbar {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 0 0 15px 15px;
    position: relative;
}

.navbar .logo {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 15px;
    letter-spacing: 1px;
    text-align: center;
}

.nav-links {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    transition: all 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    background: white;
    left: 0;
    bottom: 0;
    transition: all 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: #fffdd0; /* yumshoq sariq effekt */
}

/* Hamburger menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    margin-top: 10px;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 25px;
    background: white;
    border-radius: 3px;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        gap: 15px;
        width: 100%;
        text-align: center;
        margin-top: 15px;
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }
}
