/* RESET & BASE */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { background-color: #0a0a05; color: #ffb000; font-family: 'Courier New', monospace; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* HEADER AMBER */
.library-header {
    background: #000;
    border-bottom: 2px solid #ffb000;
    padding: 15px 0;
}

.header-flex { display: flex; justify-content: space-between; align-items: center; }

.status-badge {
    background: #ffb000;
    color: #000;
    font-weight: bold;
    font-size: 0.7rem;
    padding: 2px 8px;
    display: inline-block;
}

.path-text { font-size: 0.9rem; margin-top: 5px; opacity: 0.8; }

/* NAV & BUTTONS */
.nav-group { display: flex; align-items: center; gap: 20px; }
.language-buttons { display: flex; gap: 10px; }

.lang-btn {
    background: transparent;
    border: 1px solid #443500;
    color: #ffb000;
    padding: 4px 8px;
    cursor: pointer;
}

.lang-btn:hover, .lang-btn.active { background: #ffb000; color: #000; }

.home-icon-link {
    text-decoration: none;
    color: #ffb000;
    text-align: center;
    border-left: 1px solid #333;
    padding-left: 15px;
}

.exit-text { display: block; font-size: 0.6rem; font-weight: bold; }

/* GRID & CARDS */
.library-page { padding: 60px 0; }
.page-title { font-size: 2rem; margin-bottom: 10px; color: #ffb000; }
.section-intro { color: #888; margin-bottom: 40px; font-family: sans-serif; }

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.book-card {
    background: #111;
    border: 1px solid #222;
    padding: 15px;
    transition: all 0.3s ease;
}

.book-card:hover {
    border-color: #ffb000;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255, 176, 0, 0.1);
}

.book-cover-wrapper {
    width: 100%;
    height: 300px;
    overflow: hidden;
    margin-bottom: 15px;
    border: 1px solid #333;
}

.book-cover {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Mantiene le proporzioni delle copertine */
    filter: grayscale(20%);
    transition: 0.3s;
}

.book-card:hover .book-cover { filter: grayscale(0%); }

.book-title { color: #fff; font-size: 1.1rem; margin-bottom: 5px; font-family: sans-serif; }
.book-author { color: #ffb000; font-size: 0.9rem; opacity: 0.8; }

/* RESPONSIVE */
@media (max-width: 768px) {
    .header-flex { flex-direction: column; gap: 15px; }
}