/* --- MY LIST PAGE STYLES --- */

.library-header {
    padding: 0 2rem;
    margin-bottom: 2rem;
}

.mylist-page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
    padding: 0; /* Reset padding as parent handles it now */
}

/* --- STATS & FILTERS --- */
.library-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.library-stats {
    font-size: 0.9rem;
    color: var(--text-color-secondary);
    display: flex;
    gap: 15px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 12px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.genre-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 5px;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--text-color-secondary);
    color: var(--text-color-secondary);
    padding: 6px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* --- ENHANCED BOOK CARD INFO --- */
.book-card-info {
    padding: 12px;
}

.book-card-title {
    font-size: 1rem;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* New Metadata Styles */
.book-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
}

.genre-badge {
    font-size: 0.7rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    color: #ddd;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.author-name {
    font-size: 0.75rem;
    color: #888;
    font-style: italic;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* --- EXISTING STYLES (Keep these) --- */
.empty-list-message {
    font-size: 1.2rem;
    color: var(--text-color-secondary);
    text-align: center;
    padding: 6rem 2rem;
    background-color: rgba(255,255,255, 0.02);
    border-radius: 8px;
    margin: 2rem;
}

.book-scroll-container {
    padding: 20px 20px 40px 20px !important;
    margin: -20px;
}

.bookmark-ribbon {
    position: absolute;
    top: -5px;
    left: 15px;
    width: 28px;
    height: 45px;
    z-index: 60;
    cursor: pointer;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%);
    transition: transform 0.2s ease, background-color 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.bookmark-ribbon.is-private { background-color: #E50914; }
.bookmark-ribbon.is-public { background-color: #4CAF50; }
.bookmark-ribbon.is-golden { background-color: #FFD700; cursor: default; }
.bookmark-ribbon.is-golden:hover { transform: none; filter: none; }
.bookmark-ribbon:hover { transform: translateY(-2px); filter: brightness(1.2); }

.list-delete-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 60;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.6); 
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.2s ease;
    cursor: pointer;
}
.book-card:hover .list-delete-btn { opacity: 1; transform: scale(1); }
.list-delete-btn:hover { background-color: #E50914; border-color: #E50914; transform: scale(1.1) !important; }

@media (max-width: 768px) {
    .mylist-page-title { font-size: 2rem; }
    .list-delete-btn { opacity: 1; transform: scale(1); }
    .library-header { padding: 0 1rem; }
}

/* --- BADGE NOTIFICATION TOAST --- */
.badge-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: linear-gradient(135deg, #1a1a1a, #333);
    border: 1px solid #FFD700;
    border-radius: 12px;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 9999;
    pointer-events: none;
}

.badge-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.badge-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

.badge-info h4 {
    margin: 0;
    color: #FFD700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.badge-info h3 {
    margin: 2px 0 0 0;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
}

.badge-info p {
    margin: 2px 0 0 0;
    color: #ccc;
    font-size: 0.85rem;
}