/* ========== COLLECTIONS GRID ========== */
.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.collection-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s;
}

.collection-card:hover {
    transform: scale(1.02);
    border-color: var(--accent);
}

.collection-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    background: var(--bg-hover);
    overflow: hidden;
}

.collection-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.collection-cover-empty {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: var(--text-muted);
}

.collection-count {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
}

.collection-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
}

.collection-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-edit-collection {
    width: 28px;
    height: 28px;
    border: none;
    background: var(--bg-hover);
    color: var(--text-secondary);
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    flex-shrink: 0;
}

.btn-edit-collection:hover {
    background: var(--accent);
    color: white;
}

/* New Collection card */
.collection-card.new-collection {
    border: 2px dashed var(--border);
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 200px;
    color: var(--text-muted);
    font-size: 14px;
}

.collection-card.new-collection:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ========== COLLECTION DETAIL VIEW ========== */
.collection-detail-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.collection-detail-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

/* ========== ADD TO COLLECTION MODAL ========== */
.add-to-col-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 320px;
    overflow-y: auto;
}

.add-to-col-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.15s;
}

.add-to-col-item:hover {
    background: var(--bg-hover);
}

.add-to-col-item.already-in {
    opacity: 0.5;
    cursor: default;
}

.add-to-col-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.add-to-col-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.add-to-col-count {
    font-size: 11px;
    color: var(--text-muted);
}

.add-to-col-status {
    font-size: 12px;
    color: var(--success);
    font-weight: 600;
}
