/* book/style.css */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
    padding: 20px;
}

.container {
    max-width: 900px;
    margin: auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

header p {
    font-size: 1.1em;
    opacity: 0.9;
}

.no-books {
    text-align: center;
    padding: 60px 30px;
    color: #666;
    font-style: italic;
}

.book-list {
    list-style: none;
    padding: 20px;
}

.book-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    transition: background 0.2s ease;
}

.book-item:hover {
    background-color: #f0f4ff;
}

.book-title {
    font-weight: 600;
    font-size: 1.1em;
    color: #2c3e50;
    flex-grow: 1;
}

.book-meta {
    font-size: 0.9em;
    color: #7f8c8d;
    margin-right: 15px;
}

.download-btn {
    background-color: #3498db;
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9em;
    transition: background 0.3s ease;
}

.download-btn:hover {
    background-color: #2980b9;
}

footer {
    text-align: center;
    padding: 20px;
    background-color: #f0f0f0;
    font-size: 0.9em;
    color: #7f8c8d;
}

@media (max-width: 600px) {
    .book-item {
        flex-direction: column;
        text-align: left;
        gap: 8px;
    }

    .download-btn {
        align-self: flex-start;
    }

    header h1 {
        font-size: 2em;
    }
}
