/* collection_list.css — Collection list page unique styles */

.collection-card {
    border: 1px solid #ccc; border-radius: 4px; padding: 15px;
    margin-bottom: 15px; background: #f9f9f9; transition: box-shadow 0.2s;
}
.collection-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.collection-card h2 { margin: 0 0 10px 0; position: relative; }
.collection-card h2 a { color: #417690; text-decoration: none; }
.collection-card h2 a:hover { text-decoration: underline; }
.collection-card h2 .collection-icon {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    line-height: 1;
    white-space: nowrap;
}
.collection-card h2 .collection-icon .label {
    font-size: 10px;
    font-weight: bold;
    color: #fff;
    background: #417690;
    border-radius: 3px;
    padding: 1px 5px;
    vertical-align: middle;
    margin-left: 2px;
}
.collection-card .description { color: #666; margin-bottom: 10px; }
.collection-card .stats {
    font-size: 12px; color: #666; display: flex; flex-wrap: wrap;
    gap: 8px; margin-top: 10px;
}
.collection-card .stats .stat-item { background: #eee; padding: 2px 8px; border-radius: 3px; }
.collection-card .stats .stat-item.loading { background: #f5f5f5; color: #bbb; }
.collection-card .stats .stat-item.unlearned { background: #e3f2fd; color: #1565c0; }
.collection-card .stats .stat-item.learning { background: #fff3e0; color: #e65100; }
.collection-card .stats .stat-item.relearning { background: #fce4ec; color: #c2185b; }
.collection-card .stats .stat-item.review { background: #e8f5e9; color: #2e7d32; }
.collection-card .stats .stat-item.due { background: #fff8e1; color: #f57c00; }
.collection-card .stats .stat-item.total { background: #f5f5f5; color: #666; }

/* Hide icon label text on narrow screens, show only on wide screens */
.collection-card h2 .collection-icon .label {
    display: none;
}
@media (min-width: 768px) {
    .collection-card h2 .collection-icon .label {
        display: inline;
    }
}

.settings-btn {
    background: none; border: none; font-size: 20px; cursor: pointer;
    padding: 5px; display: flex; align-items: center; justify-content: center;
    color: #666; transition: color 0.2s;
}
.settings-btn:hover { color: #417690; }

.save-btn {
    background: #417690; color: #fff; border: none;
    padding: 10px 20px; border-radius: 4px; cursor: pointer; font-weight: bold;
}
.save-btn:hover { background: #2c5f7c; }

.setting-item { margin-bottom: 20px; }
.setting-item label { display: block; margin-bottom: 8px; font-weight: bold; }

.stats-loading { text-align: center; padding: 40px; color: #999; font-size: 16px; }
.stats-error { text-align: center; padding: 40px; color: #c62828; font-size: 16px; }